06-28-2013 08:47 AM
Hey,
do anybody know where I can find a variable in Veristand which says if a RT- sequence is finished running or not?
I´ve got a runtime problem in Teststand and want to creat a Do While-loop to make sure that the Veristand sequence is finished and that not till than TestStand executes the next step.
Thanks
Carlos
07-01-2013 04:41 AM - edited 07-01-2013 04:44 AM
Hello Carlos,
you can try the Get Model Execution State.vi or the Get System State.vi in a step to get the information.
Also nice, but not the such a function included NI VeriStand Add-on: Custom NI VeriStand Steps for NI TestStand
I hope this helps.
07-01-2013 08:48 AM
Hi Carlos
I’ve used a dotNET step within a Do While to check the state of a running stimulus profile. Need to open the reference to the Stimulus Profile first using a separate dotNET step. See my TestStand 2012 example (VS_StimProfileChecks.seq).
Assembly: NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi(2012.0.0.0)
.NET Invocation: Use Existing Object(NationalInstruments.VeriStand.StimulusProfileDefinitionApi.StimulusProfile).State
Best Regards,
Todd - Digalog Systems Inc.
07-03-2013 05:25 AM
Hey Alexander, hey Todd,
thank you both for your solutions!
I´m trying right now to reproduce your sequence, Todd, and it is working so far till the execution of the Action-Step "Open Project Reference". I get an error there... I changed the project-path to where my Engine Demo.nivsprof is located but it still doesn´t work. Do you know if I have to make other changes to get it work?
Thanks!
Best regards
Carlos
07-08-2013 02:10 AM
Hello Carlos,
the demo project starts on my system with this path
C:\\Users\\Public\\Documents\\National Instruments\\NI VeriStand 2012\\Examples\\Stimulus Profile\\Engine Demo\\Engine Demo.nivsproj
for the stimulus i used this path
C:\\Users\\Public\\Documents\\National Instruments\\NI VeriStand 2012\\Examples\\Stimulus Profile\\Engine Demo\\Stimulus Profiles\\Basic Engine Demo\\Engine Demo Basics.nivsstimprof
I hope it helps the paths are to the standart demo project from Veristand