1
00:00:10,000 --> 00:00:11,000
Hello, friends.

2
00:00:11,000 --> 00:00:16,000
Today we will discuss for the subtraction code.

3
00:00:18,000 --> 00:00:29,000
And by integration with for that purpose, I just go to my wife and I just open my python code.

4
00:00:30,000 --> 00:00:39,000
So in the documents, python integration, python code, I already have this subtraction code.

5
00:00:39,000 --> 00:00:42,000
I just open it already.

6
00:00:43,000 --> 00:00:44,000
This is earlier.

7
00:00:44,000 --> 00:00:46,000
It is created for addition.

8
00:00:46,000 --> 00:00:49,000
Now I just make it subtraction.

9
00:00:53,000 --> 00:00:57,000
As you see, the variables are X and Y.

10
00:00:58,000 --> 00:01:01,000
And over here, the result is X minus Y.

11
00:01:01,000 --> 00:01:05,000
Now I want to just check the result of this.

12
00:01:05,000 --> 00:01:07,000
So print.

13
00:01:10,000 --> 00:01:11,000
Result.

14
00:01:14,000 --> 00:01:20,000
And now I want to just call the function that is subtraction.

15
00:01:24,000 --> 00:01:25,000
Okay.

16
00:01:25,000 --> 00:01:27,000
And I want to check for the values.

17
00:01:27,000 --> 00:01:33,000
Let's say seven and the value of X is seven and the value of Y is two.

18
00:01:34,000 --> 00:01:39,000
So I just save it and hit on down button.

19
00:01:40,000 --> 00:01:43,000
As you see, seven minus two is equal to five.

20
00:01:45,000 --> 00:01:46,000
So the code is working.

21
00:01:46,000 --> 00:01:52,000
So I just remove this because for the lab view code, I didn't require this.

22
00:01:53,000 --> 00:01:56,000
I didn't require this.

23
00:01:56,000 --> 00:01:58,000
Also, I need only this.

24
00:01:58,000 --> 00:02:00,000
So the result is zero.

25
00:02:00,000 --> 00:02:03,000
And the function name is subtraction.

26
00:02:03,000 --> 00:02:06,000
And the variable is X and Y and or.

27
00:02:06,000 --> 00:02:08,000
Here result is.

28
00:02:08,000 --> 00:02:09,000
X is equal to.

29
00:02:11,000 --> 00:02:14,000
Credit is equal to X minus y, y and return result.

30
00:02:15,000 --> 00:02:17,000
Okay, so I just save it.

31
00:02:17,000 --> 00:02:18,000
Close it.

32
00:02:19,000 --> 00:02:25,000
Then I just go to my subsection v, i basically it will provide the path.

33
00:02:26,000 --> 00:02:29,000
So I didn't change anything.

34
00:02:29,000 --> 00:02:34,000
I just over here, this is my current VI path.

35
00:02:34,000 --> 00:02:36,000
This is my strip path.

36
00:02:36,000 --> 00:02:37,000
This is my build path.

37
00:02:37,000 --> 00:02:39,000
Append or here I want to change.

38
00:02:40,000 --> 00:02:43,000
That is my location of this.

39
00:02:44,000 --> 00:02:45,000
This is my subtraction.

40
00:02:48,000 --> 00:02:55,000
Subtraction taught by the name of the mike, as you see over here.

41
00:02:56,000 --> 00:02:57,000
This is my subtraction.

42
00:02:58,000 --> 00:03:05,000
So I want to just put it in my own state over here.

43
00:03:05,000 --> 00:03:08,000
And I also change the logo.

44
00:03:12,000 --> 00:03:17,000
As you see in the name of addition, I just put subtraction over here.

45
00:03:18,000 --> 00:03:18,000
Just.

46
00:03:18,000 --> 00:03:19,000
Okay.

47
00:03:20,000 --> 00:03:21,000
So let's run it.

48
00:03:22,000 --> 00:03:31,000
So the path is C user known by time and lab integration by code subtraction taught by it is okay, so

49
00:03:31,000 --> 00:03:33,000
close this, save this.

50
00:03:34,000 --> 00:03:41,000
Then I go to my integration, python library integration.

51
00:03:41,000 --> 00:03:48,000
I just copy this over here and just name it.

52
00:03:50,000 --> 00:03:55,000
Rename subtraction subtraction underscore two.

53
00:03:56,000 --> 00:03:58,000
Basically I want to go for two variables.

54
00:03:58,000 --> 00:03:59,000
Name can be anything.

55
00:04:00,000 --> 00:04:02,000
So I just open it.

56
00:04:04,000 --> 00:04:04,000
Ignore.

57
00:04:05,000 --> 00:04:07,000
I'm using the same visa.

58
00:04:07,000 --> 00:04:09,000
There is no change.

59
00:04:09,000 --> 00:04:15,000
I want to just change this right now.

60
00:04:15,000 --> 00:04:21,000
I want to call the bio subtraction so I just minimize it.

61
00:04:22,000 --> 00:04:32,000
So in the pi code or here there is my sub va so I want to just drag and drop over here.

62
00:04:32,000 --> 00:04:33,000
This is my sub VI.

63
00:04:34,000 --> 00:04:41,000
The program is same as one, so I just make it over here.

64
00:04:41,000 --> 00:04:42,000
Connected module path.

65
00:04:43,000 --> 00:04:45,000
Everything is same.

66
00:04:45,000 --> 00:04:47,000
The input is x, y.

67
00:04:48,000 --> 00:04:51,000
And X plus Y in the place of x plus y.

68
00:04:51,000 --> 00:04:53,000
I want to put x minus y.

69
00:04:55,000 --> 00:04:55,000
Alligator.

70
00:04:56,000 --> 00:04:59,000
I just changed the name, not the operation.

71
00:04:59,000 --> 00:05:05,000
And over here, I want to just put the function name as you be erased.

72
00:05:05,000 --> 00:05:10,000
i0n it will call the subtraction function control you.

73
00:05:10,000 --> 00:05:18,000
So I just go to my function and over here, just make the size.

74
00:05:20,000 --> 00:05:21,000
Larger.

75
00:05:22,000 --> 00:05:32,000
So it is visible to you all very clearly if you want to more size in that case put controls shift plus.

76
00:05:32,000 --> 00:05:35,000
So as you see in the.

77
00:05:36,000 --> 00:05:37,000
Over here.

78
00:05:37,000 --> 00:05:39,000
This is increasing.

79
00:05:41,000 --> 00:05:43,000
The size is increasing.

80
00:05:45,000 --> 00:05:47,000
74, 79, 80.

81
00:05:47,000 --> 00:05:52,000
Okay, so this is how you can change the size.

82
00:05:52,000 --> 00:05:55,000
And over here, this is my x minus five.

83
00:05:55,000 --> 00:05:58,000
Also, I want to change the size.

84
00:06:00,000 --> 00:06:00,000
Okay.

85
00:06:00,000 --> 00:06:04,000
So let's say the value is seven.

86
00:06:05,000 --> 00:06:08,000
This is seven and this is two.

87
00:06:08,000 --> 00:06:10,000
So let's check the result.

88
00:06:11,000 --> 00:06:15,000
As you see, the programming is working perfectly.

89
00:06:15,000 --> 00:06:23,000
So when I increase and when I increase the base one, I got the end minus eight is equal to two.

90
00:06:24,000 --> 00:06:28,000
So this is how you can use subtraction program.

91
00:06:28,000 --> 00:06:35,000
It is similar to my this code that is written in lab view for that purpose.

92
00:06:35,000 --> 00:06:40,000
I just go for a loop for continuous reading, create a control for this.

93
00:06:40,000 --> 00:06:50,000
And over here in the numeric value, this function applies my subtraction over here this is my x value.

94
00:06:51,000 --> 00:06:53,000
It is my y variable.

95
00:06:53,000 --> 00:06:56,000
And over here is my indicator.

96
00:06:56,000 --> 00:07:00,000
So basically this program and this program are same.

97
00:07:01,000 --> 00:07:06,000
So this is how you can call python code in lab view.

98
00:07:07,000 --> 00:07:08,000
Thank you.

