LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitor process and write file on demand

Hi there!
I build a VI to monitor and write signal-data coming from some sensors.
Input is direct-current in volt (coming from my NI-DAQ-card).
Right now the situation is like this: signals are comeing in, Labview is
showing them in volts and also scaled to physical units. Thats all right.
(see this VI as .jpg on
http://home.arcor.de/neighbourhood-network/my_vi.jpg ) But: This VI is
writing these data continiously to a file when it´s runniung. I need to
monitor these data continiously, but I do not need to write them to a file
continiously. I´m looking for a sloution which allows to monitor data
(starting with pressing the "run" button in the upper left corner) an write
these data continiously _on demand_ (by pressing a button som
ewhere in my
vi).

What I tried is this:
I placed this "Open/Create/Replace File"-VI into my vi and tried to generate
an "error in" by a boolean control. This is how it should work in theory.
But it doesn´t in LabView - because these a different types of data. Ok -
stupid. I also tried one of these error-handlers. But this didn´t work too.
What is a solution?
I thought about a case-loop, but this seems to be stupid because I would
have to decide whether I want to run the VI only monitoring or monitoring
and writing.

Does anyone have an idea or a finished solution / VI which he could send me?
Or does somebody knows where to find a solution like this? I tried the
solution-corner in NI.com, but without success.
(I´m running LabView 5.0 on a W2K-machine)

Thanks in advance!

Sascha
0 Kudos
Message 1 of 3
(2,963 Views)
All you really need to do is put your file write inside of a case statement and wire a front panel Boolean to the selector. Make the True case have the file write and leave the False case empty except for wiring the error cluster straight through). Shouldn't take more than a minute or two to modify the program.
0 Kudos
Message 2 of 3
(2,963 Views)
Thank you so much - this really works 🙂
Why is it that simple?!

Sascha
0 Kudos
Message 3 of 3
(2,963 Views)