Example Code

DropIn VI for scrolling FP Objects with Mouse Wheel

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
The Test VI included in the code shows how various FP Objects can be scrolled using a single DropIn VI on the Block Diagram without the need to wire anything up. 


Description
The "DropIn - GObject Index Scroll.vi" is preconfigured to scroll Digital, Array, WaveformChart, and Slide Controls and Indicators. Code inspiration came from Larry. C here: https://decibel.ni.com/content/docs/DOC-25738 and from Norm Kirchner's presentation on the Scaleable, Modular, Reuseable, Extensible and Simple (SMoRES) concept which included DropIn VI's. Main version is in 2012 but I saved off a version in 2009.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Create your own top level VI with desired controls/indicators or use the Test VI included.
  2. Place the "DropIn - GObject Index Scroll.vi" on the top level VI's Block Diagram and enjoy scrolling using the mouse wheel.
  3. Just don't forget to also place "DropIn - FG - StopDropIns.vi" on the top level VI when it finishes running otherwise you'll be stuck. 

 

Additional Information or References
VI Block Diagram

Block Diagram.PNG

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 



Tim Sileo
RF Applications Engineer
National Instruments



You don’t stop running because you get old. You get old because you stop running. -Jack Kirk, From "Born to Run" by Christopher McDougall.

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

Comments
bienieck
Active Participant
Active Participant
on

Broken arrow in DropIn - FG - StopDropIns.vi.

 

Capture.PNG

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.