10-07-2010 08:52 AM
Hi All
I am using "Calling System Exec.vi". Lets say you have a command line app where you have to interact with it over the command line (e.g the command line is the applications UI) The app prompts the user for input for example "Press L to load" and then provides output, e.g. "Load Successful" and these "questions and answers" may occur a number of times.
From what I can understand this VI is geared towards running the command line application and entering all input (standard inpu) and getting all output (standard output) within a single execution of the Calling System Exec.vi
What i need to be able to do is open the app but then enter the input and retrieve the output on a piecemeal basis, at will, without having to wait for the overall execution of the vi to end and\or having to retrieve the standard output in one big lump when it does end. Is this possible, if so how?
The nearest analogy I can provide to describe what I want to do is when you are communicating with an instrument, you first open it and then you write to it (standard input) to get it to perform some action, and then you read from it (standard output) to get a response. Finally when your done you close it.
I have a feeling that this is looking like a DLL but because this is a third party .exe I cannot obtain a DLL so this is my only option.
Thanks for your help.
10-07-2010 09:57 AM
This question has been brought up before. Did you try a search?