LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

up down pulse counter mydaq

Hi

 

I am inexperienced with labview and I need help.

 

One of the elements of my project has a ring magnet with many magnet poles. I rotate this manually and produce a digital input to my Mydaq (Hall Signal from Hall sensor).

The counter (which can only count up on the Mydaq) counts the pulses and I multiply the output by 9 to read the angle of rotation.

My project requires me to rotate the ring magnet forward and back. 

How can I reduce the output angle when rotating backwards? i.e. create an up down counter.

With my limited knowledge, I tried using case structures and also shift registers, however I am unable to overcome the fact that the counter continues to count up when I change direction of rotation.

 

I have a trigger within my project to indicate change of direction

 

 

Please help......

Greg

 

 

0 Kudos
Message 1 of 6
(2,844 Views)
The counter has to know which direction the thing is turning. If there is not only one sensor it can't. You need something like a quadrature encoder to get both position and direction.

http://www.ni.com/white-paper/4763/en/

Mike .

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(2,811 Views)

Hi Mike

 

I can use a second input from a second hall sonsor so I will attempt the system in the white paper.

 

Many Thanks

 

 

Regards

Greg

0 Kudos
Message 3 of 6
(2,799 Views)

Mike/All

 

I am still stuck!

 

I am unable to determine the leading signal from the lagging signal.

Is it possible without the use of a counter? I only have one counter and it will only count up.

 

I have attached a file showing the input option that I have available to me

 

Help appreciated....

 

Thanks all

Greg

0 Kudos
Message 4 of 6
(2,780 Views)

All

 

Is it possible to count input pulses without a counter function?

If I can do this, I can achieve all I need to achieve.

I would need to be able to count up and down

 

Please advise if this is possible

 

Regards

Greg

0 Kudos
Message 5 of 6
(2,740 Views)

All

 

Got it sorted, I now am able to count up and down on two pulse signals....happy days!

 

 

Regards

Greg

0 Kudos
Message 6 of 6
(2,726 Views)