09-26-2016 01:14 AM
Hi all
i have a 2d array of string values (please refer the vi). I want to separate the array into 1D array of values based on the date dynamically. I tried few options but nothing seems to work dynamically.
thanks
senthil kumar
09-26-2016 01:22 AM
Hi Senthil,
Your attached VI has only empty array. When you have data in the control, please make it as a default value and then attach the VI.
If you have tried anything in blockdiagram make sure that is also available.
Thanks,
Nanthakumar
09-26-2016 01:26 AM
09-26-2016 01:28 AM
sorry forgot to save the values in the array
09-26-2016 01:29 AM
hi
i tried using indexing, and it does not work as intended and dynamically
09-26-2016 01:51 AM
09-26-2016 01:59 AM
Dear udka
I tried on it for few hours, i cant put everything here.
I want the values to be sorted out based on the date.
sorry not 1D array but 2D array of string
I have attached a vi here with input and expected output
thanks for the help
regards
senthil
09-26-2016 02:08 AM
Hi Senthil,
Data will contain only 3 dates you have given? If it has other dates what will you do? You may need to create more 2D array indicators dynamically. Think about the data structure.
Regards,
Nanthakumar
09-26-2016 02:15 AM
You can group the values like following.
Regards,
Nanthakumar
09-26-2016 06:48 AM
hi
It is working good, but the first value is again repeating as the last value. can you post the vi. I think i am missing something here