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

Customizing Measurement Studio WPF Controls for a Unique User Interface

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

  • Measurement Studio

Code and Documents

Attachment

Description

This document contains video demonstrations and downloadable code to get you started with customizing Measurement Studio Windows Presentation Foundation (WPF) controls in Microsoft Visual Studio. Our WPF controls give you the power to design user interfaces that increase your users' productivity. By utilizing the powerful features offered by WPF, you can make your user interface more interactive, present your data in a more meaningful way, and easily modify the way your users interact with your applications.

How to Use

WPF Tutorial Videos

1. WPF Custom Data Rendering

Learn how to apply custom data renderers to transform the way you present your data. This example demonstrates the power of using animation and visual customization to improve the accessibility of usable information within Measurement Studio WPF Graph controls.

 

Required software: Microsoft Visual Studio NI Measurement Studio

 

2. WPF Data Binding with NI-DAQmx Applications

Learn how to use data binding to plot data on a Measurement Studio WPF Graph control. This example shows you how to leverage the flexible data binding features of WPF and the NI-DAQmx native .NET API to display data from two NI data acquisition cards.

 

Required software: Microsoft Visual Studio NI Measurement Studio NI-DAQmx

 

Note: The source code for this example has been modified since the creation of the video.

 

3. WPF Range Masking Cursors

Learn how to modify the versatile Range Cursor of the Measurement Studio WPF Graph to create meaningful filters for quick data verification.

 

Required software: Microsoft Visual Studio NI Measurement Studio

 

4. WPF Data Binding between Collapsible Panels

Learn how to use WPF data binding and routed events to move data, interactively selected from a Measurement Studio WPF Graph, to a Data Grid, detailing the points selected.

 

Required software: Microsoft Visual StudioNI Measurement Studio

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

Contributors