08-27-2010 09:26 AM
I have an array of a cluster of boolean controls that I have used in the past with a cFP relay module. To add a step I have just expanded the array manually. To expand the array to more than a few elements it takes up most of the front panel space. I have used the array as a constant at times but prefer the flexibility of changing the booleans from the front panel. What I would like to do is have a 1 element array and then programmatically create a list of array elements to execute. From the front panel I would select which booleans are on or off, set the time and click an icon to write the states to the list or the execution array. Once the single element array has been written as a line on the list I could change the action of the elements or the time, click a button and write the next line to the list. This would allow me to create a list of unlimited array elements that would be executed. Once the list is completed the list could be saved to a file for future use. I can't figure out how to programmatically create a list or even a second array from a 1 element array. How would I go about doing this?
Thanks for the help.
08-27-2010 09:48 AM
There's a variety of ways to do this. One way is to provide a single control to define a step and buttons to navigate your array. You can use a loop with a shift register to hold your array of values. See attached for something to get you started. If you have not already done so, I strongly suggest reading up on the tutorials and information on using loops and event structures.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
08-27-2010 12:16 PM