LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference of array element

I have a VI where the front panel contains a table of parameters. Each row in the table contains a number of controls (booleans, integers, etc.) that I would like to bundle into a cluster, and then create an array corresponding to the rows in the table. The data from each entry in the table is passed into a subVI that configures an object and transmits the object as a CAN message. The subVI is reentrant, and each row has its own corresponding call to the subVI. The subVI remains active until the user stops the transmission.

 

What I would like to do is set up a for loop that indexes the above-mentioned array and calls the subVI for each iteration. However, because some controls on the main front panel table can be changed live (to control stopping and starting a transmission), I have to pass a couple boolean references to the subVI so that when the values change on the front panel, the subVI gets the changes immediately. And as far as I know I cannot get a reference to the boolean when it is an element of a cluster of an array.

 

Is there another possible solution for this?

 

Thanks,

Dave

0 Kudos
Message 1 of 2
(2,600 Views)

Well you could have a 'Reference' manager, that holds all the references for each row.

It also listens for value change events, figures out which row was changed and load the correct values into the right reference.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 2
(2,589 Views)