Combining GetRTError(1) and AbortOnRTE
Mon, 07/30/2018 - 12:05 pm
I have some code which tries to talk to hardware
MCC_SelectMultiClamp700B(mccSerial, channel); AbortOnRTE
errorCode = GetRTError(1)
and as that might not always work I'm handling the error case myself.
Now I would like to get rid of the necessary debugOnError disabling/resetting. According to documentation I can use getRTError(1) on the same line as the command to get rid of the debugger fiddling logic (IP7 and above).
I've tried with this example
data = NaN
IAbort(); errorCode = GetRTError(1); AbortOnRTE
but could not get it working as the debugger either still opens or I'm not landing in the catch block.
Any ideas what I'm doing wrong?