Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

linear coil stage control using labview

I have to control a linear voice coil stage (servomotor) from Equipment Solutions. They also provided a amp-controller. Since I am not familiar with this type of applications, I need someone to tell me how I can send command to the motor using LabVIEW. The manufacturer also provided us a document, which include command sets. But, I can't get response so far. I think I have no idear how to set up the device in MAX.
0 Kudos
Message 1 of 4
(3,484 Views)

Hi,

I assume the coil uses a serial port to receive to communicate.

The first thing you need to determine is cabling. Do you need a null modem or a straight-thru cable?. There are two COM port pinouts (DTE and DCE). The PC is DTE. If the device is also DTE, you need a null modem. This cable simply swaps the Tx and Rx terminals from one end to the other. If you use a straight-thru cable to connect to DTE you'll be connecting Tx with Tx and Rx to Rx. Most of the times you'll use a Null modem.

Next you need to detemine the serial port settings:

-Baud Rate
-Number of data bits
-Number of stop bits
-parity
-handshaking (flow control).

There are different setting for each parameter. These settings need to be the same between the devices.
The PC can use any value, so you need to check the documentation for the instrument to determine what settings it requires.

DiegoF
National Instruments.

0 Kudos
Message 2 of 4
(3,484 Views)
DiegoF,


Thnak you for your comment. I have another question. How I can do the setting you mentioned (baud rate, number of data bits , number of stop bits, parity, handshaking), using MAX?


Airo
0 Kudos
Message 3 of 4
(3,484 Views)
Hi,

Right-click on the COM port and select properties. You can also set this properties in LabVIEW with the Serial initialize VI.

DiegoF
National Instruments.
0 Kudos
Message 4 of 4
(3,484 Views)