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
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.
Hi nsw,
Thanks alot for your input.
Ill have to find another solution then:)
With the kindest regards,
Mark