LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA controller to TCP data type conversion

Hello! I am trying to take temperature data from a cryocon model 44 using USB to use in my LabView 2022 file to update a couple other controllers. The data is coming in as a VISA session type but says it needs to connect as a TCP network connection. Is there a conversion between these two data types or is there something else I am missing?

 

Connection error description listed in the block diagram.

Visa to TCP Error.PNG

Inner program using the connection ID

Inner Program.PNG

0 Kudos
Message 1 of 6
(141 Views)

Hi Sam,

 


@SamDougherty wrote:

I am trying to take temperature data from a cryocon model 44 using USB to use in my LabView 2022 file to update a couple other controllers. The data is coming in as a VISA session type but says it needs to connect as a TCP network connection.


Why do you try to open a GPIB connection when your device driver expects a TCP connection?

 


@SamDougherty wrote:

Is there a conversion between these two data types or is there something else I am missing?


There is no "direct conversion", VISA and (plain) TCP are something different.

You missed reading the manual of your device and all the comments/documentation for your device driver!

  • Which kind of communication does your device allow?
  • How is the communication implemented in your device driver?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(104 Views)

A related question to @GerdW's -- if you open MAX and look at "Devices and Interfaces", do you see your Device?  Can you post a screen-shot, with the Device highlighted (so we see the Settings on the right-hand pane)?

 

Bob Schor

0 Kudos
Message 3 of 6
(88 Views)

By my understanding, the device will work through a VISA driver and setup. Can I just change the tcp code chunks in the LabView file to their VISA counterparts?

 

Port with two instruments:

Both Devices.PNG+

Individual Instrument settings

Single Device.PNG

0 Kudos
Message 4 of 6
(82 Views)

Hi Sam,

 


@SamDougherty wrote:

By my understanding, the device will work through a VISA driver and setup. Can I just change the tcp code chunks in the LabView file to their VISA counterparts?


So your devices are connected using a USB-2-GPIB converter and GPIB cables: yes, you can use VISA in LabVIEW.

 

Where do those "TCP code chunks" come from?

Does Cryocon provide VISA-based drivers?

Does Cryocon provide a (programming) manual so you could implement the needed commands on your own?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(70 Views)

I found this:

 

https://img1.17img.cn/17img/old/literature/C117501.pdf

 

Is that your device?  If so, this section here:

 

Kyle97330_0-1718131015671.png

This section implies there are drivers for 4 different interfaces.  I am guessing you have the "Ethernet/TCP/IP" one but you really meant to have the "IEEE-488" one (which is what GPIB is).

 

If you don't have those, your option is either to find it or to switch to Ethernet connection.  For most devices I find Ethernet to be as good or better than GPIB, so I might recommend it even if you can find the alternate drivers.

 

Also, in a brief search it looks like Cryocon went out of business last year, so whatever you do have from them... make backups, because you might not be able to download them again if you lose what you have now.

0 Kudos
Message 6 of 6
(49 Views)