DAQmx Base Synchronized Finite Analog Input Continuous Analog Output
Downloads
Filename: daqmxbase_triggersync_ai_ao.zip
Requirements: View
Setup:
Set up the physical channel information for analog input and output. If timing parameters are changed, make sure to change the number of times the for-loop iterates for the analog input appropriately. Make sure the trigger line is set to the RTSI6 terminal of the DAQ card. Set the output waveform to desired settings.
Operation:
1. Create analog output channel
2. Define timing parameters of the analog output task, such as sampling rate
3. Export the analog output trigger to a RTSI line on the board, this is so that the
analog input can start synchronously
4. Create the waveform to output
5. Write the waveform to the AO FIFO of the DAQ card
6. Create analog input channel
7. Define the timing parameters for the analog input task
8. Set analog input task to trigger off of analog output task via a RTSI line
9. Start the analog task to wait for the AO trigger to begin acquisition
10. Merge errors
11. Begin analog output, due to the triggering that was set up, analog
input will begin at this time as well
12. Read defined number of samples out of the analog input buffer
13. Continue to output waveform till user stops program
14. Stop and Clear analog output task
15. Stop and Clear analog input task
16. Error handling
Requirements
Filename: daqmxbase_triggersync_ai_ao.zip
Software Requirements
Application Software: LabVIEW Base Development System 8.0
Language(s): LabVIEW
Hardware Requirements
Driver: NI-DAQmx Base 2.0
Reader Comments | Submit a comment »
How can I do the same thing in DAQmx
Base with continuous AI instead of
finite?
- Anant Agrawal, Food and Drug Administration. anant.agrawal@fda.hhs.gov - Mar 8, 2009
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
