NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Executable step exit code not updating

Solved!
Go to solution

Hi fellows,

 

I am trying to use Call Executable step to get the return value of the executable.

I used C code to build an executable, which includes an integer as return value. Then I use Call Executable step to call the program. The step does work and I can see the exit code, which is my return value correctly shown in the report. However, the ExitCode value is not updated in my variable section. It still shows up as 0. Attached is my report result and my variable list after running.

 

Does anyone know what might be the cause?

Download All
0 Kudos
Message 1 of 2
(2,108 Views)
Solution
Accepted by topic author cheng165

I was able to get the return value now. I thought the variable session would change during run time, but it actually doesn't. It always shows the default value. The variable is processed during run time. I add a numeric test step to test the previous assigned value and it does work.

0 Kudos
Message 2 of 2
(2,060 Views)