NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Edit VI on insert step into sequence and execute during sequence run

Does anyone know how to build a VI in LV8.6 that will allow a user to edit instrument settings without sending them when placed in a TestStand sequence and then execute them (send the command from the edit step) during the sequence run? Would I generate a command string within the VI and pass it to a specific type of variable in TestStand? If the VI is not actually running in edit mode, how to I get the string out....or is Or actually running in edit mode? I was thinking there must be some way for TestStand to know if it should store the results of the configuration or send them to the instrument based on the current state being edit mode or run in the test sequence. As per some previous suggestions, I am studying the IVI variables in TestStand, but was wondering if anyone has done this before and could provide some pointers.

Thanks,

Skidsteer

0 Kudos
Message 1 of 2
(2,880 Views)

Hi Skidsteer,

I did this in my stepType written in C++.

ftp://ftp.ni.com/pub/branches/germany/vip_days_sessions/teststand_step_type-mtu-dodek.pdf

 

To dectect were i am, i have used the SequenceContext Object and checked if there is

Execution Object. If yes you are in a running sequnce, if not then you are in Editor.

 

By the way all you need is the SequnceContext in your VI

 

Hope this helps

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 2
(2,867 Views)