08-04-2005 12:57 PM
08-04-2005 02:02 PM
08-04-2005 02:13 PM
As requested, here are the parameters that I pass in the system exec.
Command Line = "C:\SomeDirectory\rsync_run.bat" in string format (with quotes)
Working Directory = C:\SomeDirectory in path format
Run minimized = true
The rest of the parameters are left as defaults. Also, in case it is important, I'm on WinXP Labview version 6.1
Thanks again,
Ian
08-04-2005 02:48 PM
08-04-2005 02:53 PM
Oh, pardon my typo. Originally it was set to run minimized = false. The true flag was me playing around with some settings.
Irregardless, even with minimized = false, I see nothing at all, not even echos
08-04-2005 03:06 PM
Hi Perl,
Have you set "Wait until complete" to false?
Also, you could send the output of the system call to a text file, by adding ">textfilename.txt" to the end of your command. You then read in the text file within a loop.
So, if your command is (for example) "runsomething.exe arg1 arg2" then change it to "runsomething.exe arg1 arg2 >textfilename.txt" to redirect any echoed messages to the text file. You can then open the text file and wire it to a display on the Front Panel to see what is going on.
08-04-2005 03:10 PM
Hey thanks JLV,
I've now got some rudimentary file display working by outputing to file then checking the file. I do see one possible problem though. What if I attempt to read from the file at the exact time the batch file is writing to the file? I can't think of how to simulate this problem, but I imagine labview would freak out. Any thoughts from anyone? Thanks for the help guys,
PP
08-05-2005 09:01 AM
Hi Perl,
I forgot to mention to stop writing to the file and closing it upon completion of the System Exec.
I do open text files while they are being written to using TextPad. I think LV won't complain if you use the "ReadTextFile.vi", not the open/create one where you have to open, get a file reference and then read it and closing it... There is a read text one in the basic file vi's that should do the trick.
It's been a while since I've done this in LV. I am currently doing it in CVI and it works well 🙂
.... so far so good ...
Hope this help,
JLV