Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

One sensor update after other sensors


Makada Jan 2, 2022 10:02 PM

Hi,

How do i get one pulsecount sensor to update after other sensors?

The scanrate is one second for all sensors.

So the one pulsecount sensor i need to update one second behind the others (non pulsecount),  with the same one second scanrate.

With the kindest regards, 

Mark


nsw Jan 4, 2022 03:33 PM

You have not said which datalogger model you are referring to, but they all act pretty much the same.

The PulseCount instruction sets up a counter which keeps a count running between each scan start time.  When the scan starts, it outputs the total of counts accumulated and resets the counter to zero. This occurs at the start of the scan, no matter where the PulseCout instruction is in the main scan. 

The PulseCount instruction CRBasic Help states :-

"Each pulse counter port (P1/P2 or control port) has an independent 32-bit counter. Maximum counts per scan are 232 or 4,294,967,296. Each scan of the datalogger causes the counter to output the number of pulses accumulated since the last scan."

As far as I know, I do not believe the measurement method behind PulseCount can be changed or adjusted. Unless anyone else knows differently?

If you are looking to measure an instantaneous frequency of a signal, rather than the total number of pulses between scans, then take a look at "PeriodAvg" instruction instead.


Makada Jan 4, 2022 05:29 PM

Hi nsw, 

Thanks alot for your input.

Ill have to find another solution then:)

With the kindest regards, 

Mark

Log in or register to post/reply in the forum.