Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

lifetime of a task

I was wondering what the lifetime of a given DIO task is. My application creates a DIO task on start-up and stops and clears it on shutdown. It runs in a web service so it is alive for a long time. Days possibly. In certain infrequent ocurences, trying to access the device will return an error code of
ne (-200478) DAQmxErrorCanNotPerformOpWhenNoChansInTask. I have also noticed weird results when querying the task after resetting it multiple times through MAX. It seems that all the inputs are by default high (sometimes low) and never seem to change state (even though I know the state is not what is reported). I did not want to have to keep creating and destroying the task so I was wondering under what situations a task goes out of scope.


thanks
0 Kudos
Message 1 of 2
(3,034 Views)
Hello,

From the error code, it sounds as if at some point in the task it is losing the channels to acquire from.

As for the incorrect readings, do you see the same thing from a test panel in MAX? If you are getting incorrect readings in MAX, it's possible that the device is malfunctioning.

Please reply with your results.

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,018 Views)