Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Jan 8, 2009

Sweep Chart Functionality in Measurement Studio for C# and VB.NET

0 ratings | 0.00 out of 5
Print

Overview

Since the sweep chart mode is not built into Measurement Studio, this example shows a method of implementing this functionality.

Downloads

Filename: sweepchartvbcs.zip
Requirements: View

The sweep chart functionality can be a very powerful tool in data visualization.  Using this chart method, the current data is shown as it is acquired, but the past data remains stationary for easy reading.  In addition, the previous data is shown as long as possible.  The figure below shows an example this method of plotting:

To implement the sweep chart, it is necessary to create a custom line type to show the previous data (the pink line on the image).  Since only the data after the current point is displayed, a sharp gradient is implemented at the current point, changing the color from transparent before the point to a chosen color afterwards.  See the comments in the attached code for a more detailed description of the implementation.

Requirements


Filename: sweepchartvbcs.zip

Software Requirements


Application Software: Measurement Studio .NET Support
Language(s): Visual Basic .NET, C#

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).