LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -50103 occurred at DAQmx Start Task.vi

Solved!
Go to solution

Hi, 

Device: NI cDAQ-9191.

Im trying to sycnhronize analog input signals (15 in total) on the NI cDAQ-9191.

I was following this tutorial http://www.ni.com/tutorial/5376/en/

Im now making a first try at synchronization by following the start trigger synchronization.

When I run the vi I am getting :

 --Error -50103 occurred at DAQmx Start Task.vi The specified resource is reserved. The operation could not be completed as specified.

 

Here is my vi image.png

Can someone tell me why im getting this error? 

Do I even need to synchronize Analog Input with another Analog input?

 

Thanks!

0 Kudos
Message 1 of 5
(2,477 Views)
Solution
Accepted by topic author Roberto86

Hi Roberto,

 

place both channels in the very same task.

Like "Mod1/ai2, Mod1/ai4". Or use both CreateChannel functions for the same task…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,474 Views)

Hi GerdW,

 

Thanks for the quick reply!

 

I did what you suggested and added both of the channels to the same task:

 

image.png

Now it seems to work! Kudos for that!

Do you think this is scalable for 15 Analog Inputs? 

Should I just define all the Analog inputs into the same task?

Also how do I know which Waveform chart is showing which channels data?

 

Thanks again!

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

Hi Roberto,

 

Do you think this is scalable for 15 Analog Inputs?

Yes. I use DAQmx tasks with 128 channels…

 

Should I just define all the Analog inputs into the same task?

Yes. As long as DAQmx supports it, which may depend on the used modules…

 

Also how do I know which Waveform chart is showing which channels data?

The channel order in the DAQmx task defines the order in the data output…

You defined "ai2, ai4", so you get ai2-data in the first waveform and ai4-data in the second plot.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(2,454 Views)

Hi GerdW,

 

Thanks again for an amazingly fast response!

You cleared all my doubts amazing thank you very much!

 

 

Best regards

Roberto

0 Kudos
Message 5 of 5
(2,450 Views)