LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

counter,unstable result

Have you tried the measurment with max test panels?  This will allow you to not blame the code.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 11 of 16
(940 Views)
I use the Tone measurement.vi to measure the signal. If I set the sampling frequency to 1000, the reading is totally wrong, but when i set the frequency to 5000 or higher, it gives a correct reading. Could you tell me how can I put the reading to 0 when the signal is not fed? As now, when I disconnect the signal, it only keeps the last reading instead of going down to 0?
0 Kudos
Message 12 of 16
(922 Views)

I have see some weird stuff relasted to CounteInput->General->Properties->Moew->Duplicate counter prevention.  This is set by default.  Make this false on your task.  If you have a low frequency signal and a fast clock whrn you count zero (as the source frequency drops near the clock frequency) the zeros are filtered out and your measurment is incorrect.  Aslo check to see if the pulse width is not below the minimum pulse width filter if your device has this option and it is also enabled.  Good Luck,

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 13 of 16
(912 Views)
Also the fact that you dont appear to measure 0 when the source is disconected leads me back to duplicate count prevention = TRUE.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 14 of 16
(907 Views)
Did you try the dupCountPrevention?
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 15 of 16
(873 Views)
No, I am using the Analogue channel at the moment to count the frequency and it seems working at the moment. Thanks a lot
0 Kudos
Message 16 of 16
(862 Views)