1
00:00:10,000 --> 00:00:11,000
Hello, friends.

2
00:00:12,000 --> 00:00:23,000
Now we want to create a compound box or let's check first, will you?

3
00:00:23,000 --> 00:00:24,000
What is compound?

4
00:00:26,000 --> 00:00:29,000
Or here there is a compound automatic box available.

5
00:00:30,000 --> 00:00:36,000
So I want to work with addition and multiplication for multiple variables.

6
00:00:36,000 --> 00:00:42,000
So for that purpose, I just go to my folder four.

7
00:00:42,000 --> 00:00:47,000
And over here I just copy this addition.

8
00:00:48,000 --> 00:00:52,000
So, vi and a python code over here.

9
00:00:52,000 --> 00:00:57,000
And in this, I want to work with more than two variables.

10
00:00:57,000 --> 00:01:09,000
So for that purpose, I just go to my python cell and I want to just open the python code over here.

11
00:01:09,000 --> 00:01:13,000
Just comment by configuration.

12
00:01:13,000 --> 00:01:14,000
By code.

13
00:01:14,000 --> 00:01:17,000
And this is my function.

14
00:01:18,000 --> 00:01:21,000
And over here, as you see, the result is zero.

15
00:01:21,000 --> 00:01:23,000
I just copy this.

16
00:01:24,000 --> 00:01:26,000
Place it over here again.

17
00:01:26,000 --> 00:01:28,000
And second is result one.

18
00:01:28,000 --> 00:01:32,000
In this case, the addition function is there.

19
00:01:32,000 --> 00:01:36,000
And for the addition, I just make more variables.

20
00:01:36,000 --> 00:01:47,000
Let's say Z, comma a, comma, B, comma, c, let's say in this case I have X, Y, Z, and ABC variables.

21
00:01:47,000 --> 00:02:01,000
And over here I want to just place Z plus A, plus V plus C, and I have this function and I just do

22
00:02:01,000 --> 00:02:04,000
it for the multiplication also.

23
00:02:04,000 --> 00:02:08,000
So let's say put it over here.

24
00:02:08,000 --> 00:02:16,000
And over here, I just you might be like I just put multiply over here.

25
00:02:16,000 --> 00:02:19,000
And in this case, result one is there.

26
00:02:19,000 --> 00:02:21,000
I want to return back.

27
00:02:21,000 --> 00:02:27,000
The result one, my function is ready, so I just save it, close it.

28
00:02:27,000 --> 00:02:29,000
Go to the folder.

29
00:02:29,000 --> 00:02:35,000
And over here this is a rename it to the compound

30
00:02:41,000 --> 00:02:42,000
arithmetic.

31
00:02:44,000 --> 00:02:46,000
So just.

32
00:02:47,000 --> 00:02:58,000
You can check the spelling or here, I guess to go to the camp or you or you.

33
00:02:58,000 --> 00:03:01,000
Andy So just rename it, let's say

34
00:03:04,000 --> 00:03:09,000
rename to MP or you.

35
00:03:09,000 --> 00:03:18,000
And so right now that is changed and also in the sub v, I want to change it.

36
00:03:18,000 --> 00:03:19,000
So over here.

37
00:03:19,000 --> 00:03:23,000
See you and.

38
00:03:29,000 --> 00:03:34,000
C or B or U and the compound.

39
00:03:34,000 --> 00:03:41,000
VI, I want to call this and over here this is again, I want to change through MP,

40
00:03:44,000 --> 00:03:45,000
C or MP.

41
00:03:45,000 --> 00:03:46,000
Okay.

42
00:03:46,000 --> 00:03:50,000
It will go for multiple variables.

43
00:03:50,000 --> 00:03:51,000
More than two.

44
00:03:51,000 --> 00:03:55,000
So just save it, close it or do the VI.

45
00:03:56,000 --> 00:04:01,000
And over here I just copy this place this.

46
00:04:01,000 --> 00:04:04,000
And over here again, I just rename it.

47
00:04:04,000 --> 00:04:07,000
Q MP compound.

48
00:04:08,000 --> 00:04:13,000
VI just open it as you see over here.

49
00:04:13,000 --> 00:04:17,000
I have only two variables because it is written for the two variables.

50
00:04:17,000 --> 00:04:20,000
So control P right now.

51
00:04:20,000 --> 00:04:30,000
So just delete this in place of this and also delete this because I need a combo box over here because

52
00:04:30,000 --> 00:04:35,000
I work with addition and multiplication over here.

53
00:04:35,000 --> 00:04:35,000
So.

54
00:04:35,000 --> 00:04:38,000
Edit So put

55
00:04:41,000 --> 00:04:42,000
addition

56
00:04:45,000 --> 00:04:46,000
multiply.

57
00:04:47,000 --> 00:04:48,000
Okay.

58
00:04:49,000 --> 00:04:51,000
Just in this extra case.

59
00:04:51,000 --> 00:04:52,000
Okay.

60
00:04:52,000 --> 00:04:56,000
Make something fixed over here.

61
00:04:56,000 --> 00:04:58,000
Let's say it is my default value.

62
00:05:00,000 --> 00:05:05,000
Then I want to call the sub.

63
00:05:06,000 --> 00:05:09,000
So just go over here.

64
00:05:09,000 --> 00:05:14,000
And in this case,

65
00:05:20,000 --> 00:05:27,000
just call this via this compound, via

66
00:05:31,000 --> 00:05:32,000
this function.

67
00:05:33,000 --> 00:05:36,000
Connect this combo box.

68
00:05:36,000 --> 00:05:38,000
Connect the combo box.

69
00:05:39,000 --> 00:05:41,000
As you see right now.

70
00:05:41,000 --> 00:05:43,000
The number of variables are six.

71
00:05:43,000 --> 00:05:50,000
So just put the number of variables control D over here.

72
00:05:50,000 --> 00:05:52,000
I just copy this.

73
00:05:52,000 --> 00:05:56,000
And the name of this is Z.

74
00:05:57,000 --> 00:06:04,000
And again, I just copy this over here and this is my a value.

75
00:06:04,000 --> 00:06:10,000
This is my B value and this is my C value.

76
00:06:11,000 --> 00:06:11,000
Okay.

77
00:06:11,000 --> 00:06:20,000
So right now just connect these all the previous different values, let's say over here A, this is

78
00:06:20,000 --> 00:06:27,000
my B and this is my C and this is my Z over here.

79
00:06:27,000 --> 00:06:30,000
Control You put it inside.

80
00:06:30,000 --> 00:06:33,000
Control U okay.

81
00:06:33,000 --> 00:06:36,000
So right now it is for multiple values.

82
00:06:36,000 --> 00:06:40,000
Let's say I put two over here again.

83
00:06:40,000 --> 00:06:50,000
I say one, two, oh, oh, and one.

84
00:06:50,000 --> 00:06:54,000
So right now I want to just add all these.

85
00:06:54,000 --> 00:06:59,000
So it will become or the result should be ten in this case.

86
00:07:00,000 --> 00:07:02,000
As you see, the result is ten.

87
00:07:02,000 --> 00:07:09,000
If I want to go multiply, it will give me a check.

88
00:07:11,000 --> 00:07:15,000
Or maybe the function name multiply is different.

89
00:07:15,000 --> 00:07:19,000
So that's why maybe the result is different.

90
00:07:19,000 --> 00:07:19,000
Okay.

91
00:07:20,000 --> 00:07:27,000
So as you see, addition is working properly, but multiplication is not working properly for that purpose.

92
00:07:27,000 --> 00:07:30,000
I just go to the my code.

93
00:07:31,000 --> 00:07:34,000
So just open python cell code.

94
00:07:36,000 --> 00:07:44,000
So over here in the python python code, just open compound as you see.

95
00:07:44,000 --> 00:07:48,000
M u l d e l y

96
00:07:51,000 --> 00:07:57,000
the y it is okay, but the code in the code I just put a region over here.

97
00:07:57,000 --> 00:07:59,000
So that's why it is not working.

98
00:07:59,000 --> 00:08:03,000
I just change the operator inside this.

99
00:08:03,000 --> 00:08:07,000
If I change the operator inside this, it will work properly.

100
00:08:08,000 --> 00:08:15,000
Okay, so control as the code is ready, allows it right now.

101
00:08:15,000 --> 00:08:20,000
If I run it right now, as you see, multiplication is also working.

102
00:08:20,000 --> 00:08:24,000
So this is how you can create compound from.

103
00:08:25,000 --> 00:08:27,000
Ten in five.

104
00:08:27,000 --> 00:08:31,000
As you see over here, this is my compound function.

105
00:08:32,000 --> 00:08:38,000
It is for this program is for six number of variables.

106
00:08:38,000 --> 00:08:44,000
As you see, X, Y, Z and ABC are my input variables.

107
00:08:44,000 --> 00:08:50,000
So this is how you can work with Python integration with live view.

108
00:08:50,000 --> 00:08:51,000
Thank you.

