From what I can tell, there is one master DaqException that is used for everything that goes wrong. This makes checking for certain exceptions extremely difficult, as you are now limited to checking the error message for certain strings. This is fragile.
Please provide typed exceptions in the .NET DAQmx library. For example, if a task times out, it should throw a "TaskTimeoutException", which might be a child of DaqException. Or if the timing setup is invalid, the library would throw a "InvalidTimingConfigurationException".
Yes, I realize it's a bit of busy work to create a bunch of typed exceptions, but it makes error handling for consumers much easier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.