From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI shows how to graph all data accumulated since the start of the program on a single waveform graph, updating each time a new set of data points are acquired.
Description:
This VI demonstrates how to combine new data acquired from the DAQ Assistant with data stored in a shift register from previous iterations of the DAQ Assistant. This method allows you to see your front panel waveform graph update with new data each time new data it is acquired, yet continue to show data acquired on previous iterations. This example uses the DAQ Assistant, but could be adapted to use the DAQmx API. The intent of this VI is to show how to use shift registers and the Get Waveform Components and Build Waveform functions to append new data points with previously acquired data.
Note that since this example simply uses the Build Array function each time new data points are added, it does not manage memory optimally, and therefore may exhibit significant performance decreases once a large number of points have been acquired. It is intended only as a starting point, and may need to be modified to handle large data sets optimally.
**By default, the DAQ Assistant is set to acquire from the first four analog input channels of the device selected in the "Device Name" control. You will need to alter the DAQ Assistant settings if you require fewer or more channels.
Steps to implement or execute code
To implement this example:
To execute this example:
Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 9.0 or compatible
Hardware
cDAQ with C series Analog Input Module
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
For my acceleration recording, I just changed several settings of DAQ Assistant function based on this VI and it worked well. But when I tried to build this on my own, I failed to find how I can make the box of empty array of empty waveforms (located left-bottom-outside of the while loop). It will be grateful if you can give my some advice. Thank you very much.