Today we discuss about in place element structure.
Basically it is available over here in the structures.
This is my in place element structure.
Today we discuss about this the use in in place element structure to control how the LabVIEW compiler
performs common operations more efficiently than traditional LabVIEW programming methods to increase
memory and efficiency.
Many LabVIEW operations require LabVIEW to copy and maintain data values in memory.
So decreasing execution speed and increasing the memory usage by use of in-place element structure.
You just drag and drop this over here.
This is my in-place element structure.
Visual view.
The in place element structure uses border nodes or nodes that are attached to the border of the in
place element structure to perform different data operations.
When you move or delete a border node, LabVIEW automatically moves or delete the corresponding nodes
on the opposite side of the structure.
The in place element structure can execute common labview operations, like if you want to know the
types of operations.
By the in place element structure.
As you see over here, there are different operations like add array index, replace element, add array,
split, replace sub array, add on bundle or bundle elements, add waveform and bundle or bundle elements
add variant to or from element.
Add in place in out element.
Add data value reference read or write element add variant attribute get or replace add map get or replace
value.
You can use these operations.
So today we use first operations.
So let's say I have a blank array in my system.
So over here.
This is my one dimensional array.
Of.
Integer type.
So I just convert it to integer.
This is my.
Eric.
One dimensional array.
I just drag it and put some values inside it.
Let's say 23, 25, 36.
78.
Okay, so this is my input array.
So I just name it.
Then just go to array operations.
Select index area.
And I want to just change some specific value.
Let's say over here I just create a control for the index and I want to perform some some operations
on it and replace the subset.
So let's say I want to just change the.
Second.
Audition because this is my 012.
So let's say it is two index value is two.
And I want to just change this index value and I want to just increment it.
So over here.
And this is the value.
And I just connect this to index because I want to replace it or I want to just increase the second
value by one.
And over here, this is my input.
And over here I get the output.
So this is my output area.
So when I perform this.
So over here it is without in place array.
So when I hit on run button, as you see, 23, 24, it is 65 over here it is 66.
So using this operation, it is.
Done without the use of place area.
When you use in place area.
So just go to structures in place.
Drag and drop over here.
Go to the edge.
Right click Add array index, as you see over here.
This is array operations.
See over here, this is array index and replace elements are on the border.
So just.
Connect this one to the input because input is same, the indexing value is same and the operation performed.
Is also same.
So just connect this.
Connect this.
So over here I just create a indicator.
This is my output to.
This is my.
Okay.
So when I hit on run button again, the operation performed is same.
So as you see over here, 23, 23, 24, 24, 66, 66.
So this will work same as this.
So it will replace in place array, replace this part.
So this is how you can use in place array.
You can perform different operations.
Like in this case, I just increment it and just I want to perform another operation.
Let's say I want to square the value.
Just connect this.
So again, over here also I want to just put square the value operation.
As you see.
So when you again hit on run button, it will give 42654265.
And again, if you want to work on Third Element.
As you see it.
864, eight, 864.
This is how you can use in-place array add.
Array index and replace elements.
This is for today's.
Thank you.