From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-08-2005 10:10 AM
08-08-2005 01:37 PM
Hi Norick,
I'm having a little trouble understanding exactly what you need, but maybe this will help. Could you run your program in 3 steps using a sequence structure with three frames?
1) get the current milliseconds by using Tick count. Pass this value to the next frame using a sequence local
2) run your system exec command using "wait until completion" to false and having your command line create a dummy file when it finishes
3) keep checking the milliseconds by again using tick count and comparing to the value in frame 1. If too many milliseconds have passed, or you find the dummy file, move on, if not, keep checking. You could use a while loop here.
Again, I'm not sure about what you need in the way of output, so this may not work, but just an idea. Good luck,
PP
08-09-2005 12:28 AM
08-09-2005 08:17 AM
Norick,
Does your DOS app, if run from the command line, produce output WHILE it is running? If it does, try changing the input to system exec in command line to something like "myprogram.exe > output.txt". Doing so will pipe all output normally put to the screen to a file just like the file were the screen. You can then read that file nearly continously, with a small break in between. I've created a simple example and have attached it. You may need to play with the active directory input to get he output file where you want it.
If your program only outputs data to the screen when it is finished, then there is nothing LabView can do. You will need to play with the DOS App to get the data outputed during execution. Does this help?
Good luck,
PP
08-09-2005 08:19 AM
08-10-2005 12:21 AM