Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

scope communication through ethernet

I am trying to communicate with a TDS 3052B scope through the ethernet interface using LW/CVI 7.0 and TekVISA. It's all set up and I can ping the scope, but when I use the example that came with the instrument driver it says "Error-Insufficient location information or resource not present in the system". This is the code snippet:
checkErr( tkds30xx_InitWithOptions ("TCPIP::146.137.50.144::INSTR", VI_TRUE,VI_TRUE, "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1", &vi));
0 Kudos
Message 1 of 4
(3,940 Views)
"TCPIP::146.137.50.144::INSTR" implies the scope uses VXI-11 as the protocol. A quick look at the spec on Teks site doesn't indicate this. I maybe wrong thou.
If scope does use VXI-11 then I am not sure what is wrong try using MAX to communicate with it.

If scope doesn't use VXI-11 then you need to find out what socket it listens on and use the visa resource:
"TCPIP::146.137.50.144::XXXX::socket"

where xxxx = socket number.
0 Kudos
Message 2 of 4
(3,940 Views)
I already tried using MAX, but it couldn't find it. how can I find out what socket it listens to?

Derek
0 Kudos
Message 3 of 4
(3,940 Views)
Hi Derek

If the instrument you have is not a VXI 11 compliant then you can use the Raw Socket configuration. For this you need to know what is the port number in which your instrument talks. Usually in the manual of your instrument it will tell you what is the port number that you need to use. That port number is the number that you are looking for in the socket number.
So for a Keithly 2701 it would be something like this:
TCPIP::10.0.12.32::1394::SOCKET
Usually these instruments have also a way to monitor them by using Internet Explorer. If this is the case, what you can do is open a web browser type the IP address of you instrument and that should open it.
There is one program that you can download for free called Ethereal that
will capture all the TCP packets that are going through your network. So what you can do, is through the web browser write and read to your scope and capture the TCP packets that are going and coming. Then check in Ethereal what was the port number used as a destination port.
In MAX sometimes you cannot open directly a VISA session but in LabVIEW or LabWindows/CVI you can.
One more thing, when you were calling it as a VXI 11 between the IP address and the INSTR there wasn�t the LAN Device Name. In MAX when you do a configuration for VXI 11 instruments you can have MAX detect it by itself or you can do it manually but it will ask you to give it a LAN Device Name. At the end it should look like: TCPIP::10.0.0.1::inst0::INSTR
0 Kudos
Message 4 of 4
(3,940 Views)