NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

selectable sequences

Is there a way to have User Selectable Sequences from TS 4?  When the user runs the main sequence a POPUP will appear that allows them to select ( Buttons) which test to run ?
0 Kudos
Message 1 of 17
(6,017 Views)
Hi CE,
 
Look at this small example. I have used the TS message pop up for this stuff.
 
Greetings
 
Juergen
 
 
 
 
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 17
(5,999 Views)

 

Juergen,

That worked like a charm !!!!!! 

Thanks !

Clint

0 Kudos
Message 3 of 17
(5,971 Views)
Juergen,
Is there a way to add an EXIT Button ??  When the user selects this button the seq does a Cleanup and closes the seq??
Thanks,
Clint
0 Kudos
Message 4 of 17
(5,850 Views)

Hi Clint,

Check out the example

Take a look into PostAction of MessagePopup

Greetings

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 17
(5,845 Views)
Thank-you !
0 Kudos
Message 6 of 17
(5,839 Views)
How do you make so that when you select EXIT the green pass/red fail banner isn't diplayed??
0 Kudos
Message 7 of 17
(5,807 Views)
Hi Clint,
 
Oh! this is process model dependent. Let's assume you have the Sequential Model from NI or some derived stuff,
I would overwrite the PostUUT callback (If you dont like a report do the same) and also store the nButtonHit in a FileGlobal to get access
 
Check out the example
 
 
Greetings
 
Juergen 
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 8 of 17
(5,797 Views)

Juergen,

With the example sent can you pass parameters between the main seq and one of the subsequences??  I can seem to find a simple way around it.  I'd like to allow the Tech to run individual sub-subsequences.  In your example seq A or B or C would also have calls to their own seqs in my file.  In Main I would set a parameter to a 1 or 2 based on "buttonhit" from a popup.  In each of the sub-sub sequnces it would check a precondition to see the value of this variable.  If it was one value the step would execute.  Otherwise it would skip it.  I'm trying to eliminate the pwr up and pwr down of Supplies if the user selects an end to end test rather than just run a single sub/sub seq.  So back to my question ( unless you have a better suggestion).  Can I pass a parameter from Main in your example ( it evla'd at run time) to any one of the sub seq calls (Seq A or Seq B etc.) ?  Or am I stuck using a global?

Also, is it possible to "hide" the post uut/post uut loop icons when I use the Operator Interface shipped w TS??  I don't want the Operator to be able to select one of these callbacks when they load the Main Sequence file.

Thanks!!

 

Clint

0 Kudos
Message 9 of 17
(5,675 Views)

Hello Clint,

Thank you for posting on the NI Discussion Forums.  Attached is a modified version of the last example Juergen posted.  It has an extra Message Popup step in first step of the Main Sequence that prompts the user to press one of two buttons.  The button press is stored to a local variable in the Main sequence, which is then passed to a parameter named “param” in SeqA, SeqB, or SeqC (depending on which one the user chooses)  through a Pre-Expression function in the Sequence Call step.  Then, the Sequences SeqA, SeqB, and SeqC test “param” to display one of two messages using an If flow control step.

Can you tell me which OI shipping example (and which version of it) you are referring to that you would like to hide the Sequence view tab?

Chris_G
Sr Test Engineer
Medtronic, Inc.
0 Kudos
Message 10 of 17
(5,648 Views)