Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ AO NI9263

Solved!
Go to solution

I have a cDAQ AO NI9263.  I want to output the same waveform on multiple channels.  The waveform has 10000 samples.  I can get it to work by writing one sample at a time in a while loop, but I don't want to do that in the software.  I want to give the waveform to the hardware module and have the module handle the complete waveform output.  How do that I do that?  If I can't do that with a compact daq.  What can I use?  Where in the spec should I look for to find this functionality?  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(3,369 Views)
Solution
Accepted by topic author jyang72211

Yes, what you want to do is possible.  You want a hardware timed task and there are many examples of this that ship with DAQmx.  If you are using LabVIEW, look at Cont Gen Voltage Wfm - Int Clk.vi.  In the Example Finder it is under Hardware Input and Output->DAQmx->Analog Generation->Voltage.  That example uses a waveform data type but you can change it.

Message 2 of 4
(3,360 Views)

That works.  Do you know where I can read more about

 

1. the DAQ LabVIEW funcitons

2. different between correlated and uncorrlected ouput and modules

3. external and internal trigger in NI instrument 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 4
(3,353 Views)

Good question.  I recommend reading the DAQmx Help and starting with the NI-DAQmx Key Concepts section.  That will explain the different timing modes, trigger types, etc., and how they relate to the DAQmx API.  I recommend reading your cDAQ chassis product manual (called User Guide and Specifications).  It will break down the capabilities of your chassis in much more detail than the general DAQmx help.

 

The module user manuals aren't going to be much help to you learning the API.  They largely list the specifications of the module when most of what you want is likely a feature of the chassis.

 

A good start is to read the sections in the help and chassis manual that interests you and then playing around with examples that use those features.  If you want to see how the examples work but don't have hardware, you can go to MAX and simulate hardware to test.

 

--

 

As for correlated and uncorrelated modules, I'm not sure what you mean.  All cDAQ AO modules can be independently timed or share a sample clock with something else.  We used to have a concept of correlated digital, where certain devices could not generate their own digital sample clock and you had to correlate it to another task, like analog input (see the cDAQ-9172 chassis).  Again this is a feature of the chassis, not module. 

 

There are many examples that use a trigger.  Modifying them should be simple--just chose the terminal you want to use for your trigger.  For an internal trigger you would chose an internal signal--like the start trigger from another task.  For an external trigger just select a PFI line that you have it wired to, either on the chassis or a digital module.

 

I hope that helps.

0 Kudos
Message 4 of 4
(3,351 Views)