Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Thorlabs motor - control skips stop command

Hi

 

I am trying to control Thorlabs TDC 001 using LabView 9 SP1. I have written the code attached below. It is supposed to perform some measurements during the time tin which he motor translates at a given speed and then repeat this as it iterates along other translation speeds. For some reason I don't know it doesn't stop when the StopImeadiate node is run, which causes me to have to do so manually.

 

Does anyone have clue about why that may be?

 

Thanks in advance!

0 Kudos
Message 1 of 5
(6,101 Views)

Hi notimperial,

 

Unfortunately I am not familiar with the Thorlabs hardware, however I have been looking at this manual for the User Guide for LabVIEW and APT which may be useful for you to have a look at.

 

The code looks as though it should run the "StopImmediate" so I'd suggest running the code with highlight execution activated (press the lightbulb near the top of your block diagram) and watch what happens when your code runs through that invoke node. Another suggestion is to put an indicator onto the StopImmediate and to see the output from that.

 

If you replace the StopImmediate with StopCtrl or another invoke node in its position, do you receive the desired output from that?

 

Let me know how you get along!

Tori
Student
0 Kudos
Message 2 of 5
(6,078 Views)

@Tori.M wrote:

Hi notimperial,

 

Unfortunately I am not familiar with the Thorlabs hardware, however I have been looking at this manual for the User Guide for LabVIEW and APT which may be useful for you to have a look at.

 

The code looks as though it should run the "StopImmediate" so I'd suggest running the code with highlight execution activated (press the lightbulb near the top of your block diagram) and watch what happens when your code runs through that invoke node. Another suggestion is to put an indicator onto the StopImmediate and to see the output from that.

 

If you replace the StopImmediate with StopCtrl or another invoke node in its position, do you receive the desired output from that?

 

Let me know how you get along!


Hi Tori.M

 

The link is dead but I think I have seen that guide before.

 

I tried the highlight execution and it runs through StopImmeadiate and StopCtrl OK, even though the motor doesn't always stop. Also, the SetJogVelParams node allowed me to set maximum velocities to values which I kow now that exceed the specs of my actuator.

 

Given this, I decided to use another translation stage for my task as the LabView control of the Thorlabs TDC001 didn't seem very reliable.

 

Anyway, thanks for your reply

0 Kudos
Message 3 of 5
(6,074 Views)

Hi Notimperial,

 

If you reclick the link it should work (I noticed the issue and edited my post with the correct link just after submitting).

 

Does the different translation stage for your task now solve your issue?

 

Kind regards,

 

 

Tori
Student
0 Kudos
Message 4 of 5
(6,067 Views)

Yes, but by another stage I meant another model from another manufacturer 🙂

0 Kudos
Message 5 of 5
(6,065 Views)