07-13-2005 03:47 AM
07-13-2005 06:06 AM
Your request is unclear.
You can set various options by using text files (for examples INI files - look at the File I/O>>Configuration File VIs palette), but you will have to handle the various cases inside your code.
If this isn't what you want, write some more details about what you're trying to accomplish. In any case, you will have to write code which will handle the data you are reading from the file.
07-13-2005 12:21 PM
Do you mean that you want to list the steps, or vi's to call, in a text file? If so, you can do so by using a queue in Labview. First, read the text file lines and insert each line one at a time into the queue. Then create a state machine. Do this by creating a loop to dequeue an element and use a case structure to call the vi's or execute the code depending on the dequeued element. Put an exit state at the end of the list and create an exit case in the state machine to exit the program. See attached code. To try it, create a text file with the lines:
State1
State2
exit
Point to that file in the Path control on the front panel. Run it.
07-13-2005 08:04 PM
07-14-2005 11:34 AM
07-14-2005 01:08 PM
07-14-2005 04:20 PM
A batch file sounds like what you are looking for...with the editing of lines to control the order of .EXE execution. This could also be done in an entire LV program using VI server to dynamically load the VIs. The advantage to this would be a self contained EXE rather than several separate exe's and you would be able to communicate between the two of them programatically. The down side is more work on your part as it sounds as if you already have the apps built.
A note on communicating between exe's. There are a couple of ways to communicate between built applications..such as globals, queues, or tcp/ip. This probably goes beyond what you are looking for but just thought I would throw it out there.
cheers,
Brett Burger