LINX

cancel
Showing results for 
Search instead for 
Did you mean: 

encoder reset

Hello,

I read an encoder with a custom command. Now I want to reset this counter, but I can't do it.

 

Can somone help me?

 

christian30826_1-1617705488136.pngchristian30826_2-1617705549932.png

 

0 Kudos
Message 1 of 3
(106 Views)

Hey Christian!

 

let me know a bit more about your problema.

 

would you like to reset the counter variable in LabVIEW or inside your code running customcommand?

 

Since i can't see wherelse your local varible is been used, i believe you could just send 0 to the variable given certain condition using select function in comparison pallete.
if you want to reset the counter value inside your arduino logic, then you can use custom command to send a value and use the function in your firmware to reset the value.

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 2 of 3
(67 Views)

Hello Jorge,

Thank you for the feedback.

Info about my problem:

 

The costum command counts the interrupt inputs that are connected to an encoder (Stepps). After a reference run, the counter should start again at zero.

So far I have solved it in such a way that the program is stopped after the reference run, so the counter starts again at zero, but that is not so elegant.

 

Unfortunately I am not able to send a command to the costum command 

0 Kudos
Message 3 of 3
(22 Views)