05-07-2017 02:04 AM
Hello,
I'm using a Hardware Timed Single Point to write Data to a Analog Output card (NI PXIe-4322). It would of course be better if I could sync the loop with the output clock. However I get the Error -200452 Saying the ControlLoopFromTask.SleepTime property is not supported by the device or not applicable to the task.
How can I check if it should be supported by the device or if the error originates elsewhere?
If it is not supported what is the best solution to solve this issue?
Regards,
Thomas
Solved! Go to Solution.
05-07-2017 12:50 PM
In meantime I found that the "signal from Task" works well, but I still do not understand why the previous solution does not work.
Can anyone explain what is the difference between the "signal from Task" and the "control loop from Task" Vi?
05-08-2017 04:15 AM
Hello http8000,
I know, that the issue you were having is that Control Loop From Task needs analogue input task with Sample Clock setting as an input.
The reason for that is, that AI task gives you direct access to the card's sample clock. As described in this article: https://zone.ni.com/reference/en-XX/help/370466AC-01/mxcncpts/clocks/ AO clocks are derived from AI timebase, they lack the direct access required by the Control Loop From Task VI.
Either way, if I understand correctly, you are fine with your current solution. For the future improvement, have a look at this example: https://forums.ni.com/t5/NI-DAQmx-Examples/PID-Control-Control-Loop-from-Task/gpm-p/3533817
It demonstrates the use of AO in a timed loop controlled by a timing source based on an AI task.
Best Regards,
Nick
AE@NIUK
05-08-2017 05:46 AM
Thanks a lot, that explained things!