LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make Newport smc100 do measured steps in a loop

Hi

I'M trying to program Newport smc100 controller and motor to move in  'x' mm step size for 'y' number of steps.

Basically I have 2 motors and  I want them to move pixel by pixel  on a component.

It looked to my that the easiest way is to take to example vi that I got with the drivers and modify it.

My problem is that in the loop I need to remove the "home" vi and if i do that i get error massage, with the "home" vi in the loop everything is working fine.

0 Kudos
Message 1 of 4
(2,581 Views)

Hi altman,

 

This driver is not supported by National Instruments, since it is developed by Newport, however, I found this documentation about it:

 

http://assets.newport.com/webDocuments-EN/images/14445.pdf

 

I hope you find it helpful.

 

Best,

 

Carmen C. 

 

 

0 Kudos
Message 2 of 4
(2,538 Views)

General LabVIEW style tip: Avoid sequence structures. Use the error wires to dictate execution order.

 

You need to take almost everything out of the For loop. You want to initialize the port only once and close it only once. Don't reset the axis on each loop iteration (actually, you probably don't need the reset VI at all). The only VIs you need in the for loop are the relative move and the tell current position, and maybe SimpleControlExample VI - I don't have it on my system so I don't know what that does.

0 Kudos
Message 3 of 4
(2,524 Views)

thank you! I'll try it 

0 Kudos
Message 4 of 4
(2,508 Views)