Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get two outputs simultaneously?

Solved!
Go to solution

Hi,

 

I am using DAQ card PCIe6351 to generate two signals separately. This product has two outputs so I thought I can use both of them simultaneously but when I run the code it gives an error: "The spesified resource is reserved". I just want to know if it is possible for me to use both outputs together at the same time or not? If yes, would you please guide me what should I do to solve the problem?

 

Many thanks,

Soran

0 Kudos
Message 1 of 6
(4,148 Views)

Yes you can use both outputs at the same time but, they have to be in the same task.   You can only have one AO Task (That Task reserves certain "Resources" in the device that are needed to generate an output- hence, your error from the second task) but an AO Task can contain both channels.

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 6
(4,144 Views)

Thank you Jeff

 

I am truly sorry but I did not get it:manembarrassed:.

In my case, I should see (simultaneously on the osciloscope) two signals coming from two outputs of the card. How can I use only one AO containing both signals?

 

Thanks again

 

0 Kudos
Message 3 of 6
(4,142 Views)

@Soran wrote:

Thank you Jeff

 .... How can I use only one AO containing both signals?

 

Thanks again

 


When you create the task using the DAQ Assistant (You only create Tasks once -during development right?) select both channels

Capture.PNG

Here is the Task completed on simulated hardware with AO0 set to +/-5V and AO1 at +/-10V

Capture1.PNG

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(4,140 Views)
Solution
Accepted by topic author Soran

Great! it works. I do appreciate your help 🙂

0 Kudos
Message 5 of 6
(4,129 Views)

Marking the thread as solved does help others that may have a simillar question find threads where the question is answered.  Thank you for doing that!

 

However, it is a little bit rude to mark your own post and not the post that helped you solve the issue.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(4,124 Views)