LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA problems with upgrade from LV 2010 to 2012

Hello, I recently upgraded from LV 2010 to LV 2012 and am having troubles with my VISA Write calls. In 2010 my VISA Writes had no problems. I've attached a screen shot that shows the error message when in 2012. 

 

VISA_Write.jpg

 

I always get this error message and am having trouble finding a solution. I am sending GPIB commands to an HP8510 Network Analyzer. I was sending multiple commands per VISA Write but have decided to break out the commands so I have one command per VISA Write. That seems to have helped but I still keep getting this error message. I have made sure that I always do a VISA Close after my VISA Write/Reads. Could this be related to the version of VISA I have installed?

 

Here is my configuration:

 

MAX_SceenShot.jpg

 

I have tried using a VISA Clear before my VISA Writes but that doesn't help. If anyone has any ideas or some rules of thumb for using VISA Writes/Reads please let me know. 

 

Thanks,

joe

 

 

 

 

0 Kudos
Message 1 of 5
(2,285 Views)
You have not mentioned what version of VISA and GPIB you are using or shown how the devices are listed in MAX. The message indicates the resource name does not exist so do a rescan and check the alias.
0 Kudos
Message 2 of 5
(2,279 Views)
Also it appears that you are constantly opening and closing the resource. This extra work typically isn't necessary.

Can we see what you LV code looks like?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 5
(2,270 Views)

Hello and thanks for responding to my post. I followed your recommendations of not opening and closing every VISA connection. I removed all VISA opens and all VISA close and also for every VISA Write I also connected an ERROR IN, which before I did not connect on for any of the VISA Opens. Once I made those changes things started working just fine. Thank you very, very much. joe

0 Kudos
Message 4 of 5
(2,209 Views)

@joe5213 wrote:

Hello and thanks for responding to my post. I followed your recommendations of not opening and closing every VISA connection. I removed all VISA opens and all VISA close and also for every VISA Write I also connected an ERROR IN, which before I did not connect on for any of the VISA Opens. Once I made those changes things started working just fine. Thank you very, very much. joe


That would explain it.

 

In LabVIEW 2010 ONLY there was a bug where VISA Reads and Writes would allways return synchronously and the asynch flag was not respected. Smiley Surprised Converting to 2012 removed this bug and your reads began to operate asynchronously.  While an asynchronous read is in progress, an error occurs if you execute another write or asynchronous read operation.  Enforcing dataflow by wiring the error chain would resolve the issue you saw (and is good practice anyway):smileywink:


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(2,199 Views)