LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pulse Measurement trips Write to File

I have a problem with the attached VI. I send a pulse signal from a paddle flow meter to the Pulse Measurement sub-VI. If the actual water flow goes to zero (and pulses go to zero), the Write to Measurement File function writes a new file every second instead of continuing to write to one daily file. How do I fix this? A second problem is that the resulting flow resolution is too low - even though I'm receiving a high-frequency pulse, the indicated flowrate is only resolved to about 2 gpm when I should be able to get a resolution of 0.1 gpm or so. Seems like this is a problem with the sample rate at the Pulse Measurement sub-VI also.

Thanks in advance for help.
0 Kudos
Message 1 of 4
(3,014 Views)
In you write to file turn off, "Save to series of file" and turn on, "Save to one file". 
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 4
(3,003 Views)
Check that what you are getting out of your pulse measurements vi is what you are expecting.
Even if you input a waveform with 100 pulses, you'll only get 1 measurement out (of the first pulse). You may need to put this function in a while loop incrementing the pulse number to be measured until there are no more pulses. That way you'll get a measurement for each pulse.
There is also an automatic conversion going on at the input to the pulse measurement vi to convert from a dynamic data type to a waveform.
It may be converting it correctly how you want it, it may not. You might want to insert a "convert from dynamic data" vi in there and select the correct convertion type.

As far as the problem writing to a measurement file goes, you'll have to hope someone who is an expert on express vis answers your question.
They seem to be fickle beasts those express vis. I steer clear of them.

I can only suggest you handle the file writing without the express vi. Doing it with discrete functions. Then you will actually be able to tell what is going on rather than function being handled by a mysterious black box.

As far as I can tell, the solution suggested by Matthew will stop it writing new files every second when flow = 0, but you will only get 1 file total, rather than one file every day.
And it doesn't explain why the express vi changes from expected behaviour (writing one file a day) to writing a new file every second.



Message Edited by Troy K on 03-18-2008 10:33 AM
Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 3 of 4
(2,999 Views)
I would prefer to not write a continuous file, as the files would become much too large over periods of days and weeks. It seems like it is the lack of numeric output that is causing the file write to trip. Is there a simple way to look at theoutput from the pulse measurement vi and replace it with a zero if the output is infinity?
0 Kudos
Message 4 of 4
(2,976 Views)