Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

I Get 'VI_ERROR_INV_OBJECT'

Highlighted

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
(2,986 Views)
Highlighted

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
(2,917 Views)