NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best method for saving the client sequence file revision in the database \ report?

Solved!
Go to solution

Unfortunately modifying the database like that does not affect the reporting.  Don't be surprised if TestStand couples them in the future so you only have to mod it in one location. 🙂

 

There are a 100 ways to get the behavior you want.  You can put a step in the TestReport callback in your Process Model that will parse and add the information to Parameters.Report.  Put a breakpoint in there and step through it and watch that parameter.  It is the txt that builds your report.  You'll figure out where to put the step.  You can use the ProcessModelClient variable referred to earlier.

 

The report is built on what is in the ResultList.  So adding to that is also an option.  That would be more obscure and a little trickier.

 

On-the-fly reporting is a whole different animal so you'd have to modify in different locations for that to work properly.

 

None of these will be the exact same as the database options because that one was for every sequence call.  These would be a one time shot.

 

If you want it to be similar you will have to modify each of the ReportGen_<format type>.seq files to handle the sequence call steps and put the right info in the report txt.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 11 of 14
(1,146 Views)

How about dynamically adding an Additional Results (mentioned earlier) step to the beginning of the client file MainSequence at run-time from the process model?


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 12 of 14
(1,142 Views)

There is an example called SequenceBuilderTool.  Basically it copies predefined steps to a location.  You could do something like that from your Process Model to the Model Client. Do it early on like in the Process Setup Callback or before.  Actually putting it in a Callback might be a bad idea because then if someone overrides it then you're hosed.  But then on the other hand you can override it if you need to.

 

Just put a template sequence with the step you want to copy inside of your process model.

 

Hopefully this gets you on the right track.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 13 of 14
(1,136 Views)

It does. Thanks for the help!


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 14 of 14
(1,132 Views)