08-08-2023 02:00 AM
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:
But not in this:
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
08-08-2023 02:16 AM
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!
08-25-2023 02:55 AM
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?
08-25-2023 03:14 AM
I have never used RegExs befor in TestStand, yet it seems to be possible :
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q0000019fkWCAQ&l=en-US
08-25-2023 04:47 AM
Thank you Oli,
I did everything like the tutorial, but I get this Failure-Message:
I am not sure if i did something wrong or if i have a too old teststand version (2019)
08-25-2023 06:00 AM
Sorry, wasn't aware that RegEx Support was only available from 2020 onwards 🤔