Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

vifinrsc doesn't return description

Hello,

we are having troubles with the viFindrsrc function. We are using vb.net 2010 and visa32.dll version 4.6
When we execute the command we can see the right answer in NI Spy but the dll doesn't return the description (e.g. GPIB0::20::INSTR). We are calling GPIB?*INSTR.

When we look at the desciption it says that the description is a ByVal -call - shouldn't this be a ByRef call?

 

Any Ideas?

 

best regards

0 Kudos
Message 1 of 2
(2,893 Views)

Problem solved: The visa32.dll needs a StringBuilder class not just simply a String! - Probarbly the documentation is wrong or I need to declare it different?!
I peronally think this point is a mess. The call should be ByRef and simply be a String...

apologies for my misspelled ViFindRsrc in the header...

 

regards

 

0 Kudos
Message 2 of 2
(2,876 Views)