Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

What happens when ClearTask is never called?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(3,080 Views)
Solution
Accepted by dsf900

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.

Carl W.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(3,055 Views)

Thanks!

 

0 Kudos
Message 3 of 5
(3,048 Views)

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

Message 4 of 5
(3,029 Views)

Thanks Mcdan!

0 Kudos
Message 5 of 5
(3,017 Views)