Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Real Time Position Output

Hi,
I ran into problems getting the real time position of my encoder. I can read the counts BEFORE and AFTER the move, but not while the move is in action. Unfortuneately, I need the real-time position to trigger a camera.
Using the Motion Assistant, I can see the real-time counts at the step-status tab, so they're already here. How can I get them into LabView?      
0 Kudos
Message 1 of 5
(3,715 Views)
Hey Uuuhl,

please post more information because otherwise its hard to help. It will be good if you post the MAX protocol as a zip file.
Open Measurement & Automation Explorer "Datei/Protokol erstellen" and "Weiter" until you get the html file.

If i understand you correctly the aim of your appilcation is to measure a ttl encoder signal with your realtime platform.

By the way you are able to generate the labview code automaticaly in the motion assistant (under Tools).

Maybe you post also your lv project so that i am able to see why you read counts BEFORE and AFTER the move.

Kind regards,

Elmar

0 Kudos
Message 2 of 5
(3,693 Views)

Hi Elmar,

The program does a 1 axis straight line move,i.e. 100.000 counts,  and I need a trigger signal at a certain value, i.e. 2630 counts to start the camera.

The program works and moves to the programmed position, and I even get the encoder signal and the trigger, however AFTER the hole move is complete. So this means, the camera starts at 100.000 counts when the move is already over.

I'm using the "Read Encoder Position" - VI to get the actual position. Another weird thing about it is, after I start up the computer and drive, I initialise  in MAX and do the first "find-home" move - and i get the real time counts! But no more after this...

I used the assistant to create my moves, but it only provides triggers before and after the move is complete 😞  so the same problem again. In the "step-status"- tab of the assistant however I can see the real-time counts, so there must be a way to get them into LabView somehow. I have attached the VI to the post, please let me know if you need further information about it.

Thank you very much for concerning about my problem.

Ulrich

0 Kudos
Message 3 of 5
(3,688 Views)
Hello Ulrich,

maybe you read out the value to slow.
Please try to seperate the code in a extra while loop like in the attachement below.
And look if you can see the different changes or only the last value 100.000.

Kind regards,

Elmar
0 Kudos
Message 4 of 5
(3,679 Views)

Elmar,

Thank you! I can read the counts in real time now  🙂

Ulrich

0 Kudos
Message 5 of 5
(3,665 Views)