NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

importing TestStand Measurement results to LabVIEW module

I have a need to extract all measurements from TestStand(V3.1) and process in a LabVIEW(7.1) module (Multiple step measurements of numeric and boolean). Will I need to extract data within the module using sequence reference by first obtaining parameter names, and subsequent property gets, or Is it practical to create and pass a container? Any examples?
 
Our CM refuses to allow database access, and text file creation (in their particular fomat) is only acceptable.
 
I am new to TestStand, as can be deduced.
0 Kudos
Message 1 of 6
(3,630 Views)
I think the easiest thing to do is to modify reportgen_txt.seq to match the CM's requirements and call the modified sequence instead of the database sequence. What I did, was copy the TestReport sequence in the model, change it to call a modified text report sequence, and wherver there was a TestReport Callback step in the process model, duplicated that except to call TestReport_2 (or whatever you want to call it).
0 Kudos
Message 2 of 6
(3,617 Views)

Thanks for your comments. We use TestStand databasing for our record access, but could look at modifying the text file sequence shipped with TestStand. Enclosed is a sample file I 've created for reference. Looks simple enough but is a difficult situation considering the number or parameters, and subparameters necessary to pull out of TestStand.

To pull from TestStand, I suspect I need to programmatically obtain # Steps, Step Name, and all subparameters down the line.

Icing on the cake is the CM has this in an TestStand OI and refuse to provide to us.

Thanks again.

 

0 Kudos
Message 3 of 6
(3,614 Views)

That actually looks similar to what I had to do for one CM. The existing report_gen.seq already gets this information. Some of the text is formatted in a DLL but you can replace that. For example, the sequence called PutOneResultInReport creates a string called Locals.ReportEntry. If you look at how this string is built, you'll see how it gets step name, etc. and then adds a \n at the end for a new line. Instead of the \n, you can add the "|" character that's in your example.

 

0 Kudos
Message 4 of 6
(3,604 Views)

Looks like the way to go. Alternatively, I could pull this into my main sequence as a final step sub or in cleanup, and call it there (as long as variables are initialized properly).

Thanks again Dennis.

 

 

0 Kudos
Message 5 of 6
(3,600 Views)
Yes, something could be done in the main sequence as well. It's too bad the CM is not willing to share more information. If they are already doing it in their own process model, you shouldn't have to do anything at all.
0 Kudos
Message 6 of 6
(3,595 Views)