Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I generate a triangle and square wave on two AOs with Sample Clock on PCI-6733?

Hi !

 

I would like to generate a triangle and a square wave (same frequency) on two different outputs with my PCI-6733 and an external sample clock. Is this possible? Thx!

0 Kudos
Message 1 of 3
(2,616 Views)

janhui,

 

This is absolutely possible and exactly what the card was made for!  First I would recommend you start with the Cont Gen Voltage Wfm-Int Clk-On-Board Regeneration.vi found in the Example Finder (Help»Find Examples).  You can get to this VI by going to Hardware Input and Output»DAQmx»Analog Generation»Voltage.  You can see that this example can be used to generate Sine, Triangle, Square, or Sawtooth of a specified frequency and amplitude.  Now it just becomes an issue of modifiying this VI to include 2 different types of waves.  I became curious and have uploaded to the community what I think is a solution for you.  I still suggest you learn all or the concept related to this code, I have just (hopefully) sped up the process.  This is not to be generally expected.  We will generally help you with problems, but do not traditionally write code however in this case I was curious and you gain the fruits of my curiosity.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 3
(2,599 Views)
Sorry for the double post I just realized that I entirely missed the ship about the external sample clock in this case I suggest you consider the example Cont Gen Voltage Wfm-Ext Clk.vi and modify the code similar to what I have done in the example I created.
Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 3 of 3
(2,595 Views)