Example Code

String Text Format by Tag

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 shows how to format a string using HTML tag.

 

Description

Using this example, you can properly format a string value by using HTML tags. This could be useful, for example, to display text in dialog box.

The HTML tags that are recognized by this example are the following:

<b> Bold </b>
<i> Italic </i>
<u> Underline </u>
<s> Strikeout </s>

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Unzip the attached zip file
  2. Open Format Text by Tag - Caller LV 2012 NI Verified.vi
  3. Modifiy HTML String control as needed
  4. Run the VI

 

Additional Information or References

Caller VI Block Diagram

 

String Text Format by Tag - Caller LV 2012 NI Verified.png

 

 

 

**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.