04-19-2010 10:44 AM
How do you get the "possible reason(s)" text from an error code. I have a program calling into DAQ or VISA or whatever, and the inevitable error happens. If I use "Unbundle by name" to decompose the error cluster, I only get the first part of the error string, which only has some of the information. How do I extract or lookup the rest of the string so that I can give my user a better indication of what is wrong? I know this capability exists becuase when you put a probe on the same error cluster, you get the expanded text.
The string I currently get....
"Property Node DAQmx Device (arg 2) in AOUT-Wave.vi->ExecStep.vi->TestTop.vi <append>
<B>Device: </B> USB-6259-A"
The string I sould like to get...
"Error -88705 occurred at Property Node DAQmx Device (arg 2) in AOUT-Wave.vi->ExecStep.vi->TestTop.vi
Possible reason(s):
The specified device is not present or is not active in the system. The device may not be installed on this system, may have been unplugged, or may not be installed correctly.
Device: USB-6259-A"
04-19-2010 11:03 AM - edited 04-19-2010 11:05 AM
09-06-2022 11:50 AM
Is there another way to get this "Possible reason(s):" string not using the General Error Handler.vi or Simple Error Handler?
09-06-2022 11:58 AM
@pcortes2 wrote:
Is there another way to get this "Possible reason(s):" string not using the General Error Handler.vi or Simple Error Handler?
Pass the error code through this VI:
<vi.lib>\Utility\error.llb\Error Code Database.vi
09-06-2022 12:50 PM
Hi pcortes,
@pcortes2 wrote:
Is there another way to get this "Possible reason(s):" string not using the General Error Handler.vi or Simple Error Handler?
What's the point in not using those functions?
Why don't you want to use them?
09-06-2022 01:38 PM
@pcortes2 wrote:
Is there another way to get this "Possible reason(s):" string not using the General Error Handler.vi or Simple Error Handler?
Am I correct in assuming that you don't want a dialog box to open when there is an error? If you set the "type of dialog" to "no dialog" - as shown in jcarmody's post - it will not open a dialog.
09-06-2022 03:54 PM
Attached is a heavily modified version of the GEH. It should do what you need.