LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change IP address of the hardware through labview



@Aashish_M wrote:

Hey Bala,

It seems that you are trying to control a non National Instruments device with LabVIEW. When this is the case, you'd usually sought after drivers from the Instrument Driver Network. These are basically VIs that has VISA or DLL calls customized to the instrument. The only thing is that I don't see your device on the list, so you would have try and create your own by referring to the device manual for its commands. I am pretty much re-iterating what Rolfk mentioned in an earlier post.

Does the program for Lantronix have a supporting ActiveX object?

It is possible to control ActiveX objects using the ActiveX container in LabVIEW.


The device from Lantronix is usually a little network controller that translates from a network interface to a RS-232 port for connection to embedded devices. It is meant to allow TCP/IP connection to embedded devices without having to implement an Ethernet PHY on such a device and the complexities of the necessary device driver and TCP/IP stack for this. From the embedded device it looks like it is controlled through a terminal over the RS-232 interface, while from the PC side you send commands to the Lantronix over Ethernet that get translated to RS-232.

So there is not really a clean protocol at all since the most part of the actual command syntax is entirely dependant on the embedded device itself. I believe that you can set most Lantronix devices to transparent operation which means it will output whatever byte sequences it sees  at one side on the other side, so that the complete protocol is really exactly the same as what the embedded devices uses on its serial port.

What the OP was looking for is a method to reprogram the IP adress of the Lantronix device. This is most likley not done over TCP/IP. One possibility might be UDP but BootP is also often used for that purpose. An UDP solution could be implemented based on the UDP nodes in LabVIEW. BootP won't be possible to implement in LabVIEW itself.

Lantronix most probably does not provid an ActiveX interface for their tools since they do not only provide Windows support but more or less any OS and that is much easier with command line tools. So the most easy solution would be to take the Lantronix command line tool and simply call it with the appropriate command parameters through System Exec.

Rolf Kalbermatter


Message Edited by rolfk on 06-26-2008 07:55 PM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 11 of 12
(934 Views)
We used one of their devices (the xport I believe), and it used bootp to open the configuration screen.
Jim

LV 2020
0 Kudos
Message 12 of 12
(917 Views)