Git Product home page Git Product logo

graph-extensions-labview's Introduction

Graph-Extensions-LabVIEW

These add some nice mouse effects and highlighting options on XY graphs and Waveform graphs by extending the picture controls within graphs and some simple events.

Video Preview of Graph Extensions

Currently, there are 6 main extensions:

  • Cursors - Show real time overlay of data values and time at the cursor and plot intersections
  • Graph BGK Colors - Lets you set bgk color where the minor and major grid colors are then setup for you
  • Peaks and Valleys - Allow you to highlight on the graph any # of peaks and valleys from the data
  • Markers - Interactive labels and regions to mark up the graph.
  • Scrollwheel Zooming - adjust and zoom the graph by using the scroll wheel
  • Plot Highlight - flash or highlight a plot by its thickness, to emphasize one plot s

Cursors

-Shows cursors automatically at mouse for each plot. Various options to enable added lines, sizing, text formating, timestamp displays, etc.

Shows real time cursors overlayed in a graph, using just one mouse move event case. The options for the cursors can be highly customized to set up a unique cursor style.

Usage: Place this inside an event structure on any XY graph, in the "Mouse Move" event case. Set the options as an input cluster to override the defaults. The output picture control would typically be connected to the XY Graph's "PlotImages.Front" property item.

Cursor-Simple

Cursor Options

Horizontal Line? - Draws a horizontal line to intersect each plot Verticle Line? - Draws a verticle line at the mouse location to highlight the cursor location (typically on the time scale) Timestamp - Sets where to display the timestamp (if you want it at the top or bottom) Used best with the verticle line turned on. Font - Setup the font for displaying the cursor text Alignment - Sets the alignment options for the text relative to the cursor point TextFormat - Sets the text display format at the cursor points to show. Three input parameters are available for the text, which can be accessed using parameter numbers. inputs:

  • Timestamp at cursor locations
  • Value of the plot
  • Name of the plot

Examples: $2$.2f\n\n%1$s This shows the value of the plot with 2 decimal places. A blank line, then the name of the plot

Cursor-Advanced

Graph BGK Colors

This allows a graph to easily have its background color changed, and the gird lines will automatically be colored to subtly match the color based on shifting the luminance up or down to constrast the color set.

BGK-1

BGK-2

BGK-3

Used by reference with a color input, to simply change the color. Can be user driven or used once for initialization.

Peaks and Valleys

Allows data to be scanned for peaks and valleys with width and amplitude thresholds to determine them. It can be used statically or driven in an event structure on graph scale changes to have it follow the graph edits by a user.

Peaks&Valleys-1

Markers

Markers will allow a user to add 7 types of markers to a graph:

  • Point
  • Arrow
  • Line Vertical
  • Line Horizontal
  • Range Vertical
  • Range Horizontal
  • Range Box

RangeHorizontal

RangePoint

When marker mode is active, the mouse moves will be shown with a overlay for that marker, depending on the type selected by the user.

The user can right click to change the marker mode on the graph.

RightClick

Once any markers are added, they are redrawn on the graph and all types can be used on the same graph, as many times as they are wanted.

Marker Types

Other right click options are to allow the amrker colors and font settings to be updated live. Marker Options

Lastly, right clicking also allows the markers to be manually edited or removed. Marker Edit

Scroll Wheel Zooming

This is a simple extension that allows the mouse scroll wheel to perform centered zooming functions at the current mouse location. It is added with just a single VI to the events, to enable the scroll wheel function.

Video Preview of Scrollwheel Zooming

Plot Highlight

This extension is a single VI that can be used to visually highlight a plot (specifically when using a multiplot graph) so that the plot of interest can be shown. Useful when combined with plot selections or plot updates that might need to be highlighted to the user.

graph-extensions-labview's People

Contributors

unipsycho avatar bleby1988 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.