12-08-2011 09:38 AM
I am rather new to labview so you will have to bear with me.
I am wanting to write a VI that logs the data from a flow meter every second. ( the counter keeps counting and does not reset). I have a timer program which sends out a [false] value every time a second has elapsed.
How can i set it up so that i can log the pulse count from the flow meter every time the false signal is sent? ideally recorded into a table format which is easily exported to excel?
Many thanks in advance
DAQ [COUNT]------[has a timer sent false]- <Y>-------[log result]
^ |
[has a timer sent false]-<N>
An expansion would be to have the calculations i would do in excel run in labview as well. This would be...
[is there a previous value in the log] <Y>-[subtract previous result from current]---[log result]
[is there a previous value in the log] -<N>
12-08-2011 10:03 AM
What do you have so far? Can you post your code?
This is really bacilly simple to do. You set up a daq loop that constantly reads and when the time out happens you read the loop and save the data to an array or directly to a file. You should work on getting the data acquisition loop working and then add the save to file stuff after that. Take it one step at a time.
12-08-2011 10:21 AM
heres a screen shot of what i have plus the VI. All i want to do is record the value from the daq every second ( when the false value is sent from the timer program)
12-08-2011 11:16 AM
Look at producer/consumer type programming. The producer would being reading the data at whatever rate. The consumer would write the data to file at another rate (i.e. 1Hz). Very effective type of programming.
12-08-2011 11:41 AM
You are also going to have to get rid of the daq assistant to get this to work well. When you are all done you will only have the read in the loop that is exicuting. You can look at basic exaples to see how this is done.