NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Which case in LV Oper. Intf. will do "Run Selected Steps using single pass" for me?

I added a button to simulate "Run Selected Steps", but I really want a button that will "Run Selected Steps Using Single Pass". Which case in the Complex Labview Operator Interface does this for me? What I really want is the report to be generated which happens when I use "Run Selected Steps Using Single Pass" but no report when I select "Run Selected Steps".

Thanks!
0 Kudos
Message 1 of 6
(3,736 Views)
Hi Shay,

The "Run Selected Steps", "Run Selected Steps 1"..."Run Selected Steps 9999" in the Sequence Display.vi is the one you want. Theres a small case statement that performs the execution with process model or execution w/o model.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 6
(3,736 Views)
I am trying to do the exact same thing using TestStand 4.0 and LabVIEW 8.2 but I am not having any success.  Can you give me any help?  I have run and loop selected step(s) buttons on my operator interface and they work great.  However, they don't generate a report after running so I would like to change them so that they invoke the single pass entry point.  I tried doing this by changing the cmdKind parameter of the ConnectCommand command from CommandKind_RunSelectedSteps to CommandKind_RunSelectedStepsUsingEntryPoints_Set but this doesn't seem to work.  Most of the time, the buttons are grayed out and disabled.  Sometimes I can get them enabled, but nothing happens when I press them.  Any assistance would be great.  In the meantime, I will keep working on this.
0 Kudos
Message 3 of 6
(3,547 Views)
Hi,
 
What User level are you running as because some button are disabled depending on priviledges?
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 6
(3,536 Views)
Administrator privileges.
0 Kudos
Message 5 of 6
(3,528 Views)

I figured out how to make this work.  Instead of calling the Sequence File View Manager ConnectCommand method using the Run Selected Steps button and the CommandKind_RunSelectedSteps command kind, you use the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind.  The tricky part is that before you can use the ConnectCommand method with the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind, you have to create a set of new commands.  Do this by first invoking the Application Manager method NewCommands.  This method returns an empty set of commands.  You must then add a new command to that set.  Do this by invoking the InsertKind method on the empty set of commands using CommandKind_RunEntryPointOnSelectedSteps for cmdKind, Sequence File View Manager for managerControl, -1 for insertBefore, and empty strings for currentMenuName and allMenuNames parameters.  Once you have made these calls, then you can call the Sequence File View Manager ConnectCommand method using the CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind.

The previous instructions work just the same for the Loop On Selected Steps button.  Just substitute the CommandKind_RunEntryPointOnSelectedSteps and CommandKind_RunSelectedStepsUsingEntryPoints_Set command kind constants with CommandKind_LoopEntryPointOnSelectedSteps and CommandKind_LoopOnSelectedStepsUsingEntryPoints_Set command kinds (and of course use the Loop On Selected Steps button reference instead of the Run on Selected Steps button reference when invoking the ConnectCommand method).

There is one mystery with this solution that I haven't figured out yet, besides the fact that it is so laborious and non-intuitive to me (but at least it works).  Nowhere in any of the calls detailed above did I ever see a parameter to specify which execution entry point to use.  I am using the default sequential model entry points Test UUTs and Single Pass.  Typically you specify which entry point you want to use (such as when invoking the ConnectCommand method) in the form of an index to a set of entry points where the Test UUTs entry point corresponds to a set index of 0 and Single Pass corresponds to a set index of 1.  How did the previous calls determine which entry point to use when I didn't specify anywhere which one to use?  Do this just work because you can only run or loop on selected steps using no process model or the Single Pass entry point?

0 Kudos
Message 6 of 6
(3,514 Views)