03-13-2022 03:36 AM
Looking for help.
Need to manipulate array input to expecting Array out.
Conditions are
1)if any channel data repeating latest data of that particular channel should be present in Array out.
2)Final result should be sorted in ascending order as mentioned in Array out
thanks in advance.
Solved! Go to Solution.
03-13-2022 10:33 AM
03-13-2022 11:20 AM
The problem with your desired output is that hex "0017" does not even occur in the input, there is just "17". These are different using string comparisons, of course.
If I correct the input to 0017, here's one possibility:
(See if it makes sense. I am sure it can be simplified further. There are many ways to do this. We also assume that the input is clean, else some sanity checks are needed)
03-13-2022 11:57 AM
Hi Altanbach
1) My application is belongs to LV2018. So there is no option to use Maps and Sets function.
2) Sorting meant, if test carried for channel no 17,48,1. The result should be in ascending order 1,17,48.
3)You assume Repeated test on one particular channel "n" times, latest data of that particular channel (one data) alone should be present in array out.
4) Don't worry about result data is better/ not better than previous time, latest (last ) data would be in array out
Pls refer the image of data of individual channel..
Thanks on advance
03-13-2022 01:43 PM
My example above should do exactly all that.
03-14-2022 01:16 AM
Functionality is Fine.
Few bugs are there if i try to change the follwing items :
1) No. of Rows per channel data as control variable (19 instead of 1)
2) Index value for finding the channel number as control variable (6 instead of 5),
i will sortout the bu and update the working code for your reference.
Thanks a lot.
03-14-2022 06:10 AM
When i try to change number of rows per channel, the following issues were found
1)Sorting is not in prober
2)Array Size is Changed
3)Few Channel Elements are deleted
Note: I assumed No.of rows/channel is 19 and Index of Channel Number is 5
I attached Data, Code and Snippet for your reference
03-14-2022 10:03 AM - edited 03-14-2022 10:06 AM