LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change IP address of the hardware through labview

Hi all
 
I need help from you all.guys.i need to change the IP address of my hardware through Labview.
 
I have connected around 30 numbers of similar Hardware products through Ethernet switch to my PC
 
Each Hardware is assigned with an IP address.
 
I need to change the IP address of all the 30 Hardware units through Labview.
 
Kindly can help me out in this
 
Thanks
 
With regards
Bala
0 Kudos
Message 1 of 12
(5,414 Views)
Hi Bala,
what kind of hardware is it? Do you have a program now, with which you can change the IP?
Mike
0 Kudos
Message 2 of 12
(5,404 Views)
here is an example of calling netsh.
Message 4 of 12
(5,382 Views)


@Balavbs_83 wrote:
Hi all
 
I need help from you all.guys.i need to change the IP address of my hardware through Labview.
 
I have connected around 30 numbers of similar Hardware products through Ethernet switch to my PC
 
Each Hardware is assigned with an IP address.
 
I need to change the IP address of all the 30 Hardware units through Labview.
 
Kindly can help me out in this
 
Thanks
 
With regards
Bala


There is no standardized way to change the IP configuration of remote devices. It is all depending on that device itself. Some use bootp procedure, some use custom (proprietary) UDP messaging, some are only reconfigurable through DHCP and some are simply not reconfigurable remotely at all.

What applies to your device you will have to find out yourself. Quite often it is the second one and in that case unless the manufacturer documents the UDP protocol to do so, which they seldom do, the only option is to use the configuration utility that is provided by the manufacturer. If it is a command line utility you can call it through System Exec otherwise you will have to do it outside of LabVIEW.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 12
(5,349 Views)

Hi Guys

I use Lantronic Device which assignes its own IP through its software

When use Lantronics devices and access it through their software, Software automatically assignes IP to the device

I can change the IP in the LantroniX software but the same i need to apply through Labview

Hope this explains my doubt

Thanks and Regards

Bala

0 Kudos
Message 6 of 12
(5,325 Views)
What Lantronix device are you using?  They make dozens of products.
Jim

LV 2020
0 Kudos
Message 7 of 12
(5,319 Views)

Hi Bala,

      I'd be very tempted to user Wireshark (formerly Ethereal) - a free packet-sniffer - and capture the startup "handshake" between device and PC.  Even better would be if the SW has a "Set IP address" option - then you could capture exactly the dialog that LabVIEW will need to emulate. Smiley Happy  Assuming the SW is actually creating the IP address, it will need to send it to the device at some point.

If you can capture just the change-password bytes and post them - along with other info like MAC address and IP address - it might be fun.

Cheers!



Message Edited by tbd on 06-22-2008 04:13 AM
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 8 of 12
(5,293 Views)

Hi Imtis

I dont know the exact part number of the device as it is mounted on the PCB inside the unit

Does the component plays any role in the IP address setting?

Ok i will try with the sniffer and able to play with that

But also kindly help how to reset the IP address to default value through LabVIEW

With regards

Bala

0 Kudos
Message 9 of 12
(5,232 Views)

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.

Aashish M
CEO
TransferFi
www.transferfi.com
0 Kudos
Message 10 of 12
(5,188 Views)