LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial device communication

I am trying to connect to a x-y axis stage. I have two slider bars that I want to directly control the position of the stage. the program I have written works without error but the stage does not move. I do not know If I am correctly transmitting a ascii string. Any help would be appreciated.  I am attempting to attach the vi.

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

Hi,

What do you mean with 'x-y axis stage' What device is this ? I sure you have send more then only the slider values. Command, data, data length and ?..Smiley Surprised..?

Tell us a bit more about 'stage' device

0 Kudos
Message 2 of 4
(2,705 Views)
The stage is controled by two small motors one in the x dir and one in the y dir. This device is controled though a serial port using ascii code. there is 64 positions in each axis direction. From the manual "the stage is commanded to the requred point by simply sending the position as a six bit binary number". "since we are using the rs 232 port it is necessary to convert the number to an ascii character. thanks for any help.

Message Edited by matd on 11-04-2005 04:05 PM

0 Kudos
Message 3 of 4
(2,680 Views)
Do you mean you have to send 000000 through 111111? If that's the case, you're not formatting the number correctly. If the slide is set for i.e. 15, you're sending 15 and not 001111. Use instead a Format Into String with a %p6b format string.
0 Kudos
Message 4 of 4
(2,674 Views)