NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Standard Output from a Call Executable

 

Hi,

 

well I am using this executable &  have configured the Additional Results to show the Standard Output.

 

is there any explanation what teststand wants to acheive with this  -> its the value to log for a Std out

 

(Step.StdOutput.Dest == 2 ? ResStr("CALLEXEC_STEP_TYPE", "LOCAL_FILE_VAL") + " " : (Step.StdOutput.Dest == 3 ? ResStr("CALLEXEC_STEP_TYPE", "REMOTE_FILE_VAL") + " ":"")) + Evaluate(Step.StdOutput.Expr)

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

On the Standard Output/Error tab of the step settings for a Call Executable step, you can select an Output Destination for the standard output. The value you select here corresponds to an integer in Step.StdOutput.Dest: 0 is Ignore, 1 is Store in Variable/Property, etc. For Store in Variable/Property, you can enter an expression of where the data should be stored (for example, Locals.MyOutput). Two of the other options are to store the output in a file, either locally or on a remote machine. In these cases, a file browse control allows you to specify the file.

 

The expression you see in the Additional Results is designed to log the output information, and it must pull from any of these locations depending on which one the user selected. The first section in parenthesis basically says "If the user chose to store this output in a local or remote file, include the localized (translated into the current TestStand language) string for "Local File Value" or "Remote File Value"". The part at the end that says " + Evaluate(Step.StdOutput.Expr)" actually pulls the standard output data from wherever it was stored (local file, remote file, or a variable) and includes it in the string. The end result of this is that you get the standard output, and if you saved that output in a file, you get a tag in the string that lets you know the data is saved in a file.

 

I hope that helps, and let me know if you have any further questions about it.

0 Kudos
Message 2 of 3
(4,687 Views)

thanks Daniel,

 

I am trying to use the Std Out & save the result  in tdm file  with the help of  Seqfile Postresult list entry callback

 

will come back later with any isssues

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