Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP Instrument & Socket Classes in VISA

I have been trying to use the new Labview 6i VISA classes for TCP/IP
communications and NI has not been much help so far. I tried
specifying IP address strings as shown in help section for the "VISA
Open" command. Every time I attempt to open a session with either of
the specified TCPIP syntax:

TCPIP INSTR TCPIP[board]::host address[::LAN device name][::INSTR]
TCPIP SOCKET TCPIP[board]::host address::port::SOCKET

I get an invalid resource parsing error. I have tried every possible
permutation of the allowed syntax that I can think of with no luck. The
tech support at NI seems never to have attempted to use this feature.
Are these classes even supported yet?!? Can't find any documentation

or examples other than the "VISA Open" help section. Thanks for any
help.

Max



Sent via Deja.com
http://www.deja.com/
0 Kudos
Message 1 of 5
(7,371 Views)
Max:

These certainly should have worked with LabVIEW 6i; I know we did even more testing in the latest releases (LabVIEW 6.1 and NI-VISA 2.6) and the TCPIP stuff in VISA certainly works. Here are a couple of example resource strings that will parse correctly (and should have with NI-VISA 2.5 as well).

For SOCKET, this is just like the traditional TCP functionality in LabVIEW. An example string that connects with the NI FTP site is:
"TCPIP::ftp.ni.com::21::SOCKET"

For INSTR, this requires a device that supports the T&M standard LAN instrument protocol. An example of this (that we have tested with) is the Tektronix 3054 Scope. A string that connects with this scope is:
"TCPIP::HostnameOrIP::gpib0,1::INSTR"

Dan Mondrik
Senior Software Engineer,
NI-VISA
National Instruments
0 Kudos
Message 2 of 5
(7,371 Views)

I have two TDK-Lambda G40-85 Power Supplies in my system, they are setup as IP Addresses 192.168.10.10 & 192.168.20.20 respectively. When I launch the Open VISA Test Panel from MAX for the one with resource name of TCPIP0::192.168.10.10::inst0::INSTR, everything works just fine, but when I run the Initialize.vi in LabVIEW I get error code -1073807339 (VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.)

 

ANy ideas about what may be going on here?

0 Kudos
Message 3 of 5
(2,737 Views)

Are you trying to initialize with the VISA Test Panel open?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 5
(2,729 Views)

No, but for some reason these PS's (TDK-Lambda G40-85) create two resource allocations in MAX, one for SOCKET and one for INSTR, whereas a different system I am using a TDK-Lambda GSP-1000 (which is the same family of GENESYS+ Power Supplies) it only creates the INSTR resource allocation in MAX, and is working with my driver no issue.

0 Kudos
Message 5 of 5
(2,701 Views)