Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a local TCPIP hub with CVI

I cannot communicate with a TDS3014B scope in CVI via TCPIP with a second ethernet card.

Using the driver is tdks_30xx, I execute the command

Status = tkds30xx_InitWithOptions ("TCPIP0::192.168.1.4::80::SOCKET", VI_TRUE, VI_TRUE,
     "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1", &SCP1_ID);

This returns an error "Timeout expired before operation completed".

This resource is recognised in MAX, and when I press the Validate button it says
it successfully starts a VISA session.

The scope configuration screen shows the IP address and port to be correct.

From a command prompt I can successfully ping the scope IP address.

I've tried TCPIP1 instead of TCPIP0, without success.

I expected to see two interfaces, TCPIP0 and TCPIP1, in MAX, but I can't find any
option in MAX to recognise TCPIP1.

If I connect the scope to the company network, then via the first ethernet card I can
communicate without a problem. I can configure the scope and take a few measurements
before the IT team arrive with baseball bats.

If I swap the network wires to the ethernet cards, nothing changes: the company
network still works OK, and the same problems occur with the local network.

If I set fixed IP adresses and use a crossover ethernet cable the same problems occur.

How do I get CVI to use the second network card and the local hub?


0 Kudos
Message 1 of 4
(4,478 Views)
According to the programmers manual of TDS3000B series, its LAN option seems like VXI-11 compatible, and you are trying to connect its WEB interface through the port 80.  Try to connect http://192.168.1.4 with the WEB browser.  If the embedded web page appears, the port 80 on that IP address is surely WEB interface.
 
When using IVI instrument driver such as tkds30xx_InitWithOptions(), the VISA address must be of instrument's programming interface, not WEB.  Because the instrument seems like VXI-11 compatible, the VISA address must be "TCPIP0::192.168.1.4::INSTR".
0 Kudos
Message 2 of 4
(4,459 Views)
Yes, the VISA address "TCPIP0::192.168.1.4::INSTR" works fine for instrument commands.

The scope connects to the second network card by a crossover ethernet cable, using fixed IP addresses.

I didn't realise that there are two distinct interfaces on the same RJ45 connection.
I assumed, incorrectly, that because port 80 worked for web pages on the web interface,
it was also required for the instrument commands.

I'm still not too sure why TCPIP0 works for both network cards, but that doesn't cause any problems.

The scope is recognised in MAX (V4.2.1) as "TCPIP0::192.168.1.4::inst0::INSTR"

In the VISA test panel, when I execute "*IDN?\n" in the viWrite tab, then execute the viRead tab,
the scope returns "TEKTRONIX,TDS 3014B,0,CF:91.1CT FV:v3.27 TDS3FFT:v1.00 TDS3TRG:v1.00\n".

It's now all working, so many thanks for the rapid and effective help.
0 Kudos
Message 3 of 4
(4,434 Views)
I'm having a similar problem. I can see the instrument on the lan but once I connect it to a switch on my other ethernet card, I can't see it. From what I have gathered, Measurement & Automation Explorer looks for your default card. It will not see or look for my second card. I have also removed my LAN connection from the default card and it will not go over to the second card to look, or it at least doesn't see the second card.
0 Kudos
Message 4 of 4
(4,012 Views)