LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I input data from a trio motion controller via serial port directly into Labview 6 w/o DAQ or GPIB boards?

I am using a trio MC 202 motion controller to control a stepper motor. Can I input data directly into Labview 6 via a serial port without using either a DAQ or GPIB or other interface boards?
0 Kudos
Message 1 of 6
(4,367 Views)
That depends on the abilities of the motion controller. I'm not familiar with the trio MC 202 motion controller, but if it has a RS-232 port, and is capable of sending/receiveing control commands via RS-232, then you should be able to communicate with LV using NI-VISA or the traditional serial functions. Keep in mind that tight timing may not be possible with serial, but that may be acceptable in your application.
0 Kudos
Message 2 of 6
(4,365 Views)
Thank you-
I greatly appreciate your input.
0 Kudos
Message 3 of 6
(4,365 Views)
I am working on something similar, but I am having some problems. I have a serial multigauge that is connected to my computer via a DB9 RS232. There is no driver available for the multigauge however so I am using the serial VI's available in labview. I was able to communicate with the instrument with hyperterminal using the command set specified for the RS232 board of the instrument. I was not successful however in doing the same using the same commands in the serial vi's in labview. I also tried using the Measurement and automation explorer and interactive VISA but I got errors. The errors indicated timeout discrepencies so I tried a range of timeout values without any success. Any suggestions would be much appreciated.
0 Kudos
Message 4 of 6
(4,365 Views)
I'm trying to create a VI to speak with a trio motion controller 216.  It is using MODBUS protocol over serial port. I downloaded the laview 7.1 modbus library and tried the "mb serial master query.vi" to try to read some of the registers but it gives me "Error 6101 occurred at Timeout Error" i want to "read holding register" at address 1 and the header is 4x. Can somedy help me on that please

0 Kudos
Message 5 of 6
(4,245 Views)
Electro_gab wrote:
> I'm trying to create a VI to speak with a trio motion controller
> 216.  It is using MODBUS protocol over serial port. I downloaded
> the laview 7.1 modbus library and tried the "mb serial master query.vi"
> to try to read some of the registers but it gives me "Error 6101
> occurred at Timeout Error" i want to "read holding register" at address
> 1 and the header is 4x. Can somedy help me on that please
>
>
> My Trio mc216.vi:
> http://forums.ni.com/attachments/ni/170/151936/1/My Trio mc216.v

Hi,
You'll find that the MC216 has a USB interface. There is a TRIO driver
that works fine with LabVIEW (and VB etc) - Check out the TRIO site
(www.triomotion.com)
Using this control, you can read/write VR's, and look at Inputs etc.
I've used this successfully on VB based front-ends, but also with
LabVIEW.

I cannot help with the Modbus problem, other than ask you to check that
you've set up the com port of the MC216 using the SETCOM command.
You may also find that the holding registers are mapped through to
TRIO's VR variables - not the I/O. (Its simple to write a task to map
Inputs to a VR though)

I hope this is some help,
Regards,
Jason

Message 6 of 6
(4,235 Views)