LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate two signals using NI myDAQ

Dear Sir:

 

I designed a circuit to generate a sine wave successfully using Labview. What I want is using NI myDAQ to generate another 3V DC signal as a power supply. I can do this seperately but when I add them together there is an error:  NI Platform Services:  The specified resource is reserved. The operation could not be completed as specified.

 

I would like to use A01 to generate a sine wave and A02 to generate a DC wave, could you please check my file and tell me how to solve this problem. I found a solution which generates two signals together but what I need is to control these two signals seperately and using two channels.

 

Kind Regards

 

Jeff 

0 Kudos
Message 1 of 5
(3,547 Views)

As a search for that error would have shown, you have to use a single task. Have both channels listed with the DAQmx Create Channel and merge your two different signals. Just have to make sure the number of samples is the same for each signal.

0 Kudos
Message 2 of 5
(3,546 Views)

I need to control the two signals seperately using front panel so could you please tell me how to solve this problem. I think there should be a way to do that.

 

Kind Regards

 

Jeff

0 Kudos
Message 3 of 5
(3,543 Views)

As long as you have the same number of samples and sample rate, there is no problem merging the signals and having separate control. Try it.

0 Kudos
Message 4 of 5
(3,540 Views)

Thanks very much for your kind reply.

 

No. I tried for a long time, change the samples of each simulate signal to the same but the warning also came out. Could you please check my file and tell me how to solve this kind of problem?

 

Kind Regards

 

Jeff 

0 Kudos
Message 5 of 5
(3,535 Views)