NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to see parameters in Watchlist

Hi,

 

The code module (TestComplete) returns a value.  I mapped the return value to a parameter name in TestStand (Parameter.CloseProjectResult),  see attached.

 

But when I open the Watchlist (for debugging), This Parameter name does not exist.  So my question is , how can I see what the value is returned?

 

Thanks so much!

 

ph2

0 Kudos
Message 1 of 4
(3,170 Views)

Hi,

 

You have assigned the result to be returned to Parameter.CloseProjectResult but this variable is only in scope during the execution of the Sequence in which Parameter.CloseProjectResult has been assigned in.

 

eg if its the Parameter of the Sequence MySequence and MySequence is a SubSequence to MainSequence then CloseProjectResult is only available in the WatchList while the execution is in MySequence. If you have set the variable CloseProjectResult to be 'Pass by Reference' then the value of CloseProjectResult will be passed back into the caller sequence to the variable you have assigned to it.

 

See attached example

 

 

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,147 Views)

What do you mean by watchlist? There is a variables view, which shows the state of all variables when at a breakpoint, including parameters, and there is a watch view that is initially empty. It's up to you to add things to the watch view, it is not populated automatically.

 

Hope this helps,

-Doug

0 Kudos
Message 3 of 4
(3,137 Views)

Thanks Ray and Dug!  Yes, I can see the return values of the parameters now.

 

Regards,

 

ph2

0 Kudos
Message 4 of 4
(3,132 Views)