Example Code

Error Logging VIs

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

Download All

Overview:

This is an example that can log the status of the error cluster to聽 disk from LabVIEW or LabVIEW RT.

 

Description:

This VI demonstrates how to use ActiveX methods to save a Word or Excel report as a PDF. This can be useful for generating reports that cannot be edited by the end-viewer. This VI saves the file as "LabVIEW Save.pdf" in the same directory as the source report. You could easily modify this VI to be used as a subVI with the file name of your choice.

 

Requirements

LabVIEW 2012(or compatible)

 

Steps to Implement or Execute Code

 

  1. On the front panel,specify the file path for the Log File

2. Enter a comment into the Data to Log string control if desired

  1. Run the VI.

Additional Information or References

VI Snippet

1.png

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

 

Overview:

This is an example that can log the status of the error cluster to聽 disk from LabVIEW or LabVIEW RT.

 

Description:

This VI demonstrates how to use ActiveX methods to save a Word or Excel report as a PDF. This can be useful for generating reports that cannot be edited by the end-viewer. This VI saves the file as "LabVIEW Save.pdf" in the same directory as the source report. You could easily modify this VI to be used as a subVI with the file name of your choice.

 

Requirements

LabVIEW 2012(or compatible)

 

Steps to Implement or Execute Code

 

  1. On the front panel,specify the file path for the Log File
  2. 2.Enter a comment into the Data to Log string control if desired
  3. Run the VI.

Additional Information or References

VI Snippet

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

 

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com

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