Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

error -200452 DAQmx Create Timing Source.vi analog output (NI PXIe-4322)

Solved!
Go to solution

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?

RTError.PNG

Regards,

Thomas

0 Kudos
Message 1 of 4
(3,356 Views)

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?

 

signalfromTask.png

Message 2 of 4
(3,298 Views)
Solution
Accepted by topic author http8000

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



----------------------------------------------------------------------------------------
Everything has an End, and you get to it only if you keep on
-E. Nesbit
Message 3 of 4
(3,272 Views)

Thanks a lot, that explained things!

0 Kudos
Message 4 of 4
(3,268 Views)