1
00:00:15,000 --> 00:00:19,000
Today we discuss about in place element structure.

2
00:00:20,000 --> 00:00:25,000
Basically it is available over here in the structures.

3
00:00:25,000 --> 00:00:28,000
This is my in place element structure.

4
00:00:28,000 --> 00:00:37,000
Today we discuss about this the use in in place element structure to control how the LabVIEW compiler

5
00:00:37,000 --> 00:00:47,000
performs common operations more efficiently than traditional LabVIEW programming methods to increase

6
00:00:47,000 --> 00:00:50,000
memory and efficiency.

7
00:00:51,000 --> 00:00:58,000
Many LabVIEW operations require LabVIEW to copy and maintain data values in memory.

8
00:00:58,000 --> 00:01:08,000
So decreasing execution speed and increasing the memory usage by use of in-place element structure.

9
00:01:08,000 --> 00:01:11,000
You just drag and drop this over here.

10
00:01:12,000 --> 00:01:15,000
This is my in-place element structure.

11
00:01:16,000 --> 00:01:18,000
Visual view.

12
00:01:19,000 --> 00:01:28,000
The in place element structure uses border nodes or nodes that are attached to the border of the in

13
00:01:28,000 --> 00:01:32,000
place element structure to perform different data operations.

14
00:01:33,000 --> 00:01:41,000
When you move or delete a border node, LabVIEW automatically moves or delete the corresponding nodes

15
00:01:41,000 --> 00:01:44,000
on the opposite side of the structure.

16
00:01:45,000 --> 00:01:54,000
The in place element structure can execute common labview operations, like if you want to know the

17
00:01:54,000 --> 00:01:56,000
types of operations.

18
00:01:57,000 --> 00:01:59,000
By the in place element structure.

19
00:01:59,000 --> 00:02:06,000
As you see over here, there are different operations like add array index, replace element, add array,

20
00:02:06,000 --> 00:02:17,000
split, replace sub array, add on bundle or bundle elements, add waveform and bundle or bundle elements

21
00:02:17,000 --> 00:02:20,000
add variant to or from element.

22
00:02:20,000 --> 00:02:23,000
Add in place in out element.

23
00:02:24,000 --> 00:02:34,000
Add data value reference read or write element add variant attribute get or replace add map get or replace

24
00:02:34,000 --> 00:02:34,000
value.

25
00:02:34,000 --> 00:02:36,000
You can use these operations.

26
00:02:36,000 --> 00:02:40,000
So today we use first operations.

27
00:02:40,000 --> 00:02:47,000
So let's say I have a blank array in my system.

28
00:02:48,000 --> 00:02:50,000
So over here.

29
00:02:50,000 --> 00:02:52,000
This is my one dimensional array.

30
00:02:55,000 --> 00:02:55,000
Of.

31
00:02:57,000 --> 00:02:59,000
Integer type.

32
00:03:00,000 --> 00:03:03,000
So I just convert it to integer.

33
00:03:05,000 --> 00:03:07,000
This is my.

34
00:03:11,000 --> 00:03:11,000
Eric.

35
00:03:11,000 --> 00:03:12,000
One dimensional array.

36
00:03:13,000 --> 00:03:16,000
I just drag it and put some values inside it.

37
00:03:16,000 --> 00:03:21,000
Let's say 23, 25, 36.

38
00:03:22,000 --> 00:03:23,000
78.

39
00:03:28,000 --> 00:03:30,000
Okay, so this is my input array.

40
00:03:30,000 --> 00:03:32,000
So I just name it.

41
00:03:36,000 --> 00:03:39,000
Then just go to array operations.

42
00:03:40,000 --> 00:03:42,000
Select index area.

43
00:03:43,000 --> 00:03:48,000
And I want to just change some specific value.

44
00:03:48,000 --> 00:04:00,000
Let's say over here I just create a control for the index and I want to perform some some operations

45
00:04:00,000 --> 00:04:03,000
on it and replace the subset.

46
00:04:05,000 --> 00:04:09,000
So let's say I want to just change the.

47
00:04:11,000 --> 00:04:12,000
Second.

48
00:04:13,000 --> 00:04:16,000
Audition because this is my 012.

49
00:04:16,000 --> 00:04:20,000
So let's say it is two index value is two.

50
00:04:20,000 --> 00:04:26,000
And I want to just change this index value and I want to just increment it.

51
00:04:29,000 --> 00:04:30,000
So over here.

52
00:04:33,000 --> 00:04:35,000
And this is the value.

53
00:04:35,000 --> 00:04:44,000
And I just connect this to index because I want to replace it or I want to just increase the second

54
00:04:44,000 --> 00:04:45,000
value by one.

55
00:04:46,000 --> 00:04:50,000
And over here, this is my input.

56
00:04:50,000 --> 00:04:53,000
And over here I get the output.

57
00:04:54,000 --> 00:04:57,000
So this is my output area.

58
00:04:58,000 --> 00:05:00,000
So when I perform this.

59
00:05:02,000 --> 00:05:06,000
So over here it is without in place array.

60
00:05:06,000 --> 00:05:15,000
So when I hit on run button, as you see, 23, 24, it is 65 over here it is 66.

61
00:05:15,000 --> 00:05:18,000
So using this operation, it is.

62
00:05:19,000 --> 00:05:22,000
Done without the use of place area.

63
00:05:22,000 --> 00:05:24,000
When you use in place area.

64
00:05:25,000 --> 00:05:29,000
So just go to structures in place.

65
00:05:30,000 --> 00:05:32,000
Drag and drop over here.

66
00:05:33,000 --> 00:05:34,000
Go to the edge.

67
00:05:34,000 --> 00:05:38,000
Right click Add array index, as you see over here.

68
00:05:39,000 --> 00:05:44,000
This is array operations.

69
00:05:45,000 --> 00:05:51,000
See over here, this is array index and replace elements are on the border.

70
00:05:51,000 --> 00:05:53,000
So just.

71
00:05:54,000 --> 00:06:01,000
Connect this one to the input because input is same, the indexing value is same and the operation performed.

72
00:06:03,000 --> 00:06:04,000
Is also same.

73
00:06:07,000 --> 00:06:08,000
So just connect this.

74
00:06:09,000 --> 00:06:10,000
Connect this.

75
00:06:11,000 --> 00:06:15,000
So over here I just create a indicator.

76
00:06:15,000 --> 00:06:17,000
This is my output to.

77
00:06:22,000 --> 00:06:23,000
This is my.

78
00:06:28,000 --> 00:06:28,000
Okay.

79
00:06:28,000 --> 00:06:35,000
So when I hit on run button again, the operation performed is same.

80
00:06:36,000 --> 00:06:41,000
So as you see over here, 23, 23, 24, 24, 66, 66.

81
00:06:41,000 --> 00:06:46,000
So this will work same as this.

82
00:06:46,000 --> 00:06:50,000
So it will replace in place array, replace this part.

83
00:06:51,000 --> 00:06:54,000
So this is how you can use in place array.

84
00:06:54,000 --> 00:06:56,000
You can perform different operations.

85
00:06:56,000 --> 00:07:03,000
Like in this case, I just increment it and just I want to perform another operation.

86
00:07:03,000 --> 00:07:06,000
Let's say I want to square the value.

87
00:07:08,000 --> 00:07:08,000
Just connect this.

88
00:07:11,000 --> 00:07:16,000
So again, over here also I want to just put square the value operation.

89
00:07:20,000 --> 00:07:20,000
As you see.

90
00:07:22,000 --> 00:07:27,000
So when you again hit on run button, it will give 42654265.

91
00:07:27,000 --> 00:07:31,000
And again, if you want to work on Third Element.

92
00:07:32,000 --> 00:07:33,000
As you see it.

93
00:07:33,000 --> 00:07:35,000
864, eight, 864.

94
00:07:35,000 --> 00:07:41,000
This is how you can use in-place array add.

95
00:07:42,000 --> 00:07:46,000
Array index and replace elements.

96
00:07:46,000 --> 00:07:48,000
This is for today's.

97
00:07:48,000 --> 00:07:49,000
Thank you.

