Example Code

Write Data to a Text File When it is a Multiple of X

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to write data to a text file when the data is a multiple of a user-chosen number.

 

Description

This VI shows you how to write data to a text file when the data is a multiple of a user-chosen number. In this instance, the data is in an array, and when an element of the array is a mulitple of the user's number, the value of that element is written to a text file.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)

 Hardware

  • No hardware required

 

Steps to Implement or Execute Code

  1. Download and open the attached file "Write Data to a text file multiple of X LV2012 NIVerified"
  2. Open VI and follow the instructions in Front Panel and Block Diagram and run the program.

 

Additional Information or References

Write Data to a text file multiple of X LV2012 NIVerified.vi - Front Panel.png
 
Write Data to a text file multiple of X LV2012 NIVerified.vi - Block Diagram.png
 
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Cheers,
Kelly R.
Applications Engineer
National Instruments

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

Comments
Todd S.
NI Employee (retired)
on

Don't see any attached VIs on the page.  Did you forget to post them?

Todd S.
LabVIEW Community Manager
National Instruments
Kelly_R
Member
Member
on

I had some problems with Firefox when posting.  The VIs should be there now.  Thanks for letting me know!

Cheers,
Kelly R.
Applications Engineer
National Instruments