Showing posts with label GUI. Show all posts
Showing posts with label GUI. Show all posts

Saturday, October 6, 2012

Getting Started with CVI - Part 1

    Written by Tal Alon - October 2012

In this post we show, step by step, the way to create simple CVI programs. This post will allow you to take your first steps using this wonderful programming environment.


Monday, May 14, 2012

How to Use Multiple Panels

    Written by Erez Wenger - May 2012

In this post we show, in screenshots and code-lines, how to create and handle multiple panels in CVI.

Thursday, January 5, 2012

How To Use the File Selection Popup

   
Written by Erez Wenger - January 2012

In this post we show how to make these file/directory popups appear, how to configure them and how to get the user entered information from them.

Thursday, November 24, 2011

How to Use Callback Functions - Part 1

 
Written by Tal Alon - November 2011

In this post we explain how to create the link between UIR elements and your code and how to make stuff happen.


Thursday, June 9, 2011

How to Plot Multiple Traces on a StripChart


Written by Erez Wenger - June 2011

In this post we explain, in images and code-lines, how to easily plot multiple traces.

Tuesday, May 17, 2011

How To Use a Stripchart

Written by Erez Wenger - May 2011

In this post we show how to easily add a stripchart to your user interface and how to write code that will present data on it.


Friday, March 18, 2011

Monday, March 7, 2011

Change the Attribute of a Menu Bar Item from Within the Code

Suppose we have a simple menu bar (with a Menu Bar Constant Prefix of "MENUBAR") with one item (Constant Name of "ITEM1"), the item is initially dimmed and we want to change this somewhere within the code, to do so we need to do the following :
  • Define a new variable to represent the menu bar:
        int menuHandle.
  • Assign the new variable a value representing the panel's menu bar:
        menuHandle = GetPanelMenuBar (panelHandle);
  • Change the attribute you want, in our case it will lok like this:
        SetMenuBarAttribute (menuHandle, MENUBAR_ITEM1, ATTR_DIMMED, 0);

    Tuesday, March 1, 2011

    How to Restrict the Values a Control can Get

    Restricting a Simple Numeric Control:
    1. Double click on the control to edit its properties.
    2. Select the best data type for the job (char, int, double and should it be unsigned). 
    3. Specify the minimum and maximum values.
    4. Change "Range Checking" to 'Coerce' so that the values are truly restricted (otherwise the user will only be  notified). In 'Coerce' mode, if the user enters a value that is larger than the maximum, the value that will be entered is the maximum value, the same goes for the minimum for values that are lower.
    Restricting a String Control:
    1. Double click on the control to edit its properties.
    2. The default value of -1 in "Max Entry Length" will allow the user to enter as many characters as he wishes (no restriction) - Change the value to the maximum number of characters you want the user to enter.