NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

changing user privileges for different sequences files.

I wish to be able to setup user privileges so that an operator can run a UUT test sequence, but is not able to run a calibration test sequence, (which is in a difference sequence file).
Is there an easy way of doing this ?
I am using TestStand 3.0.
0 Kudos
Message 1 of 3
(3,074 Views)
Hi,

You do not say whether your calibration sequence is run as a step in your main sequencefile or you have to load a seperate sequencefile to perform the calibration task.
I have attached an example.
This sequencefile assumes you have to load the sequencefile before running.
In the sequence SequenceFileLoad you will find a couple of steps. The First checks that the current user privilege is that of the administrator. If it is the sequence continues. If it isn't, a messagepopup is displayed tell you your privileges are incorrect.
In addition, if you try to run the sequencefile, a check is again done in the Setup Group of the MainSequence. If the privileges are incorrect the sequencefile will terminate.
If they are correct the sequencefile will continu
e.

If you wanted to called the calibration sequence from your main test sequence, then you could do something similar but instead of terminating you could call your calibration sequence depending on the precondition of the result from your privilege check.

There is also the way the process model does it. Have you noticed if you were logged in as an operator. The entry point 'Single Pass' is greyed out.
If you look at the process model sequencefile and at the properties for the sequence 'Single Pass'. You will notice that the menu item is enabled/disabled depending on your user privilege.
Similarly if you made it as a Configuration entry point.

Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,074 Views)
I have the same question for TestStand 2.0, and cannot open the TS 3.0 file. Is it possible for you to port this example to 2.0 and post it here as well? Thanks!
0 Kudos
Message 3 of 3
(3,074 Views)