12-07-2006 10:37 AM
12-07-2006 01:32 PM
The only driver I found for that instrument is an IVI one. Are all of your drivers IVI or is it just this one? When you do the close, are you just using a VISA Close or are you using the Close function in the driver? If you are using VISA Close, replace it with the driver close function.
Also, what version of VISA and the IVI Compliance Driver are you using?
12-07-2006 01:45 PM
I am using the drivers' close functions for all instruments. I have a few of each type of driver. Like I said though, it's not just one set of instrument drivers that I'm getting the error on. The other one I've been getting the error on a lot is for a Xantrex XFR Series Power Supply.
I am using VISA version 3.3, and the IVI Compliance Package 2.1.
12-07-2006 01:56 PM - edited 12-07-2006 01:56 PM
Message Edited by Dennis Knutson on 12-07-2006 12:56 PM
12-07-2006 02:17 PM - edited 12-07-2006 02:17 PM
Message Edited by REash on 12-07-2006 02:18 PM
12-07-2006 03:24 PM - edited 12-07-2006 03:24 PM
The upgrade didn't help. Still get the error.
Since my last change, the error is consistantly occurring at the exact same place every time, on the same driver VI, and on the same iteration through my program.
My program basically loops through the bulk of the program 6 times, and it is now on the third time through that it gets stuck on this error. Before I put in the VIs to close the VISA sessions, it was always getting stuck on the second loop through. So putting the VISA closes in helped. What else more can I do??
Is there a way to allocate more resources for my program, or some way to free up more memory to use for it?
Any other thoughts at all would be helpful.
Message Edited by REash on 12-07-2006 04:27 PM
12-07-2006 03:47 PM
12-07-2006 03:53 PM
12-07-2006 04:01 PM
12-07-2006 04:04 PM
I think I might have the solution. I downloaded the driver for that instrument and in the intialize function, there is Old VISA Open. You should replace this with the VISA Open on the Instrument I/O>VISA>VISA Advanced palette. When you do that, the wire to the string control 'Instr. Descriptor (GPIB::2::INSTR)' will be broken. The string control needs to be deleted and you need to right click on the VISA Session (for class) terminal and select Show Control. Go to the front panel and wire the VISA Session control to the upper left point on the connector pane.
This Old VISA Open shows up in drivers that have been converted from very old drivers. I've usually had the initialize fail to work at all with it in there. I hope this helps.