Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-Device v1.3: End of program failed.

I use your sample SimpleGpibDevice application and i send 50 *IDN? per second. The application goes correctly but when a press a key on the application, the application failed when the code destroy the SimpleGpibDevice object.
I have the same effect in my own application. Can you tell me how to stop the NI-Device correctly before i destroy my CGpibDevice object?

Thank you
0 Kudos
Message 1 of 2
(2,923 Views)
Looks like you have NI-Device 1.3 Beta 1 or 2 to. NI-Device 1.3 Beta 4 fixes the problem you are having. Essentially in Beta 4 we modified the API slightly:

1) Initialize was replaced with EnableInterface
2) New method DisableInterface was added. This should be called at the beginning of the destructor to fix this problem
3) All status parameters that were passed into each API method have been removed. Now all methods return status.

Please send an email via www.ni.com/ask to obtain the latest beta or you could post your email address and I'll send it to you directly.
0 Kudos
Message 2 of 2
(2,923 Views)