Guangde Wang wrote:
>
> I'm using Labview 4.01 and I'm trying to control my testing process. In
> this case, I have 3 gas cylinders and every one of them can be turned on
> or off through the digital out lines. After one tank is empty, I can
> turn it off and turn on another one. My question is, how we can save
> this status either it's true or false so next time, we can open the
> other one instead of this empty one. After this one is turned off, I can
> show its state with an indicator, but the program can not read an
> indicator, so we still can not check the state of this tank. Any one
> have a solution for this problem?
>
> Thanks in advance,
>
> Guangde Wang
Your version is too old. So I believe that saving data in any kind of
configuration file will
do the job (like .ini or .conf).
It also depends on if you are closing application between your vi runs.
If you don't remove the vi from memory, you have a chance to use global
or functional global to store your state.
In latest versions you can do it another way.
--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru