NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable TestStand report generation via Labview Operator Interface

How to disable TestStand report generation via Labview Operator Interface ?,
since our test is huge, and
it took a long time to generate the report.

thanks.
0 Kudos
Message 1 of 4
(5,288 Views)
Hi,

You shouldn't have to do anything to the Operator Interface to switch the Report Off.

You already have the means:
a) For all users (except Operators & Technicians)
From the Menu item Configure | Report Options select Tab: Contents and check 'Disable Report Generations'.

b) By adding the Callback ReportOptions to your sequencefile. Then adding a step that will perform
Parameters.ReportOptions.DisableReportGenerations = True


Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(5,288 Views)
Thank you, but we have this problem,
there were already many sequence files, so
step B, may be a little bit tedious. But can you send me an example of this method ?

Secondly, there were two users,
1. the developer, who like to run the sequence using
Sequence editor, and enable this report generation option.
2. the Operator, that runs a custom Labview Operator Interface, which should not know about this option (since the Operator is expected to know little about test stand, just select the sequence and click runs), so the Operator Interface has to disable this options.

The problem comes one the developer runs it, and the next time the Operator try to run it, and the TestStand Sequence Editor has been modified by the developer.

Thus We want to mak
e sure that when the Operator run the sequence vi Operator Interface, the report generation option has been disabled.
0 Kudos
Message 3 of 4
(5,288 Views)
Hi,

What you could do is modify the StationCallback.seq or the Process Model sequence file to override the Report Options instead.

I have attached an example using the StationCallback.seq. Just place this file in the C:\TestStand\Components\User\Callbacks\Station\ folder.

I have put a precondition on the disable report step. This checks if the execution is not running in the Editor and if the user can not configure reports.

(StationGlobals.TS.CurrentUser.Privileges.Configure.ConfigReport == False && RunState.IsEditor==False)

You could do the same in which every process model sequence file you are using instead of using StationCallback.seq. Just cut the step from the ReportOptions sequence in the StationCallback.seq and paste it in
the ReportOptions sequence in your process model sequence file.

hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(5,288 Views)