NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming test report with a labview VI?

Solved!
Go to solution

Hi,

 

I see customizing the report file names is not only an issue for me, but for other people as well. I have found THIS post which solves the problem post test by running a labview VI.

 

I am wondering if we have any callback sequence which I can call from my MainSequence and runs after the report file generation is closed, so I can run my filename processing VI from there? By this I can save the step of manually running the VI, so it would be a way more robust solution.

 

Thanks.

0 Kudos
Message 1 of 3
(2,928 Views)
Solution
Accepted by topic author 1984

Hi 1984

 

If you want your VI to work with only one sequence then override the Process Model PostUUT callback in that sequence file by inserting a sequence called PostUUT into your sequence file, then add your VI into it.   When the Process Model gets to the PostUUT call, it will call your PostUUT sequence and your VI.

If you want your VI to be used for multiple different sequences (that use the same Process Model) then add a call to your VI into the Process Model PostUUT sequence directly.   That way any sequence that uses the Process Model modified will have its results filename modified by your VI.

 

Steve

Message 2 of 3
(2,903 Views)
Solution
Accepted by topic author 1984

Ok... so what I have figured out seems to work slightly better and integrates to TestStand very well:

 

  1. Add the ReportOptions callback sequence to your sequence file
  2. Open it
  3. Put a statement step to the Main section with the following expression:
    Parameters.ReportOptions.GeneratePath = False
  4. From this point (within the ReportOptions callback) you can modify the Parameters.ReportOptions.ReportFilePath variable. You can create an expression to do that, or - like I did - write a VI which generates the reportpath and the filename as one string and assign the variable mentioned above to the output of this VI.

This changes the path of the report file as well as its name.

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