Этот контент недоступен на выбранном вами языке.
Содержимое отображается на другом доступном языке. Ваш браузер может включать функции, которые могут помочь перевести текст.
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 <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 Min/Max Latching. This control is named Numeric Indicator – MinMax Tracker. 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 (Windows 7) 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:
Before you develop your custom workspace object, plan the following components:
For this tutorial, you will create a Multifunction control with 1 VS channel in, 1 VS channel out, 1 Dial control, 1 Meter indicator and a fixed size.
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:
These steps will walk you through configuring how your workspace object will appear in NI VeriStand Workspace window.
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.
In order to access 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.