Hello, friends.
Today we work on in place element structure.
Basically it is used to control how the LabVIEW compiler performs common operations more efficiently
than traditional LabVIEW programming methods.
It is used to increase the memory and efficiency efficiency.
So let's check second operations of in place element structure.
So I just again create an array element over here, blank array.
So I just drag and drop.
So over here, in this case, I'm just using floating type array.
So drag and drop this and put some values inside it.
Let's say 23, 58, 64, 78, 96, 13, eight and 37.
Okay, so this is my input array.
This is my input array and I just go to the array operations and over here I'm just using split one
dimensional array.
Split one dimensional array.
So just drag and drop this.
So this is my input array for this.
And I just create an index value from where it can split.
So create control over here.
This is index value.
Now I just perform some operation on it.
So let's say I want to square root the value.
So this is first subset array.
Because split array basically divide my array into two parts.
Let's say the index value is two.
If the index value is two over here.
So it will split from here.
So first subset array contains 23 and 58 and second will contain rest.
Okay.
So let's say it is three and second operation performed is, let's say, square.
Now the second I just use insert into array.
So this is my new element.
And over here, this is my indexing.
This is my indexing and this is my array.
And this is my output.
So let's check the output.
So when you hit on run button, as you see 64 square root, 858 square root 7.6, 23 square root 4.7,
and then it is squaring all the values eight into 864.
So if you want to replace this part, this part you can use in place element structure.
So just drag and drop.
Go to the add array split and replace subset.
So as you see over here, I just got connect input.
Over here.
This is my length.
Or you can say indexing value.
I just use these two operations.
So just drag and drop.
So this is the first part.
This is the second part.
Just connect this.
And over here you got the output.
So the output array and the second one, output two should be same.
Let's check.
So when you hit on run button, as you see the output is same.
So this will work as same this.
So in this case you are just reducing the node border.
It will this will contain less memory and more efficient as compared to the traditional programming
in LabVIEW.
So this is how you can work with split and index array operations in LabVIEW in in-place structure.
If you want to go for multiple operations, let's say again add on more operations.
So let's say this is my input.
And again, over here I just want to perform operations from another value.
Let's say I want to work from fifth indexing.
So this is zero one, two, three, four, five.
So this one is my first one and 13, eight and 1337 is my second one array.
So I just perform another operation over here.
Let's say I want to increment first one and decrement second one.
And over here, this is the output.
This is my output three.
So let's check.
So the output should be 24, 59, 65, 79, 97, 14, nine and 38.
As you see.
So first one is increasing and second one is decreasing.
So 13 becomes 12, eight becomes seven, and 37 become 36.
It is my mistake.
I am just increasing both the values.
But the operation says first one is increasing and second one is decreasing.
So this is how you can work with multiple operations in in place array in place structure in LabVIEW.
So thank you for today.