LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-Functional DAQ Digital Signals

Solved!
Go to solution

Hi , i have a Third Party where i am using it for acquiring the signals from the encoder HEDL 5540 . Now i have two signals from encoder i need to find the direction of the encoder .

 

Condition:

When channel A leads it should could counter clockwise .

When channel B comes it should could clockwise .

 

CAn someone suggest me a simple algorithm for finding it?

Boldness has genius, power and magic in it!'
0 Kudos
Message 1 of 8
(3,323 Views)
Solution
Accepted by topic author MaveenD

You have a third party what? DIO board? Encoder interface? Analog input board?

 

According to the datasheet, the rising edge of the index pulse is synchronized with the rising edge of the barB output. If the barA signal is high at that point it means its already a high and is leading barB; but if barA is not high, barB is leading barA.

 

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 8
(3,320 Views)

I have REDLAB 1208fs ,DIO port only.

 

Thanks for your reply , but can tell me or show me clearly about the structure.

 

Boldness has genius, power and magic in it!'
0 Kudos
Message 3 of 8
(3,315 Views)

The way I would do it with NI hardware would be to setup a task to read the state of barA and use the barB signal as the external acquisition clock. I don't know if your device that level of operation.

 

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 4 of 8
(3,313 Views)

Ya it is possible , i have an 32 bit counter also in it.

Pls correct me if am wrong

Boldness has genius, power and magic in it!'
0 Kudos
Message 5 of 8
(3,310 Views)

If all you want is the direction of rotation the counter shouldn't be necessary. If you do need RPM, you will need to configure that part of the acquisiton hardware as an interval counter in which case you will get a rotation time with a resolution time that is a function of the clock that is driving the counter. You will get a number of pulses per rotation. Multiplying this number by the period of the clock will give you time per rotation.

 

Once you get the rotation time, the reciprocal of it will give you the speed in rotations per second. And multiplying by 60 will give revolutions per minute.

 

Hopefully the drivers will let you do both tasks at the same time.

 

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 6 of 8
(3,304 Views)

Dear Mike,

Yes ur right but before proceeding further i want to first get the direction right still findin problem with it . Can u suggest me any algorithm u know.?

Boldness has genius, power and magic in it!'
0 Kudos
Message 7 of 8
(3,300 Views)

Already gave you that in my first reply, and told you how to implement it.

 

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 8 of 8
(3,296 Views)