From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

i need to knew were can i put a code that will run after any step.

i want that a specific code that i wrote will run after any step in the main sequence.
this code suppose to increment a variable if the step is failed.
i did not find the place in the VB Operator Interface that executed after each step.

please tell me where i need to put my code so it will be excuted after any step regardless if the tracing is enabled or disabled.

this question is about the original source code of TS VB Operator Interface.

advaced thank's.

avi gafa, RADA,Israel.
0 Kudos
Message 1 of 5
(3,575 Views)
Avi,

There is an NI KB article on this titled "How Can I Perform Some Action
After Every Step Executes" at:

http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&06109F4BC56EAC03
86256838005EB865&cat=629CD2F2758A8D00862567C2005ACE42

HTH,

Bob Rafuse
Etec Inc.

"avi gafa" wrote in message
news:506500000008000000B7160000-984280909000@quiq.com...
> i want that a specific code that i wrote will run after any step in
> the main sequence.
> this code suppose to increment a variable if the step is failed.
> i did not find the place in the VB Operator Interface that executed
> after each step.
>
> please tell me where i need to put my code so it will be excuted after
> any step regardless if the tracing is enabled or disabled.
>
> this question is about the o
riginal source code of TS VB Operator
> Interface.
>
> advaced thank's.
>
> avi gafa, RADA,Israel.
0 Kudos
Message 2 of 5
(3,575 Views)
the link is dead!
0 Kudos
Message 3 of 5
(3,575 Views)
> the link is dead!

Hmmmm.... I just was there yesterday. Did you append the URL stuff that
wrapped to the next line? Instead of clicking on the link in the message
cut and paste the two lines into your browser's address bar, concatenating
the two lines. That should do the trick.

Bob.
0 Kudos
Message 4 of 5
(3,575 Views)
I agree with Bob that I think you would be better to implement what you are wanting to do within your actual test sequence rather than modifying the VB operator interface code. You can easily do what you are wanting to do by using a SequenceFilePostStep callback in your test sequence file. As the document that Bob is referring to points out, this callback executes after EVERY step in your sequence file. The specific Developer Zone document that Bob is referring to can be found by going to Resource Library>>TestStand>>Sequence Execution>>Execution Flow>>How Can I Perform Some Action After Every Step Executes?

Regards,

Richard McDonell
Applications Engineer
National Instruments Corp
www.ni.com/ask
0 Kudos
Message 5 of 5
(3,575 Views)