LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX 4.0 loses visa tcpip resources after closing

I am using max to configure some tcpip resources.  I am able to connect to them through the MAX (verison 4.0) through the test panel. However, they are not working in labview (version 8.0) using the visa open. When I open the MAX again, there is an error and it states that it could not connect to the resource, but I can still open up the test panel and write and read. 

 

Thank you,

Gerardo

0 Kudos
Message 1 of 4
(2,785 Views)

Hey Gerardo,

 

When you open a test panel to the device in MAX, do you close it before trying to call the VISA Open function? Also, in LabVIEW, do you call a VISA Close function at the termination of your program? With VISA functions, you need to bookend your functions with a VISA Open and a VISA Close so that the resource is freed after you're done using it.

 

What is the error code/message that you are receiving?

Justin E
National Instruments R&D
0 Kudos
Message 2 of 4
(2,747 Views)

Justin,

 

Yes, after I would open the test panel, I would close it and then I would try to write to the device.  And yes, I opened and closed the VISA resource.  I actually had it working perfectly fine on another computer, but then I swapped computers and this started to happen.  I tried several things but finally just uninstalled LabVIEW completely and then reinstalled it.  It now works perfectly fine. Thank you for you help anyways.

0 Kudos
Message 3 of 4
(2,735 Views)

Gerardo,

 

Glad to hear you're program is working Smiley Happy

Justin E
National Instruments R&D
0 Kudos
Message 4 of 4
(2,723 Views)