04-16-2014 04:51 AM - edited 04-16-2014 04:52 AM
Actually I thought of that but somehow it seemed like a workaround and not a "real" solution. But if it is ok, I quess I'll do that then.
Lastly. do I still need to end the input DAQ Assistant -tasks before exiting the For-loop conditionally in order to be able to still read input data later in the program? Or can I just exit the loop and not worry about it?
Btw. Thanks a lot for your help, I'm still quite a noob with all of this...
04-16-2014 04:55 AM
04-16-2014 05:03 AM - edited 04-16-2014 05:08 AM
I meant the part of force feeding the output with 0. I thought that the output should go to 0 if I just stop the output task but I quess I was wrong?
And finally, this stop-function is not really an "emergency" function but rather in frequent use. This is why I don't want to run into problems (like the DAQ device requiring a boot) caused by not ending the tasks properly.
Edit. Check the picture, Is this close to what you meant with feeding the output with 0 after the loop? Would this work?
04-16-2014 05:43 AM - edited 04-16-2014 05:43 AM
Hi Aleksi,
I thought that the output should go to 0 if I just stop the output task but I quess I was wrong?
Why should the output go to zero when you switch off the DAQmx task? All you do is switching off the programming logic used to set those output values, but you don't change any output value!
When you need a certain value on your output signal you have to set it…
04-16-2014 05:49 AM
Ok, that clarifies it... 😄
Could you still check the picture in my previous post and tell me your opinion if that would work or not. I still need to be able to read data from the same DAQ device after exiting the loop.