To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
This example shows how to let the user control data logging in an application based on "Log?" button value. When the button is pressed, the application logs incoming data. When the button is not pressed, data is not logged.
Description:
The architecture is divided into two main loops: the DAQ loop and the Log button monitor loop. This VI is using notifiers to share information between two loops. When the state of the Log button is changed, we send the relevant information to the DAQ loop to let it know what the user wants to do.
Every time the user turns on data logging, he/she is prompted for a file location and name (File Dialog inside subVI Handle Log Value Change). The incoming data in this case is simulated with the Simulate Signal Express VI and logged using Write to Measurement File Express VI (lvm format).
Requirements
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Additional Information or References
**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.