LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In a test sequence using sequence structures, is there an easiest way to bring analog data out for logging (Each step might have differing QUANTITIES of analog results)

I have a test sequencer that calls subs with different quantities of analog results. I want to log the results at the end of the test. For example:

Test1 yields Pass/Fail with no analogs
Test2 yields pass/fail with 3 analogs
Test3 yields pass/fail, 2 boolean, and 6 analogs

At the end of the test, I want to write one line in a spreadsheet each for results, and analog. The lines look like this

[serial no.] PPPPPPF...
[Serial no.] .05 67 32

Would I be better off doing this with global variables or a really big array?
0 Kudos
Message 1 of 2
(2,657 Views)
Just make sure that all your subVIs convert their output to a string and keep appending to a "master" output string. That's the quick and easy answer.

Now lets work on your sequence structure habbit. I don't recommend them because they make code hard to find. Sure, they make things happen in order, but you should use error clusters (data dependency) for that. There have been many discussions mentioning state machine architecture for LabVIEW. I advise you to look into it. It may save you some heartburn in the future.

Dan Press
www.primetest.com
Message 2 of 2
(2,657 Views)