03-08-2004 12:54 PM
03-08-2004 03:02 PM
09-20-2007 11:47 PM
As mentioned: You can call the program using "System Exec" in the communication pallette. That VI allows you to
enter the commandline with input parameters
, just like you would in a DOS prompt.......
Would you please show an example of entering input parameters?
Thank you.
09-21-2007 02:21 AM - edited 09-21-2007 02:21 AM
Message Edited by GerdW on 09-21-2007 09:23 AM
09-21-2007 02:28 AM - edited 09-21-2007 02:28 AM
@Camu wrote:
As mentioned: You can call the program using "System Exec" in the communication pallette. That VI allows you to
enter the commandline with input parameters
, just like you would in a DOS prompt.......
Would you please show an example of entering input parameters?
I have a hunch that the OP has a program that interactively wants the user to enter values in the DOS screen before doing something useful. There are only two possibilities for this. Either the command line executable allows to specifiy the necessary parameters as optional command line parameters and then System Exec will work.
Or you need to have some sort of standard IO redirection where you can make the standard input and output of a console program being directed to some form of LabVIEW communication stream. I have developed something like this in the past using pipes and put the code on OpenG as pipes module but haven't gotten around to test it to a point where I would feel comfortable to put it out as OpenG package. So if you want to tinker with it you can go and grab the VI library and DLL at http://opengtoolkit.cvs.sourceforge.net/opengtoolkit/pipe/source/ and play with it. As stated already it has worked for me in the past but I can't guarantee that it will for you nor your specific console program and it is not likely I could do a lot of work on this in the immediate future.
Rolf Kalbermatter
Message Edited by rolfk on 09-21-2007 10:03 AM