Example Code

DropIn VI for scrolling FP Objects with Mouse Wheel

产品和环境

本部分要求填写创建该范例所需的产品和操作系统。

如要下载NI软件(包括以下所示产品),请访问ni.com/downloads

    软件

  • LabVIEW

代码和文档

添加附件

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 Apps Engineer | NI/Emerson | ADG Business Unit

NI社区“代码范例交流区”(Example Code Exchange)中的代码范例已获得MIT许可

评论
bienieck
Active Participant
Active Participant
修改时间

Broken arrow in DropIn - FG - StopDropIns.vi.

 

Capture.PNG

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.