LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array-elements depending on which array-element one choose before

Hello!

Now we have perhaps an easy problem... we have from the beginning a text-file that we pick out some of the columns that we display on the frontpanel. This forms an array of cluster with the different columns in. Then one is able to choose one of these elements of the array. There are moore values that belongs to each elements but these we do not want to display, so that is why we picked them out from the array and put them in another array that we thought we could connect in some way to the first array... now the problem: when one choose an element of the first array we want the other array to pick out the value with the same index. I should mension that we build an array of the choosen elements too...

Any tip or help would be nice 🙂 best regards!
0 Kudos
Message 1 of 5
(2,818 Views)
An attached VI shows the problem. We want the "K-value-array" to pick out the same index that we choose from the "signallist". Any tip maybe?
0 Kudos
Message 2 of 5
(2,814 Views)
Hello again!

I did not send the total VI I realise now. I had to make current value default first. Then if one click in the round checkmark-box to right one can see the choosen signals. We want in some way be able to get the same array-element from the K-value-array that we pick out from the signallist. Any tip?? Best regards.
0 Kudos
Message 3 of 5
(2,810 Views)
First, you must change your K-value array to a control so you can read from it. Then you must make your Array of Signals into a 2D array to hold the signal and the value in separate columns. Now look at the attached vi. It will put the signal in column 0 and the K-value in column 1 for each signal selected from Signallist.
- tbob

Inventor of the WORM Global
Message 4 of 5
(2,799 Views)
Thank you very much for your help!
0 Kudos
Message 5 of 5
(2,788 Views)