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.

Example Code

Building a Calculator with a LabVIEW XControl

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

    Other

  • XControl

Code and Documents

Attachment

Description

This example demonstrates how to use a LabVIEW XControl. The Calculator XControl can manipulate values similar to a handheld calculator. The value of the XControl is the current calculated value shown in Output.

Open the Calculator XControl Project included with this example to see the configuration of the XControl. The project includes the XControl VIs and controls, as well as the Calculator Example VI that implements the XControl.

 

Related Links:

Creating New Front Panel Objects with LabVIEW XControls

LabVIEW Online Help: Using XControls

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