Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

sub-mm programming of esp300 by newport

hi,

i have an esp 300 motion control unit (Newport) and i can program my my actuators to make moves with the provided vi (ESP axis move 1.vi). Everything works jusdt fine, except that the minimum incremental movement is 1 mm. Also the position readout returns only integers of 1 mm. I need to read out positions in the micrometer range. How can I do that?

Thanks in advance

Phil
0 Kudos
Message 1 of 6
(4,511 Views)
This issue is probably caused by the local decimal point that is set in your system. If you are using e. g. a German Windows, the decimal seperator will be a "," by default. The "Format into String" function uses by default the local decimal point, but your device probably requires a dot as a decimal seperator.

You could change the Windows settings or the default settings for the decimal seperator in LabVIEW, but it's better to tell the "Format into String" function to use a dot by adding a format string (%.;%f).



The resulting string will contain a dot instead of a comma (e. g. 1.1 mm instead of 1,1 mms).
I hope this helps,

Jochen Klier
National Instruments


Message Edited by Jochen on 04-29-2008 11:51 AM
0 Kudos
Message 2 of 6
(4,491 Views)

Just one more comment about your code:
Instead of using multiple nested structures like multiple case structures, sequences and so, on you better should use a more advanced design pattern like a state machine. In your case the use of an event structure would help a lot to make the code easier to read and maintain.

Jochen

 
0 Kudos
Message 3 of 6
(4,484 Views)

Jochen:

Just a comment, that code is from Newport. Sadly a lot of their vi's are written like that.sad smiley

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 6
(4,474 Views)

Does Newport has any sample codes for control?

 

-Shrey 

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

NI, please don't make the default the localised decimal point. All people in Europe get problems with instrument control

and the suggested %. solution in instrument control makes it even more complex!

greetings from the Netherlands
0 Kudos
Message 6 of 6
(3,837 Views)