LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI for Lantronix Embedded Servers ( ethernet to serial converter )

Hello All,

I am trying to communicate with a Lantronix XPort. ( www.lantronix.com). It is serial to ethernet converter, and all i wanted to do was use the TCP-active.vi ( available in the Labview examples) to communicate with the device and then read the serial data using basic serial read and write.vi ( available in the labview examples). I changed the machine name to the IP address I have the Lantronix on, and I changed the port number to 80 which is the HTTP port number. I get an error message and nothing comes on the serial receive box.

 Lantronix XPORT can be configured using their own software, and this is how I was able to configure the serial port settings on the XPORT. the same serial port settings were duplicated on the Labview VI.

Am I overlooking something ??

What's the best way to control and monitor these ethernet to serial converter devices. Seems like an easy way to convert all serial devices to ethernet.

Thank you all.

Sincerely,

Sandeep
0 Kudos
Message 1 of 2
(3,825 Views)
I assume you mean you tried to use the two examples to talk to yourself?
My guess is that it didn't work because they're using different protocols and I'm not sure whether you can simulate a listening device.
 
My own experience with these converters (including some old Lantronix models) is that you use them instead of a serial port.
For example, suppose that you have a serial device which you have code for.
Change the code to use TCP instead of serial (theoretically, VISA should help you with this, but I use the TCP functions, so I never got around to checking out how TCP comm with VISA works), so you're sending the same string, but instead of opening a connection to the serial port, you open a TCP connection to the converter.
Some of them also have an option of functioning as a virtual port, so you don't even have to change your code - you just define the virtual port in their software and then tell your program to use that port instead of the physical one.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(3,822 Views)