NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I choose to create a report, instead of it being default?

Hello everyone,

I would like to give the operator a choice at the beginning of my main sequence to save results and create a report, or to not save results and not create a report.

The users want to be able to run tests to debug a UUT, and don't care about the results, but don't want to keep generating new reports each time.

They're running my sequence in the LabView operator interface. The only options I see for them to run are 'Single Pass' or 'Test UUTs', and both of these will create reports.

So, I would like them to have a message pop-up and depending on their input, turn off report generation.

Thanks in advance for your help,

Dave Neumann
d.neumann@astronautics.com
0 Kudos
Message 1 of 10
(4,784 Views)
Hi Dave,

The code necessary to do this should be placed in your process model, and not the operator interface. Inside of both the Single Pass and Test UUTs entry point of the model, you could add a message popup that asks the user to generate/not generate a report. Based upon the users selection, you can set the value of the local variable "Locals.ReportOptions.DisableReportGeneration" inside of the Test UUTs and Single Pass Execution entry points.

Keep in mind however, that the results from the steps will still be stored in memory, it's just that no report will be generated based on these results.

Hope this helps!
Message 2 of 10
(4,784 Views)
Hi Dave,

The code necessary to do this should be placed in your process model, and not the operator interface. Inside of both the Single Pass and Test UUTs entry point of the model, you could add a message popup that asks the user to generate/not generate a report. Based upon the users selection, you can set the value of the local variable "Locals.ReportOptions.DisableReportGeneration" inside of the Test UUTs and Single Pass Execution entry points.

Keep in mind however, that the results from the steps will still be stored in memory, it's just that no report will be generated based on these results.

Hope this helps!
Message 3 of 10
(4,784 Views)
In your sequence make a sequence call to the process model configuration entry point "Edit Report Options". This will allow them to configure report options. You may also choose to add that sequence call to "PreUUTLoop" and add to the single pass execution entry point.

Steve
0 Kudos
Message 4 of 10
(4,784 Views)
Bob,

Thanks for your answer.

I've tried what you state, but a report is still generated. The report is empty (only 1KB), but they really want nothing to be written to the hard drive.

Maybe I'm not doing it correctly. Any futher assistance you could give me would be greatly appreciated.

Dave Neumann
d.neumann@astronautics.com
0 Kudos
Message 5 of 10
(4,784 Views)
Another way to do it is to modify the user profile for operators. Change Configure>ConfigReport to True and the Report Options will be available to them form the Configure menu pull-down. Then they don't have to answer the same question every time the run a sequence.
0 Kudos
Message 6 of 10
(4,784 Views)
Hi Dave,

Sorry about that. Please have a look at the attached sequence, mainly the single pass sequence. I have added comments into this sequence file. Please remember that any time you add steps to the process model entry points, to disable the result recording on them. Let me know if this works. Thanks!
0 Kudos
Message 7 of 10
(4,784 Views)
Bob,

Thanks again.

Now, the report is not even created -- this is perfect.

The problem is, however, than when I select that I want to generate a report from the message popup, I get a report, but it is empty -- a 1KB file with nothing in it but a header.

Any ideas?

Thanks,

Dave Neumann
d.neumann@astronautics.com
0 Kudos
Message 8 of 10
(4,784 Views)
Hi Dave,

This is strange. I ran a sequence with 4 Action steps that use the none adapter and everything worked fine. Make sure you are using single pass. Also, make sure that all steps in the execution entry point have the Record Results option on the Run Options tab of the Step Properties page disabled, except for MainSequence Callback. Are you sure that you do not have result recording disabled for your entire sequence? I would suggest making a "dummy" sequence with the None Adapter and trying this out. Let me know what happens.
0 Kudos
Message 9 of 10
(4,784 Views)
Bob,

Thanks again.

I found out the problem...I didn't uncheck the Record Results option on the Run Options tab for the 2 new steps I added to the SequentialModel (the message and statement steps).

Once I unchecked them, it runs great.

Thanks again,

Dave Neumann
d.neumann@astronautics.com
0 Kudos
Message 10 of 10
(4,784 Views)