From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I Get 'VI_ERROR_INV_OBJECT'

Hello

 

I try to understand

 

Example 10-1 Page 10-6 in the NI-VISA User Manual

 

All what I do I

 

status = viOpenDefaultRM(&defaultRM);

 

status = viClose (defaultRM);

 

I got, when I Close the Handle 'VI_ERROR_INV_OBJECT'

 

If I do the whole Example I got a access violation

when I close it with

 

viClose (flist);

viClose (defaultRM);

 

If I don't close the handles the Application is running Properly,

but I don't thing that this is OK

 

 

0 Kudos
Message 1 of 2
(4,692 Views)

hello, 

my example is working well. What devices do you want to detect? And which NI-VISA do you have??

 

0 Kudos
Message 2 of 2
(4,623 Views)