LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NI example for writing and reading from different DAQmx channels simultaneously

Hello all,
is there an example for writing and reading the Dev1/ai0, Dev1/ai1, Dev1/ao0 and Dev1/ao1 simultaneously?
Or a similiar example?
I wish to generate a wave and simultaneously read its THD and even read a signal from a Digital Function Generator ans its THD too.
All simultaneously.
Please let me know if LabWindows/CVI install these examples and where.
Thanks in advance for the help.
 
Daniel Coelho
Portugal
 
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 1 of 4
(3,839 Views)
Hello,
 
You can use this exemple :
 
 
If you want the "Dev1/ai0, Dev1/ai1", in Physical Channel you will write :  Dev1/ai0:1
If you want the " Dev1/ao0 and Dev1/ao1 ", in Physical Channel you will write :  Dev1/ao0:1
 
Don't forget that for a M or E series, you can create only one task for the acquisition.
 
Regards,

Nacer M. | Certified LabVIEW Architecte

0 Kudos
Message 2 of 4
(3,795 Views)
Hi,
thank you for your reply.
I've seen that example but I think that it only uses one write channel at a time.
I need to use both AO0 and AO1 at the same time.
And finally, my card is PCI 4461.
I'm trying to use DAQmxCreateAOFuncGenChan() but I'm not sure about the sequence needed to start the task and generate the wave.
Can you help some more?
Thanks in advance.
 
Daniel Coelho
 
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 3 of 4
(3,788 Views)

HI,

I managed to solve this problem saving the signal from each channel to a separate buffer, I devided in half the buffer used to read/write from/to the DAQmx, the first half is from the first channel and the second half from the second channel.

Seems to work but I know it isn't the perfect solution.

Regards,

Daniel Coelho

 

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 4 of 4
(3,742 Views)