LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview find ethernet device address for TCP/IP VISA communication if i know the port number of device

HI,
is there a way to find out the address of a certain device in an Ethernet network using LabVIEW 8? What I want to do is to communicate with a device via TCP/IP using LabVIEWs VISA functions. This works great, but I have to know the device address. I tried the "visa find resouce.vi",but the resource i found is" ASRL1::INSTR"and "ASRL3::INSTR",it didn't find my device.i don't know why.
0 Kudos
Message 1 of 2
(3,796 Views)
Cinderella2008,

Since you mention that you know the port number of the device in the title, I am assuming this is *NOT* a VXI-11 Instrument and you will be using raw sockets to communicate with this device.

The resource name of such an instrument would be of the form:

TCPIP0::<Ip-address/Hostname>::<Port>::SOCKET

where you would need to replace <Ip-address/Hostname> and <Port> with appropriate values.

Just to communicate with the instrument, all you need to do is open a VISA session to the instrument by using the resource name formed in such a way and use the session to write to and read from the instrument.

If you also want to find the device with 'VISA Find Resources.vi' then you will need to add the TCPIP resource to your system using MAX. If you open MAX and expand 'My System', you can right click 'Devices and Interfaces' and then 'Create New' and add 'VISA TCP/IP Resources'. Just select 'Manual Entry of Raw Socket' and then supply the 'Hostname or IP Address' and the 'Port Number'. The resource will be created when you press Finish.

Let me know if you have other questions.

Pankaj

0 Kudos
Message 2 of 2
(3,754 Views)