02-06-2015 12:44 PM
Is there a way to programaticaly know if a DAQmx device supports being reset? My applications generally reset all DAQmx devices on startup, and at the end of a test. The intent of this was to put all outputs to an off state as a starting point of the next test. So I queried all devices, removed the ones that are chassis because I know these don't support resets, and then reset them all one at a time.
I recently ran into a problem where my application would crash on startup randomly and I tracked it down to the fact that I was resetting a TC-01 device, which doesn't support reset, and doesn't return an error if a reset is tried, it would just randomly crash LabVIEW. This was in LabVIEW 2013 SP1 and so maybe this has been fixed in future versions.
But really I'd just like to query if it is a resettable device, and then only reset it if it is. But going to the properties I couldn't find this information.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-09-2015 03:04 PM
Hello Hooovahh,
I do not believe there is a way to explicitly do this programmatically. If it is not throwing any error, you might need to check manually which devices are compatible, and then check for these devices. For more information on resetting devices, please view the link below:
http://digital.ni.com/public.nsf/allkb/124D580AE300335E86256FDD006CE798
Best wishes!
02-09-2015 03:29 PM
Or probably a better approach would be to have a list of devices that I know aren't resettable, and if they are in the list of devices, remove them.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord