LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reseeting data from daq every second

Do you have the details of the error by any chance? Also it would be useful to know the model number of the counter you are using.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 11 of 19
(1,321 Views)

the part number is 995-0104 issue D turbine flow rate sensor ft 110 series

 

0 Kudos
Message 12 of 19
(1,320 Views)

Part number of the counter (DAQ device)


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 13 of 19
(1,318 Views)

I havn't the foggiest idea of how to find the daq device number. I just can't get my head around why it wont work. The timing progam works fine with sending out the pulse every second. My thought is that it must be a issue with the shift register as it is minusing the value in the now from the value from one iteration previous which is negligable.

0 Kudos
Message 14 of 19
(1,314 Views)

In the DAQ assistant setting, if you click on the >> button you should see the details of the device.

 

DAQ1.PNG

 

Also make sure that you select a clock source in the advanced timing tab. THIS SHOULD NOT BE THE SAME CHANNEL as before, for example if you chose Ctr0 above, you cant chose Ctr0InternalOutput.

 

DAQ2.PNG

 

Try running this, if you are getting an error click on the details button and post the contents.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 15 of 19
(1,307 Views)

i am unable to select ctrlinput 1 as the source. instead i get "pf10." i try running with that and get the error

 

Error -200077 occurred at DAQ Assistant



Possible Reason(s):

Requested value is not a supported value for this property.

Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: On Demand

0 Kudos
Message 16 of 19
(1,303 Views)

Richard,

 

I was off the mark on my last post -- I didn't catch that you were doing a counter measurement.  If the VI you posted was giving you good counter readings then I think this might be along the lines of what you are looking for:

 

flow meter logger_simon.png

 

I didn't understand what your additional logic was doing -- to me it appeared you were checking to see if the time had changed or not and selecting either the current or the previous reading based on that check.  This seemed unnecessary since you know the loop is iterating once per second so this check will never evaluate to be true.

 

~Simon

0 Kudos
Message 17 of 19
(1,296 Views)

unfortunatly i have an older version of labview so i couldn't access the VI you uploaded. I was considering the problem last night and i thought..is there a way of building up a data table based on the boolean false/true sent from the timer program?

 

The idea being that as the dq continues to count up and up and each time the timer progam sends [false] it would record the current value. i would just be able to subtract the present value from the previous second ( and repeat for length of experiment) in excel. Or would there be a way to have this process run in labview itself?Heres a rudimentry flowchart to help illustrate

 

DAQ [COUNT]------[has a timer sent false]- <Y>-------[log result]

                                          ^                     |

                           [has a timer sent false]-<N>                           

                                                              

 

[is there a previous value in the array] <Y>-[subtract previous result from current]---[log result]

0 Kudos
Message 18 of 19
(1,278 Views)

What is the timer for in your logic?  The loop will only iterate once per second -- it seems to me that you want to log a data value on every iteration.  The code you posted previously checks to see if the current time is equal to a past time which will never be true.

 

The code in the screenshot I posted will build a data table with the time (in seconds) in the first column and the amount the acquired counter signal has changed since the previous second in the second column.  I didn't change any of the settings in the DAQ Assistant so you should be able to recreate the VI from the screenshot.

0 Kudos
Message 19 of 19
(1,273 Views)