Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Are 2 DAC channels faster in 2 tasks than in 1 task?

I will use NI PCIe-6361 to generate 2 waveforms (2 DACs) and measure 1 signal (ADC).

I need to get max peformance from the card. I have 2 questions:

1. I can use 2 DAC channels in 2 ways

- one task as "Analog 2D DBL NChan NSamp" 

- two tasks as "Analog 1D DBL 1Chan NSamp"

Will "2 tasks" way be faster? Or will " 1 task" use 2 DMA channels and performace will be the same?

I assume data type (waveform. double, int) doesnt influence on performace.

2. DACs and ADC channels will work on the highest rates (> 1 MSamples/s) and ADC and DAC waveforms can be more than 32 (or 64 - don't remember) kB channel memory of NI PCIe-6361 card.

Computer will not do almost anything at that time. Will it work?

0 Kudos
Message 1 of 8
(4,145 Views)
The question is moot because you simply cannot have two different tasks.
0 Kudos
Message 2 of 8
(4,140 Views)

What???

As minimum, I was able to create and clear Dev1/ao0 and Dev1/a01 tasks without errros

 

Maybe it is not possible to create 2 tasks for ADC. But that is different story because there is one resourse - one ADC with multiplexer!

0 Kudos
Message 3 of 8
(4,130 Views)
Since you are new to data acquisition and LabVIEW, I would suggest you review some of the tutorials. This has been discussed numerous times. If you want two channels being generated at the same time, you MUST use a single task with all channels. It does not matter whether it is ADC or DAC. Both use a multiplexer with a single convert clock.
Message 4 of 8
(4,126 Views)

nice answer! typical NI style! In Russian there is proverb for such answer - "одна баба сказала" 😉

 

1. if you (Dennis_knutson) is correct about DAC then DAQmx has a bug

2. engineer's answer would be : point to place in card or X Series specification or manual Tutorial is secondary document. By the way when Ni website http://sine.ni.com/nips/cds/view/p/lang/en/nid/207411 doesn't show any link to tutorials.

3. by the way, I am 30 years in this bisiness. I use NI cars and LabVIEW as well as other tools. I hope you understand that you are incorrect.

 

unfortunately, it is very rare when NI provides good and knowledge support.

0 Kudos
Message 5 of 8
(4,103 Views)

@Vasilich2004 wrote:

nice answer! typical NI style! In Russian there is proverb for such answer - "одна баба сказала" 😉


Dennis does not work for NI.  So you can't pin that on NI.  I don't work for NI either.  Most of us on these forums do so for the sake of helping people.  I will admit that Dennis does seem to come off hard on people though.

 

 


Vasilich2004 wrote:

1. if you (Dennis_knutson) is correct about DAC then DAQmx has a bug


How is that a bug?  The sample clock is a shared resource.  You cannot have two different tasks use the same resource.  Therefore you will need to have all of your analog output channels in the same task.  This is by design.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(4,088 Views)

@crossrulz wrote:

@Vasilich2004 wrote:

nice answer! typical NI style! In Russian there is proverb for such answer - "одна баба сказала" 😉


Dennis does not work for NI.  So you can't pin that on NI.  I don't work for NI either.  Most of us on these forums do so for the sake of helping people.  I will admit that Dennis does seem to come off hard on people though.

 

Be precise!

Did I write that Dennis works for NI? No!

I wrote about NI style! Ask to translate - "с кем поведешься от того и наведешься"

 


Vasilich2004 wrote:

1. if you (Dennis_knutson) is correct about DAC then DAQmx has a bug


How is that a bug?  The sample clock is a shared resource.  You cannot have two different tasks use the same resource.  Therefore you will need to have all of your analog output channels in the same task.  This is by design.


Yes, it is not a bug because 2 tasks can generate waveforms at different time. I mean DAQmx couldn't catch this issue until program will try to start 2 waveform generations simultaniously.

In anyhow, such approach (undescribed limitation in specification) is not good for developers.

0 Kudos
Message 7 of 8
(4,085 Views)
The single clock is explained in the manual. Since you have not read it, I wrongly assumed you were a completely new user.
0 Kudos
Message 8 of 8
(4,079 Views)