04-30-2009 10:50 AM
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
Solved! Go to Solution.
05-03-2009 05:18 AM
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!
05-04-2009 04:26 AM
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
05-04-2009 02:35 PM
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