LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data logging when boolean condition is met

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>

0 Kudos
Message 1 of 5
(2,808 Views)

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.

Tim
GHSP
0 Kudos
Message 2 of 5
(2,806 Views)

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)

Download All
0 Kudos
Message 3 of 5
(2,800 Views)

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.

 

Producer Consumer

Doug Ferguson
0 Kudos
Message 4 of 5
(2,787 Views)

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.

Tim
GHSP
0 Kudos
Message 5 of 5
(2,776 Views)