NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I automate a simple exe using the step call executable in teststand

Hi,

 

I added a step "call executable" in teststand.

 

I made a "Add.exe"[For adding two numbers]using labview.(Input is given by a simple numeric control and output is given to a numeric indicator in "Add.exe".)

 

I browsed "Add.exe" in the "Call executable" step of teststand.

 

How can I automate "Add.exe" using the step "Call executable" in teststand.

 

Automate means

 

1.Could you please tell whether we can given inputs[To "Add.exe"] using any step\variable in teststand.

 

 2.Whether we can varify the out put of 'Add.exe" is correct or not by using any step\variable in teststand.

 

Thanks.

0 Kudos
Message 1 of 9
(5,212 Views)

Hi,

 

it is not that simple to give inputs to an exe.

 

try using a dll instead of that. it is much more simple.

.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/
.....),---.(_(____)/.....
....// (..) ),----/....
...//____//......
..//____//......
.//____//......
..-------
0 Kudos
Message 2 of 9
(5,195 Views)

Hi,

 

I tried using dll.

 

But I also want to know whether it is possible[If "yes" how] for a simple exe.

 

[1.Whether possible to given input through teststand.

  2.Whether possible to check the output is correct or not through teststand].

 

Please replay.

 

Thanks.

0 Kudos
Message 3 of 9
(5,190 Views)

1. As far as i know it is not possible to give input to an exe in the same manner you give an input to dll or a labview VI.

 

2. This you can do through the 'pass fail test' steps.

.......^___________________^
....../ '---_BOT ____________ ]
...../_==O;;;;;;;;_______.:/
.....),---.(_(____)/.....
....// (..) ),----/....
...//____//......
..//____//......
.//____//......
..-------
0 Kudos
Message 4 of 9
(5,188 Views)

Hi,

 

1.Select the step "Call executable".

2.In step settings pane select the tab "Call executable".

 

Could you please explain what is the use of the field "Argument expression" in the "call executable" tab.

 

Thanks.

0 Kudos
Message 5 of 9
(5,185 Views)

The field is for passing arguements to the exe. You need to write a LabVIEW VI that will accept arguements for use as variables. I don't have LabVIEW here right now but if I remember correctly, one of the examples explains how to do make the modifications.

 

And I agree, using an exe is not as easy as using a VI or dll.

0 Kudos
Message 6 of 9
(5,180 Views)

Hi,

 

No need to do with Labview.

 

Could you please illustrate an example with a simple exe like calculator of windows.[By adding two numbers and check whether the output is correct or not].

 

Thanks.

0 Kudos
Message 7 of 9
(5,150 Views)

Hi

 

I agree with the others!

Here you have a simple brute-force example.

 

Greetings

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 8 of 9
(5,146 Views)
Calc.exe does not accept command line arguments (as far as I know) or respond to standard input, so it is not possible to do what you are asking.  An executable has to support command line arguments, or use the console for you to send any kind of inputs/outputs to and from TestStand.
Message 9 of 9
(5,132 Views)