LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reset counter from DAQ

Solved!
Go to solution

I have a system such as X and Y coordinates, and during displacement my counter will be increase, but when this system arrives in specific coordinates, It will need to reset the counter (Equal Zero) to say this will be zero point.
Attached has a picture to show how I read pulse form DAQ.

 

0 Kudos
Message 1 of 4
(3,127 Views)

Hi LVelozo,

 

what kind of hardware do you use?

 

- You can always store certain coordinates in a shift register and use this as "origin". When reading new counter values you just subtract the "origin" similar to some "zeroing of offset" feature…

-  Depending on the counter hardware they could support some reset feature. But all of them can be set to zero by stopping and restarting the DAQmx task…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(3,124 Views)

Hi GerdW,

First thank you for your help.

I am using NI CompactDAQ 9178 with NI9421 to counter.

I like the ideia to use a shift register, so I will have such as "Offset". Could you send any example with shift register to store coordinates.

 

I appreciated a lot.

Best regards,

LVelozo.

0 Kudos
Message 3 of 4
(3,113 Views)
Solution
Accepted by topic author LVelozo

Hi LVelozo,

 

you really should know how to use shift registers!

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,107 Views)