LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to Programmatically expand array of Boolean and write completed array to file

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.

 

 

Danny
0 Kudos
Message 1 of 3
(3,482 Views)

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.

0 Kudos
Message 2 of 3
(3,468 Views)

22613iDCC350FACEAC0C88

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 3
(3,456 Views)