11-17-2010 06:29 PM
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
Below is a simplified DAQmx equivalent I have tried:
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:
Thanks in advance for any help that you can provide.
JimC
11-18-2010 05:45 PM
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,
11-18-2010 11:48 PM
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
11-22-2010 08:52 AM
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,
11-22-2010 12:08 PM
Adam,
Thanks for the information. I will try your example and see if it works for my test conditions.
Jim C