LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset clock count/encoder counts

Is there a way to programatically reset the clock count using labview? I am using an encoder and an e series DAQ board. When I am counting with the encoder, I come to a point where I would like to reset it to zero. I see that the examples all show that the count is reset after the loop is complete, but I would like to reset it during the loop to use it as a positioning tool. Reset to zero then start counting again from that point. Is this possible? Thanks.

Using Labview 6.1 and MIO16E DAQ Board.
0 Kudos
Message 1 of 3
(3,786 Views)
Use the "Counter Control.vi" (Data Acquesition-> Counter->Advanced Counter). With the control code 1 you can resets the counter. Alternatively you may use the VI with control codes 4 and 2 which disarms and arms the counter again ("If you follow a disarm with another arm, then the acquisition restarts from the beginning"). That should do.
0 Kudos
Message 2 of 3
(3,786 Views)
 
0 Kudos
Message 3 of 3
(3,510 Views)