Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

viOpenDefaultRM leads to App crash in MacOS

Hi:

     I imported visa.framework into a objective-c project to control CMW500 in Mac OS via visa.

    But unfortunately I found an issue : When no CMW500 connects to Mac, the App will crash; But the app works ok when a CMW500 is connected.

   Through debug, I find the viOpenDefaultRM leads to App crash

    My confusion is that why not the viOpenDefaultRM return fail but abort when no CMW500 is connected?

     

    

 

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

HI:

     Made the error more descriptive by indicating that viOpenDefaultRM failed and giving the error code returned plus a description of the error. Added error reporting for Mac OS X. The VisaConfig application will correctly give an error message if viOpenDefaultRM fails or if it can't open the configuration file, etc. Then it will terminate gracefully.

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