Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ressource name and spaces

We are using in a program "GPIB:: 5::INSTR" ( note the space in front of the 5) as ressource name for viOpen().
That seems to works fine with NI-GPIB-2.4 and older version and  if we run the program with NI-GPIB-2.5 on an english version of XP SP2. But when we try to run  the same program on german  XP SP2 and  NI-GPIB-2.5 the viOpen() fails with BFFE0011.
Is this intended behaviour ?


Message Edited by markus kossmann on 05-05-2008 10:24 AM
0 Kudos
Message 1 of 3
(3,340 Views)
Hello Markus Kossman

According to VISA specifications, putting a pace in the resurce string is not supported.
In Versions prior to 2.5 the VISA parser for the resurce string coped with the space in the string.
In Version 2.5 this faulty behavior was fixed.
Therefore there is no guarantee that this will work in some future versions of VISA.

Regards

Moritz Mayer
0 Kudos
Message 2 of 3
(3,281 Views)
Ok, that explains the error on Windows XP german version. But why does it still work,when I'am running GPIB-2.5 on XP english  version ?   That should make no difference.

Message Edited by markus kossmann on 05-26-2008 06:55 AM
0 Kudos
Message 3 of 3
(3,231 Views)