Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple AO waveform generation NI-DAQmx

Hi,
I used to program analog output generation in multiple channels on a PCI 6733 card
in the frame of the traditional NI-DAQ using LabWindows CVI.
Now I have a PCI 6229 card and NI-DAQmx, and I would like to use LabWindows CVI 7.1.
Is there an example for NI-DAQ-mx that is equivalent to the four channels example posted in:

ftp://ftp.ni.com/contrib/epd/B45EACE3F19856A4E034080020E74861/Generate_Square_Wave_-_4_Channels.zip

Such example was extremely useful for me to figure out how to program my application.
A brief description of what I need to program is:

1-Generate simultaneously two tiangular waveforms, a constant DC and a square waveform.
2-Count digital pulses diring each period of the triangular waveform.

Where can I find more examples than those included with LabWindowsCVI 7.1 ?

Many thanks

Fundadero
0 Kudos
Message 1 of 4
(3,949 Views)
Hi,

There are a couple of examples that I would recommend to help you start programming your application in DAQmx. In the LabWindows/CVI example finder: go to Hardware Input and Output>>DAQmx>>Analog Generation>>Voltage>>ContGen-IntClk.prj. This example outputs a single waveform.

Here is a link to an example that generates multiple waveforms using DAQmx in LabWindows/CVI:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E863083C10683BFFE034080020E74861

Additional LabWindows/CVI examples can be found on the National Instruments website. Go to
www.ni.com/support and choose example code under option 3.

Regards,
Hal L.
0 Kudos
Message 2 of 4
(3,904 Views)
hank you for helping out. The example that you recommended, was very useful.
But I am still disoriented with NI-DAQ MX. I would like to be able to set the update rate in therms of a clock
such as the 20 MHZ or 100 KHZ signals. I could not find a NI-DAQmx function that is equivalent to the
WFM_ClockRate ();. Can you suggest any example that performs this type of task, or a place to look for such equivalence?. I have exausted all the examples and I still could not implement my program. Is there some documentation that covers all the traditional NI-DAQ functions and how they migrate
into the NI-DAQmx?.
Thanks a lot for your help!!

Fundadero
0 Kudos
Message 3 of 4
(3,886 Views)
Hi Fundadero,

In LabWindows/CVI, if you go to Libraries>>NI-DAQmx Library, there will be a list of all of the DAQmx functions that you can use with DAQmx in LabWindows CVI. There is timing sublibrary that lists all of the timing functions. You can use these functions to modify the examples.

National Instruments has a website on the NI-Developer Zone that has Answers to Frequently Asked Questions about NI-DAQmx and Traditional NI-DAQ (Legacy). This site also has links to other pages with more information on the differences between Traditional NI-DAQ and NI-DAQmx.

Regards,
Hal L.
0 Kudos
Message 4 of 4
(3,858 Views)