Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Multichannel Analog outputs synchronization error 50103

Hello,

 

I am trying to generate two analog signals from two different channels of my USB X series 6353. I am using an external digital trigger form one of the PFI0 to trigger the outputs. At the moment I am continuously encountering error 50013 (specified resource is reserved). I looked in NI help for the issue and made suggested changes but problem still exists.

I have attached my VI for further investigation.

NOTE: While running individually, the analog output works fine.

 

 

0 Kudos
Message 1 of 8
(4,702 Views)

I am having trouble attaching my VI. I can insert image and link but not VI. I tried attachment box below but did not attach my VI 😞

 

 

0 Kudos
Message 2 of 8
(4,700 Views)

Dennis_Knustson,

 

Thank you for your reply and yes it is answered but I have not been able to solve this problem yet.

 

Yes it is a duplicate because I was advised by Frank R to initial a new discussion since this is a new topic from my previous problem.

 

Thank you,

 

PJK

0 Kudos
Message 4 of 8
(4,687 Views)
Did you remove the second task? Did you write both waveforms to a single DAQmx Write? As the other threads regarding the error message state, you have s single D/A on the device.
0 Kudos
Message 5 of 8
(4,677 Views)

Hi Dennis,

So are you suggesting I need only a single line of code?? Delete slave channel and all its properties?? No need to synchronization?? I am beginner to LabVIEW and not really understanding what you are suggesting.

I started out with single channel analog output and it was working fine. Since I am aiming for final results with 4 outputs I was directed towards synchronization of channels, hence I started with two channels.

The final result I am working for

AO Channel 1: DAT

AO Channel 2: -----50us wait-----DATA

AO Channel 3: ---------------100us wait---------------DATA

AO Channel 4: --------------------------150us wait-------------------------DATA

Where DATA is my analog output of a single sinusoidal signal.

At this moment I am confused on how I would be able to generate my final results with using single task. Please advise me if am going in wrong direction.

 

0 Kudos
Message 6 of 8
(4,668 Views)
You have a single d/a clock and you don't have any choice except to use a single task. That is the whole meaning of the resource reserved error.

I'm not totally familiar with all of the x series options. You may have to pad the different waveforms with values to achieve the delay. Say you have a 1us sample rate. You've got a sine wave that you need to output on both channels with a 10us delay on the second. Prepending 10 samples to the second waveform would give the delay. You probably would need to make the waveforms for each channel the same size.

If there is something more advanced, I'd appreciate a correction.
Message 7 of 8
(4,661 Views)

Hello Dennis,

Thank you for your reply. I deleted second task and added second channel to the same task. And it’s working for now. I am getting same signal at the same time from both channels. Thank you for your help.

But my bigger problem is How to add a delay of 100us between outputs from first channel to second channel?

Is there a way I can output zero’s after first channel output for 100us and then a single sine output??

Please let me know if my explanation is not clear.

 

 

added second channel to same task and worked 🙂

working.PNG

0 Kudos
Message 8 of 8
(4,638 Views)