Jump to content

Setting VISA Resource name for TCP/IP?


Recommended Posts

I am trying to figure out how to set a resource name for a TCP/IP VISA connection.

From my searching, it looks like I need to set a resource name something like:

TCPIP::172.16.72.244::10001::SOCKET

I have tried putting this in a String constant and Type Casting to VISA resource name, but labview (ver 6.0) bombs badly when this is executed. I have set the class of the Resource constant to the appropriate value, "TCP/IP Socket."

What technology am I missing here?

Thanks,

Kirk :headbang:

Link to comment
Why are you using VISA? Why not use the standard tcpip functions? I always use those.

3582[/snapback]

The read function on the standard TCPIP pallette looks for a CR/LF combination to terminate the message. The device I am talking to terminates with only a linefeed. The VISA approach seemed to offer more flexibility, especially since I already have serial drivers written using VISA that should be able to be easily converted to TCPIP.

Kirk

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.