Jump to content

User Interface

Sub Category  

Any code that enhances or manipulates the the front panel UI. Custom controls, Xcontrols, property nodes and references.

34 files

  1. Type Sensitive Popup

    Copyright © 2007, David Saunders
    All rights reserved.
    Author:
    David Saunders
    --see readme file for contact information.
    Description:
    Provides an intuitive interface for tabular controls containing multiple data types. Users can use various controls and datatypes. Users can also use provided functions for registering and looking up type parameters by control (as well as by column, row, or cell).
    When you click on a cell, a correctly positioned and sized popup appears allowing for a controlled and intuitive input. Appears like it is a built-in feature, not an annoying popup window.
    Features:
    - Supports tables, listboxes, multicolumn listboxes, trees, and string controls.
    - Implements many data types : string, integer, float, color, ring, boolean, captioned string, etc.
    - Can use multiple tabular controls in same program with no programming changes
    - Can pre-register controls with certain data types
    - Register the entire control, or columns, rows, and cells.
    - Can edit the registered data type by registering again at any time
    - Allows for different font sizes
    - Works even on modal windows
    Instructions:
    Run the Demo program to see example usage.
    To recreate --
    1. Drop 'TSPopup.Popup Cluster.ctl' anywhere on your front panel.
    2. Create program logic, similar to the demo
    MANDATORY elements
    a. TSPopup.Initialize.vi (register for the user event in your event structure)
    b. TSPopup.Lookup.vi (returns positioning information, looks up any registered controls)
    c. TSPopup.Show Popup.vi (called in a Mouse Down? event case)
    d. an event case for the user event output from (a.)
    e. TSPopup.Close.vi (called at end of program)
    OPTIONAL elements
    f. TSPopup.Register.vi (register controls with popup type parameters)
    g. TSPopup.Update Cell String.vi (provided to show how to change the cell string after popup is completed)
    3. Bring the Popup Cluster to the front on the front panel. Otherwise the popup will show up behind some of the other controls on your User Interface.
    Limitations:
    - Can't programmatically bring popup cluster to front. Must do this manually.
    Change Log:
    1.0.0: Initial release of the code.
    1.0.1: Added another demo using dynamically changing data types in a tree
    Removed LV version specific event handling (only dealt with LV 7.1)
    Fixed bug where headers defaulted to have same type as their column/row
    Fixed cluster scanning from text
    Fixed ring to default to index 0 if string unrecognized
    Changed the background event monitor to always be hidden

    3,948 downloads

    Updated

  2. Get Data From Clipboard

    Copyright © 2007, Karissa Purcell
    All rights reserved.
    Author:
    Karissa Purcell
    --see readme file for contact information
    Description:
    This collection of VIs uses the Win32 API and Labview Methods to access the clipboard.
    GetClipboardData.vi retrieves image, text or a file/folder selection and puts the data into a corresponding control.
    Dependancies:
    Labview 8.0.x or higher
    Windows operating system (tested with XP)
    Uses user32.dll, Kernel32.dll and shell32.dll (usually found in C:\windows\system32 folder)
    Change Log:
    1.0.1: Fixed Commenting.
    1.0.0: Initial release of the code.

    1,945 downloads

    Submitted

  3. Get Reference To All Controls

    Copyright © 2007, GTech Automation
    All rights reserved.
    Author:
    Dave A. Graybeal
    --see readme text for contact information
    Instructions:
    This code has been tested to run under LabVIEW 8.2.1. Unzip the code into any folder of your choice and open the example called, GetRefExample.vi. This shows how to use the 'Get Reference To All Controls.vi' as well as the 'Get Control Reference by Name.vi' to obtain a reference to all controls and how to search thru those reference to obtain the reference you want.
    Features:
    Get Reference to All Controls.vi
    -Gets the references and labels to All the controls on the front panel of the calling VI.
    -Is Able to search thru all Tab Controls recursively to compile a complete list of Controls from the front panel.
    Get Control Reference by Name.vi
    -Polymorphic VI that allows for searching list for single reference or an array of references.
    -Gets a Specific Reference from the List of All Controls by Control Name(Label).
    Get Control References By Match Pattern.vi
    -Gets an Array of References for all Controls containing the regular expression in the label.
    Change Log:
    1.0.0: Initial release of the code.
    1.1.0: Changed the Class ID of a Tab Control from a constant to a Property Node (To support Future LabVIEW Releases)
    1.2.0: Added Get Control References By Match Pattern.vi (Authored By: Justin Goeres) Thanks!
    Modified GetRefExample to Include the Get Control References By Match Pattern.vi
    Improved some performace by removing unnecessary Items from Loops (Thanks JFM!)
    Removed all Dialog boxes from VI's and replaced them with proper error output messages.
    Added shift registers where necessary to ensure proper error is passed out of each VI.
    Recompiled under LabVIEW 8.2.1.

    2,912 downloads

    Submitted

  4. Tree Control API

    Copyright © 2007, Norman J. Kirchner, Jr.
    All rights reserved.
    Norman J. Kirchner, Jr.
    Author:
    Norman J. Kirchner, Jr
    --see readme file for contact information
    Description:
    Package to provide smart tree functionality without assumption of type of data (ie, file paths or others)
    Gives ability to modify contents, extract information and control the branches.
    A good understanding of how the LV tree truly operates as a fancy multi-column listbox is very useful although not required.
    An expample program if not present on the forums, will be in place soon.
    Dependancies:
    LV version above base package
    Functions
    Add Item
    Modify Item
    Remove Item
    Get All Items
    Get Top Level Items
    Get Items Parent
    Get Selected Item
    Get Siblings
    Get Children
    Get Item Properties
    Check Tag Valid
    Convert Tag to Text
    Find Tag from Text
    Outdent at Item
    Indent At Item
    Expand
    Collapse
    Empty Tree
    Notes
    Capable of working w/ LV 7 or later but uploaded version is for LV 8.2. Please request previous version if necessary.
    Good to recognize that the tree control is just a fancy multi-column listbox.
    Version
    1.0.0 Initial Release
    1.0.1 Example program added

    6,662 downloads

    Updated

  5. Picture Hacks

    Copyright © 2006, Adam Rofer
    All rights reserved.
    Author:
    Adam Rofer
    --see readme file for contact information
    Description:
    A couple of Picture datatype hacks to illustrate the structure of the (LV 6.1 - LV 7+ is untested) picture control.
    -- Main VIs --
    Example - Show How Picture Is Made.vi:
    Main example, shows (incrementally) how a specific picture is generated by displaying the picture with each packet
    incrementally added. Good way to see how your own pictures display information.
    Opcodes.csv:
    Comma-delimited file explicitly describing the packet types and their requirements / uses.
    Tool - Picture concat.vi:
    Given two pictures, concatenates the data to create a single overlapped picture.
    Tool - Packets to Picture.vi:
    Given an array of picture packets (cluster), generates a picture.
    Tool - Picture to Packets.vi:
    Given a picture, generates an array of picture packets.
    -- Utility subVIs --
    sub - 8-Bit string to 32-Bit number.vi:
    utility VI to cast a string to a 32-bit number. Typecast might work instead but this is more explicit.
    sub - Find Opcode:
    Given a picture data string that has the size header removed, this will extract an opcode from the front.
    sub - Strip top of and check picture.vi:
    Utility VI to strip the header (size) from a picture data string so that it can be scanned for packets.
    Change Log:
    1.0.1: (11/13/06)
    Cleaned up code for LAVA requirements:
    - Renamed VIs for clarification of purpose
    - Fixed coercion dots
    - Added 0ms delays in all loops
    - Added error encapsulation in some subvis
    - Replaced local variable for cluster to constant in order to limit thread swapping between the user interface and code threads
    1.0.0: (11/07/06)
    Cleaned up code from 6i 2001 version for submission.

    1,395 downloads

    Submitted

  6. JKI Progress Bar Dialog

    Copyright © 2006, James Kring, Inc.
    All rights reserved.
    Author:
    Michael Aivaliotis
    Instructions:
    This code has been tested to run under LabVIEW 7.1.1. It will probably work on any newer versions but it has not been tested. Just unzip the code into any folder of your chosing and open the example called, JKI PBD Example.vi. This shows a typical use case where you want to pop-up a non-blocking dialog within a process loop and display a message and updated text from a parallel running task. In addition, you can pass a max value and updated progress value and the dialog will automatically present a percentage complete progress bar.
    Features:
    - Contains an abort button on the dialog that can assist in aborting a running process.
    - You only need to pass the total number of tasks\items and the dialog automatically calculates percent complete.
    - Can specify a limited preset amount of progress images via the "animation" selector
    - Can update the status messages and progress in real-time after the dialog has been launched.
    - Setting an animation value of 0 disables animation and displays only text.
    - Handles being built into an application
    - The dialog is not modal when run in the development environment however it becomes modal when built into an executable.
    Version History:
    1.0.0:
    Initial release of the code.

    2,113 downloads

    Updated

  7. String AutoComplete

    Copyright © 2006, Sam Behashtei
    All rights reserved.
    Author:
    Sam Behashtei
    --see readme file for contact information
    Description::
    In most modern application, in web based application, the user input Textbox, or (String-Control) have the ability to Auto-Complete the words being typed. This utility helps the programmer give the Auto-Complete behavior to a LabVIEW String.
    Version History:
    1.0.1:
    The mechanism to store suggestion list has been changed.
    1.0.0:
    Initial release of the code.

    2,108 downloads

    Updated

  8. CLL Dialog

    Copyright © 2006
    All rights reserved.
    Author:
    Lars-Göran Andersson
    --see readme file for contact information
    Description:
    This library gives similar functionality as Three Button Dialog.vi but with some extra goodies.
    It doesn't strictly conform to the guidlines for a dialog box, instead it shows my personal preferences.
    CLL (Common LabVIEW Library) is my way of tagging VIs that have made it into my library of reusable code.
    Version History:
    1.0.0:
    Initial release of the code
    1.0.1:
    Added version info to the description of CLL Dialog.vi
    Changed some default values for TEST CLL Dialog.vi

    927 downloads

    Submitted

  9. JKI Please Wait Dialog

    Copyright © 2006, James Kring, Inc.
    All rights reserved.
    Author:
    Michael Aivaliotis
    Instructions:
    This code has been tested to run under LabVIEW 7.1.1. It will probably work on any newer versions but it has not been tested. Just unzip the code into any folder of your chosing and open the example called, JKI pwd Example.vi. This shows a typical use case where you want to pop-up a non-blocking dialog and display a message and updated text from a parallel running task.
    Features:
    - Can specify a limited preset amount of progress images via the "animation" selector
    - Can update the status message in real-time after the dialog has been launched.
    - Setting an animation value of 0 disables animation and displays only text.
    - Handles being built into an application
    - The dialog is not modal when run in the development environment however it becomes modal when built into an executable.
    Version History:
    1.0.2:
    Renamed VI prefix from MNA to JKI.
    Added more documentation to diagram and VI descriptions.
    1.0.1:
    Fixed bug where dialog was not centering on screen.
    Changed dialog behaviour so it updates position on screen before the front panel is open.
    1.0.0:
    Initial release of the code.

    1,936 downloads

    Submitted




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.