LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tables

Solved!
Go to solution

I have an event structure in a do while loop.  The events are 18 different test.  Each event runs a unique test.  Is there a way to update a table (live) with the results such that if a test is run a second, third.. time the second, third.. run's data is put in the table??  The table would be 2 cols by 18 rows.

0 Kudos
Message 1 of 3
(2,403 Views)
Solution
Accepted by MarkDavid

Yes, the table is basically a 2D array of strings. You can replace elements within the table to reflect the current status/result. You would have to maintain information regarding which element needs to be updated such as Test A is the third row.

 

Also, it is generally not a good idea to have all of your code execute within the event structure itself. The reason is that no other events can be processed until that event completes. So if you have an Abort button on your test you will not be able to service it until the end. A producer/consumer architecture is a standard design patter that is used. The event loop (producer) will contain very little code and therefore is very responsive to user input. The consumer loop would actually contain the processing code itself. Generally this is a state machine. Your state machine can be written such that it can get commands such as Abort and this will allow you to shutdown a test gracefully.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 3
(2,401 Views)

Perfect..thanks.

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