This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
To create a custom workspace object, you must create or edit a VI file in LabVIEW software and then place a copy of this VI in the C:\Users\Public\Documents\National Instruments\NI VeriStand 20xx\Display Templates directory. Once the VI is in the Display Templates folder, it will appear on the Workspace Controls palette.
The filename of your VI defines the category and name of the object on the Workspace Controls palette in NI VeriStand. The naming convention works as follows:
Take, for example, the Numeric Indicator with Meter. This control is named Numeric Indicator – Meter. The following image illustrates how the control appears in the Workspace Controls palette.
There are three common methods for developing a custom workspace object. Choose the method that best suits the level of customization your workspace object requires:
To make small changes to the appearance of a control that already exists, complete the following the steps:
For more information, refer to the example Configurable Control Reference on the NI VeriStand add-ons page.
For performance, NI VeriStand often decimates the data that it sends to the workspace. However, you can create a lossless data display by completing the following steps:
For more information, refer to the example Multi-Y Graph on the NI VeriStand add-ons page.
To create a new workspace object, you can customize Decoration - Free Label.vi located in the C:\Users\Public\Documents\National Instruments\NI VeriStand 20xx\Display Templates directory. This VI contains a pre-populated block diagram that you can easily configure to meet the needs of your control.
This topic contains the following steps to help you create a custom workspace object from the Free Label VI:
I. Planning the Custom Workspace Object
Before you develop your custom workspace object, plan the following components:
For this tutorial, you will create a Multifunction control with one VS channel in, one VS channel out, one Dial control, one Meter indicator and a fixed size.
II. Understanding the Free Label VI
Before getting started, familiarize yourself with the parts of the Free Label VI and how they interact with NI VeriStand. The following image shows the block diagram of the VI, followed by an explanation of its major components:
III. Setting-up the LabVIEW Project for the Custom Workspace Object
IV. Naming the Workspace Object
V. Customizing the Appearance of the Workspace Object
These steps will walk you through configuring how your workspace object will appear in NI VeriStand Workspace window.
VI. Creating the Workspace Object's Configuration Dialog
When you right-click a workspace object in the Workspace window, the configuration dialog for that object launches. When creating a custom workspace object, you must also create its configuration dialog. This LabVIEW project for this workspace object contains Configuration Dialog.vi, which you will use as the configuration dialog for this object. The following steps walk you through the important components of the Configuration Dialog VI.
VII. Configuring the Functionality of the Workspace Object
For accessing custom workspace objects from the workspace, you must place all the necessary files in the Display Templates folder. To ensure all of the necessary files are saved to the right location, generate a source distribution from your LabVIEW project.
You can use custom NI VeriStand workspace objects to meet unique application needs. After you complete a custom workspace object and place it in the Display Templates folder, the object is natively integrated into NI VeriStand like the packaged interfaces.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.