08-18-2009 01:54 PM
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
08-18-2009 02:09 PM
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