LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When the user chooses an item from the Ring (Scenarios List) I want to retrieve the value of each corresponding column and put them in Ring 1, Ring 2,

Solved!
Go to solution

Hello guys,
I have a csv file with several rows and 4 columns.
I wanted to put the list of this file in a Ring (called Scenarios List). And choose the line I want.

Now when the user chooses an item from the Ring (Scenarios List) I want to retrieve the value of each corresponding column and put them in Ring 1, Ring 2, Ring 3, Ring 4.
I've tried but it doesn't work.
Can you please show me how to do it?
Below is the vi and the Data.csv file

Thanks you

0 Kudos
Message 1 of 4
(613 Views)
Solution
Accepted by topic author Steph_2

It's simpler than you think.

You can read the files before the loop and then use the event structure to extract the file in case the user change the scenarios list. 

Pass the 2D array into the loop, when user changes the Scenarios list, then the event will extract the line from the 2d array and split the columns into your ring controls. 

You don't need to read the file everytime.

 

LVNinja_0-1690211838313.png

 

Message 2 of 4
(593 Views)

Hi @LVNinja,
Thank you very much for your reply and help
That work now.

Message 3 of 4
(586 Views)