Hi all,
I am acquiring the 'W' signal from an alternator in order to measure its speed (a almost-square wave conditioned in order to be a ttl square wave). In a single round this signal has 12 periods, unfortunely not equal one to each other due to alternator construction.
For this reason, the speed calculated from measuring only one period of the signal is irregular, so I'm trying to acquire more periods and average their lenght in order to reduce irregularity.
I customized Measure Buffered Period.vi configuring the counter for continuos acquisition and adding a while loop to read the counter. I'm not involved in overlapping of data since the alternator runs at constant speed or with a very slow ramp.
The p
roblem is that after a certain number of iterations (not constant) Read Buffer VI states that the counter is always running and never stops counting.
I added a time-limit for acquisition and tried to catch the time out condition (warning code 10800 according to documentation) so to re-program the counter, without solving my problem.
During counting, I periodically read analog signals (AI Single Scan.vi) and status of inputs (DIO port Read.vi).
I'm using LV 6 with a PCI-6035E on Win98.
Anyone can suggest me some hint?
Roberto