NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine the mean value of a ping test via a batch file

Solved!
Go to solution

Good morning Oli,

 

Thank you very much!!! I did everything exact like you, the "Test Sequence Passed", the ExitCode is 0, which also means that there shouldn't be a problem.

 

If i run the sequence with a breakpoint i have the same text as you in my variable. But i don't exactly know why the Variable is just saved in this window:

 

VariableOK.png

 

But not in this:  

 

VariableNOK.png

 

 

Because if I then continue to work with the variable in the following steps, does the program "see" the content of the variable (upper picture) or the empty content (lower image)?

Is it then the case that there is never anything in the variables in the lower picture, but only in the upper picture, because only here the variables are taken from the executed program and the variables from the lower picture aren't touched while running?

I hope you know what I mean 😄

But anyways you helped me a lot. I really appreciate it 🙂

 

LG Tobi 

0 Kudos
Message 11 of 16
(1,018 Views)

I see, the UI concept of teh SeqEditor seems to have confused you

 

The thing you are refering to in the upper picture (with that yellow bubble) is the actual execution. An execution gets spun up when you start a sequence file. You can interact with the execution using this exact window (variables, steps, breakpoints, ...)

In the lower picture, you find the original sequence itself as a blueprint if you will. This window is not meant for interaction. The variable values you find there, are the default values you specify at edit time.

 

 


Because if I then continue to work with the variable in the following steps, does the program "see" the content of the variable (upper picture) or the empty content (lower image)?

 


Your code will work with what is in the execution, so with what is in the yellow bubbily upper picture 😉

 

Shameless plug: I will be teaching a "Developing TestProgams using TestStand" course in October in Reutlingen 😉

 

Glad you got this solved!

0 Kudos
Message 12 of 16
(1,014 Views)

Now I wanted to solve the whole thing a bit "more elegantly" with a regex "/Average = [0-9]*/g"  , but I didn't find this function directly with this name in teststand. Is it possible to implement such a regex expression?

0 Kudos
Message 13 of 16
(960 Views)

I have never used RegExs befor in TestStand, yet it seems to be possible :

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q0000019fkWCAQ&l=en-US

 

0 Kudos
Message 14 of 16
(956 Views)

Thank you Oli,

 

I did everything like the tutorial, but I get this Failure-Message:

 

to0bi_0-1692956534255.png

 

I am not sure if i did something wrong or if i have a too old teststand version (2019)

0 Kudos
Message 15 of 16
(940 Views)

Sorry, wasn't aware that RegEx Support was only available from 2020 onwards 🤔

 

Oli_Wachno_0-1692961236936.png

 

0 Kudos
Message 16 of 16
(929 Views)