NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

In LabVIEW OI the Run Selected Step Using Test UUTs does not work

TestStand LabVIEW Operator Interface (old style) - TestStand Version 2.0.1 & 3.0

The Interactive option was enabled for the Process Model Entry Point - Test UUTs in the SequentialModel.seq.

When selective steps were selected to run within the LV OI using the menu item 'Run Selected Step Using - Test UUTs' it was found not to work.

The reason for it not working was because the main event string was "Run Selected Step 0" but this isn't available in the case statement. Changing the "Run Selected Step 1".."Run Selected Step 9999" to "Run Selected Step 0".. didn't produced the desired result. Instead of the selected steps running using the entry point Test UUTs, the steps ran without the process model.
The Case Statement string was retored back to "Run Selected Step 1".

The changes that are required to make the "Run Selected Step 1".."Run Selected Step 9999" work with either of the Entry Points are as follow.

In the VI TestStand - Create Entry Point Menus for Interactive Exec.vi
Insert an Increment from the iteration terminal of the FOR loop. This ensures the Message Queue string generated is in the range 1 - 9999 not 0 - 9999.

In the TestStand - Sequence Display.vi
For the Main Message Event "Run Selected Steps", "Run Selected Step 1".."Run Selected Step 9999"
In the case "1, Default", decrement the input 'Entry Point Index' to the VI TestStand - Start Interactive Entry Point Execution.vi. This ensures the Entry Point Index starts from the value 0.

Now when the selected steps are run using a Pocess Model Entry Point, they run correctly.

This problem only appears to affect the LabVIEW Operator Interface and only the old style. The new style that comes with TestStand 3.0 runs correctly.

There is one other problem. When an Operator is logged in to TestStand, the Entry Point - 'Single Pass' is disabled. But this is not reflected to the menu item 'Run Selected Step Using'. Both 'Test UUTs' and 'Single Pass' are available to the operator.
The reason for this is because in the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi' the sub menu item is enabled as a result from the property Sequence.AllowInteractiveExecutionOfEntryPoint. This is not enough to disable the 'Single Pass'. The Engine.CurrentUserHasPrivilege needs to be checked as well. Which means modications to the VI 'TestStand - Create Entry Point Menus for Interactive Exec.vi'.

Hope is maybe of help to anyone that may need to use this option.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 1 of 4
(3,316 Views)
Thanks Ray for the "heads-up". 🐵

I am about to implement a vi which calls TestStand functions. This vi will allow to select tests and permits test re-entry (loops) if the user has supervisor privileges.

I will consider what you recommend in this string.

I will also provide feedback on this thread if I discover anything .... let's say "unusual"..

On another note, I am using TestStand 3.0 I have not observed any problems when running selected steps or run selected steps using single pass. I have also within TestStand set privileges for certain Operators to do the same. They have not reported any problems.

Thanks,

JLV
Message 2 of 4
(3,316 Views)
Hi JLV,

Are you using the new style of OI with your TestStand 3.0?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 4
(3,316 Views)
Hi Ray,

I am using the same OI as 2.0.

JLV
0 Kudos
Message 4 of 4
(3,316 Views)