Hello -
I have a quad encoder connected (not the Z pulse) and the system is showing the count from the encoder. I put a switch on the Profilab panel that toggles the RST1 and RST0 low, but the reading does not zero. It remains that the current read. Maybe the Z channel is supposed to zero out? That makes mo sense since the Z channel toggles every revolution.
I don't see any word of reset detail in the LJControl panel.
Can you help?
To reset the timer value to 0 you write a value of 0 to either timer:
https://labjack.com/support/datasheets/u6/hardware-description/timers-co...
In the pseudocode section you can see an example of this where it uses an ePut to write a value of 0 to Timer1 to reset the duty-cycle measurement to 0:
https://labjack.com/support/datasheets/u6/high-level-driver/example-pseu...
You will have to ask Profilab how to write a value of 0 to a timer, but if Profilab does not allow that I suggest you just read the current value of the timer, call that your offset, and subtract that from future reads.
Thanks - I will chat with the Profilab people. I can't read and subtract because that may eventually lead to a rollover.
What hardware/software do I need in order to write into the U6?
Thanks - I will chat with the Profilab people. I can't read and subtract because that may eventually lead to a rollover.
If you are concerned about rollover, it is generally easy to detect and handle in software although I am not very familiar with Profilab.
What hardware/software do I need in order to write into the U6?
If you develop your own app in any development environment you can write as desired:
https://labjack.com/support/software/examples/ud
If you are looking for higher level software where you can write timer values, consider DAQFactory from AzeoTech:
https://labjack.com/support/software/3rd-party-applications/daqfactory