Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

error in old VISA open in 6.1 when saved from 7.1

I usually work with labview 7.1. I have created a program for sosl 1260 that works correctly. I have saved this program in 6.1 but at this point an error happens when I try to run it. This error happens with old Visa open. how can I solve it? Are there any differences in these two version of the program?
0 Kudos
Message 1 of 5
(3,369 Views)
Have you tried replacing the Old VISA Open with the VISA Open on the normal pallet.

-Josh
0 Kudos
Message 2 of 5
(3,361 Views)
There are some major differences with the "Old" VISA Open. The old one had both a string and VISA resource inputs. The string is what you used for the despcriptor such as GPIB0::5::INSTR. The current Open VISA only has a VISA Resource Name as an input and this can also be a string. I'm not sure how saving a 7.1 VI back to 6.1 could have put the old function there. I've never seen that happen. I don't think the old function is compatible with newer versions of VISA. The solution is to replace all instances of Old VISA Open with the current VISA Open. 
0 Kudos
Message 3 of 5
(3,360 Views)
Thanks for the answer, but I haven't solved the problem. This is the error code it's gives to me : -1073807346. It says: "This error code is not listed in the internal database, or you have wired a number that is not an error code (such as a DAQ task ID) to the error code input.". But this doesn't happen when I use 7.1 version. I have tried to modify this VI as you told me, but the error happens again. Thanks..
 
I send you this VI
0 Kudos
Message 4 of 5
(3,332 Views)
This VI has the Old VISA Open. Replace with the regular VISA Open on the palette. Delete the string control called "Resource Name (GPIB::2)". Make the "VISA session (for class)" control visible. Wire this control to the upper left terminal of the connector pane where the string control used to be connected.
0 Kudos
Message 5 of 5
(3,326 Views)