Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Handle Error Codes Ansi C

Hey guys,

please help me by working with my NI cRIO-9233. I am using this digital input card with an USB-Carrier Type NI USB-9162 and want to prevent some error Codes. By removing the Input-Modul from the USB i get DAQmxErrorPALBadDevice with an error code of -50002. I found the functions DAQmxGetErrorString to get the exact information, but i want to get an error handle, an error-event that occurs when i have problems with the connection!

Any Ideas how i could solve the problem

Regardings

Christoph
0 Kudos
Message 1 of 3
(2,860 Views)
Hi Chris,

Please use the vi "general error handler". Then you can catch your error and decide what should be done next.

Best regards,
Hendrik
0 Kudos
Message 2 of 3
(2,835 Views)
Hey Hendrik,

thank you for your response. Do you have any idea how to handle in Ansi C / VC++ ? I thought of throwing an exception, but don't know how to do so!

Thanks, yours Chris
0 Kudos
Message 3 of 3
(2,833 Views)