05-31-2013 02:48 PM
I'm using an NI-6259 with the Linux C API. What happens when a task program is interrupted and the ClearTask function is never called? Is there some way to query the driver for all currently running tasks, or better yet, is there some way I can ensure the device entirely resets to a base state?
Especially in development, it's nice to be able to just CTRL-C or something like that to kill a buggy program.
Solved! Go to Solution.
06-03-2013 12:28 PM
I do not believe there is a good way to do this using our C API. If it was on a Windows machine we have a program called MAX which will let you reset the device from there but I do not think it is available on Linux. I think the only way is to reset the device.
06-03-2013 01:09 PM
Thanks!
06-04-2013 10:41 AM
dsf900,
Not sure if you've seen it or not, but the function you can use to reset your device from the C API is DAQmxResetDevice. I'd probably just build a small executable which takes a device name and executes this function for the given device.
Dan
06-04-2013 03:10 PM
Thanks Mcdan!