Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

AO with Counter sample clock

Solved!
Go to solution

I have a trouble with AO with counter sample clocking in PXIe-6124 under Labview 8.6.

The attachment shows my whole code for this.

When I execute this code, I have never met any error but no output (expected pulse train in AO).

 

Strangely, under "Highlight Execution" for debugging, the output was shown in my oscilloscope (of course, no error in labview).

 

What's the wrong in my code?

 

Labmaster.

*)please execute "pulse form merge.vi" to watch out.

Message Edited by labmaster on 01-13-2010 02:23 PM
0 Kudos
Message 1 of 3
(2,841 Views)
Solution
Accepted by topic author labmaster
Hello labmaster,

I took a look at your code and one issue is that you are using the DAQmxBase Is Task Done VI rather than the DAQmx Is Task Done VI. You cannot mix the DAQmx and DAQmx Base APIs and this could be the cause of your error. When using this VI in a DAQmx application the task done? output will always return true. This return value is stopping your loop and resulting in your tasks clearing before all of your data is generated.

Regards,
Dan King

0 Kudos
Message 2 of 3
(2,824 Views)

Thanks for correcting my mistake.

It works well. 

 

labmaster.

0 Kudos
Message 3 of 3
(2,805 Views)