Example Code

Using Report Generation Toolkit with the Continous Acq & Graph Voltage-Ext Clock

Code and Documents

Attachment

Overview
This example demonstrates how to acquire a continuous amount of data (Waveform) using an external clock.

 


Description
This example is a modified version of the Continous Acquisition and Graph of a Voltage Using an External Clock example VI that is shipped with LabVIEW. This version uses the producer consumer architecture to log the data in an execel spreadsheet using the report generation toolkit.

 


Requirements

  • LabVIEW 2012 (or compatible)
  • Report Generation Toolkit for Microsoft Office 2012 (or compatible)
  • NI-DAQmx 12.0 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI "Continues Acquisition & Graph Voltage Using Report Generation Toolkit 2012 NIVerified.vi"
  3. Select the physical channel to correspond to where your signal is input on the DAQ device.
  4. Enter the minimum and maximum voltage ranges.

Note:  For better accuracy try to match the Input Ranges to the expected voltage level of the measured signal.

  1. Select the Source of the Clock for the acquisition.
  2. Set the approximate Rate of the external clock. This allows the internal characteristics of the acquisition to be as efficient as possible. Also set the Samples to Read control.  This will determine how many samples are read each time the while loop iterates.  This also determines how many points are plotted on the graph each iteration.

 

Additional Information or References
VI Block Diagram

Block Diagram.PNG 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.