12-21-2011 01:53 PM
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.
Solved! Go to Solution.
12-21-2011 02:03 PM
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.
12-21-2011 02:10 PM
Perfect..thanks.