LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two channels triggering 6221

Hi,
i have two rotary encoders. Each of them has two tracks. One is the reference track and the other has 18000 lines. (TTL-Signals)
If the reference mark occurs on encoder number one i want to start counting the lines of encoder one. If the reference mark of encoder two occurs i want to save the sum
of lines of encoder one. But i want still to continue counting lines on encoder one and everytime on encoder two occurs a reference mark i want to save the sum of lines of encoder one. If the reference mark of encoder one occurs the third time i want to stop the measurement.
I would be very pleased if someone could help me.
 
regards
Jens Bihr
0 Kudos
Message 1 of 2
(2,257 Views)
Hi!

You can use the buffered counter measurement examples.
If you are using LabVIEW you can find them under the example finder.

For example the Meas Angular Position-Buffered-Finite-Ext Clk.vi
The encoder counts the lines and for every refernce mark, (in this case the clock source in PFI9) the actual value of the encoder lines is written in the array.

You should set this example to read only three samples and after it will stop.

Best regards
Ken
0 Kudos
Message 2 of 2
(2,219 Views)