Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Legacy DAQ sync'd AI/AO to DAQmx equivalent

I am currently working on a project to update an old test application that uses Legacy DAQ synchronized analog input and analog outputs to the equivalent DAQmx driver functions.  The block diagram of the current working subVI is shown below

 

TestSequencer Process (Aux AO)_BD.png

 

Below is a simplified DAQmx equivalent I have tried:

 

TestDAQmx_Multi-Function-Synch AI-AO_BD.png

 

 

 

This test code does not have any occurences or events and I'm not sure where or how to include them.   I also does not include calls to write to the auxillary analog out channels and sync them with the other analog out and analog in.  The existing code to sync the aux channels is contained the follow ing code that I have not been able to figure how to reproduce in DAQmx:

 

Trigger Out Config_BD.png

 

Thanks in advance for any help that you can provide.

 

JimC

 

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

Hi Jim,

 

Can you specify the hardware you are using with the VI you are trying to convert?  I am assuming you are referring to a counter AUX line, but not sure.

 

Best,

Adam
Academic Product Manager
National Intruments
0 Kudos
Message 2 of 5
(3,637 Views)

We are using an NI PCI-6024E board.  Analog inputs signals are being measured on channels ai0,ai2 & ai3.  Analog output are on ao0 & ao1. I think that I can replace the Legacy DAQ occurrences with DAQmx events but I am not sure exactly how to do that.  I also think that I will need one DAQmx task for the AI channels and two DAQmx tasks for the two AO channels.  It's the sync and timing of these task that I'm have trouble setting up with the DAQmx equivalents to the current Legacy DAQ tasks.  The current software has an option to enable the triggering on these task that I also need to duplicate as shown in the lower figure above.

 

Thanks for any help you can provide.

 

JimC

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

Hi JimC,

 

Have a look at this example.  It correlates DI, DO, and AO to the AI sample clock.  You will only have one sample clock for analog output, so there will only be one rate for the output.  With that in mind, you can increase the number of samples in the slower waveform to effectively decrease the output waveform frequency if needed.

 

Best,

Adam
Academic Product Manager
National Intruments
0 Kudos
Message 4 of 5
(3,586 Views)

Adam,

 

Thanks for the information.  I will try your example and see if it works for my test conditions.

 

Jim C

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