11-29-2007 04:04 PM
Thanks for the replies.
To Raven Fan, the device (its VXI-11 compliant) I'm connected to does have an IP, one that I've specified for it (its static). 192.168.0.3, and my computer Local Area TCP/IP settings: IP 192.168.0.2 Gtwy 192.168.1.1 SUb: 255.255.255.0. I also have MAX configured so I can communicate with the device through VISA resource through the crossover cable.
Gabs, I don't think the device or my computer has an XPort.
I think the 0.0.0.0 being returned is just a result of the UDP Listen that ends the while loop. Still, I can't get my device to respond. Probably because I'm not exactly sure which port to broadcast to. Any ideas on how to determine the port number? I sniffed MAX's autodetect VISA devices procedure, and it seems like it first broadcasts to the sunrpc port (111), but when I put that in, I still get no results.
11-29-2007 05:09 PM
(its static). 192.168.0.3, and my computer Local Area TCP/IP settings: IP 192.168.0.2 Gtwy 192.168.1.1 SUb: 255.255.255.0. I also have MAX configured so I can communicate with the device through VISA resource through the crossover cable.
12-04-2007 01:54 PM
Thanks for your help RavensFan. There may be some settings I can optimize with the TCPIP settings, but since it can communicate when setup with MAX, I went with the "if it ain't broke don't fix it" slogan. I eventaully did figure it out, I found my device manufacturer had a IP detection in their software, which I used WireShark to look at and discover which ports and what data to send. Works fine now. It was returning the info (or acknoledgment) on a different port. Tricky stuff. Thanks.
05-17-2010 04:41 PM
I put the 3rd & 4th Octal into for loops to construct a tcpip string. Then call Visa Open with a timeout of 2ms. If no error then IP was found and I stored into array.
This will find VXI-11 & LXI device on the network. The issue for me was finding IP addresses of hardware at 169.254.x.y, since the vendor hooked up the HW for testing it would remember their address which I needed to bring up the HW page to change the IP address to my network.
11-21-2011 03:57 AM
can you tell me how to find a network adapter name?
if i have connected 3 network port i must have local area connection1, local area connection 2, local area connection 3, and wireless network connection
11-23-2011 02:46 AM
Please have a look at the parse_IP.vi I posted several posts before.
The names are listed in the "standard output" control.
You only need to parse this string for the names.
(Take care of your operating system! The string depends on the Windows Version (XP/Vista/7) and the used language!)