LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi function synch AI-AO

Solved!
Go to solution

Hello all,

 

I would like to synch the Analog input and two separate Analog outputs (Ao0,Ao1) of a NI-6040.

 

I first used the  multi function synch AI-AO vi from the examples and added a second AO as picture 1 indicates, without synchronizing and it worked fine.

 

But I also want to synch the second AO (Ao1) with the acquisition. I tried this as pic 2 states but it always indicates "error: 50103 the specified resource is reserved"

 

Does anyone know how to do this??

 

Thanks,

 

Adao Monteiro

 

 

Download All
0 Kudos
Message 1 of 4
(3,286 Views)

Hi Adao,

      I don't have any hardware to check this with, but...

Try using a single AO task to write both Analog outputs.  Use "Dev1/ao0:1" for the AO channel list, and change the polymorphic Write from "Single Channel" to "Multiple Channels".

 

(...hope it works...) 

 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 4
(3,258 Views)
Solution
Accepted by topic author Adao

Hello tbd,

 

Thanks for the answer. Your reply works but I would like to have independent tasks for both channels.

 

I use them on different parts of my program and if I have to write them together I will have to always know the value to put on the other channel (apart from the one I'm really trying to set).

 

If you have any other ideas, please let me know.

 

Thanks,

 

Adao

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

Hello Adao,

 

Actually, you will find an explanation in the following document : Simultaneous Analog Output Tasks on the Same Device.

The solution to use only one task is the only solution.

This is due to the fact the all Analog outputs use a single clock, so-called AO Sample Clock. It is not possible to create different clocks for the outputs of a single card.

 

Regards,

Olivier L. | Certified LabVIEW Developer


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