Using LabVIEW and other environments, you can customize the edit-time and run-time capabilities of an NI VeriStand application. Figure 3 shows where you can add more functionality to the application. Note that the blue components are configured using the NI VeriStand environment. The white components can be created using LabVIEW or other environments and added as native components of the NI VeriStand application that work seamlessly with the environment.
Figure 3. NI VeriStand provides a framework of configurable functionality that can be supplemented with additional capabilities created using LabVIEW and other environments.
NI VeriStand provides a .NET-based API for the Workspace and the System Explorer that you can use to create custom interfaces for NI VeriStand or to implement automation of the configuration and/or operation of NI VeriStand applications. For example, you can use the System Explorer API library to create a custom configuration window that limits the changes a user can make to an NI VeriStand application or to simplify the configuration process by making it possible to specify the application parameters in a spreadsheet. Additionally, you can use the Workspace API library to automate the operation of an NI VeriStand application or to create a completely custom run-time interface. These .NET-based APIs can be used by LabVIEW, NI TestStand, and a variety of other environments capable of using .NET interfaces.
The Workspace is a run-time editable user interface for NI VeriStand applications. To use the Workspace, you simply drag and drop user interface objects to a Workspace screen and then right-click on them to bring up their configuration dialog. NI VeriStand offers a variety of user interface objects, but you can also use LabVIEW to create controls and indicators for NI VeriStand that provide a customized appearance or even run-time functionality such as inline data processing. To make these modifications, simply open the NI VeriStand user interface object in LabVIEW and make your changes.
Figure 4. Create custom user interface objects with LabVIEW.
To learn more, read the white paper titled Creating Custom Workspace Objects for NI VeriStand.
The Workspace also features many tools that you can use to monitor or interact with your NI VeriStand application such as alarm monitors, hardware calibration, and stimulus profile editors. You can use LabVIEW to create custom tools for your NI VeriStand application and place them in the tools menu with the other Workspace tools. For example, you can create a tool that offers an interface to a modular instrument such as a digital multimeter (DMM) to provide specialized measurements as part of a validation procedure.
If you would like to learn more about creating workspace tools for NI VeriStand, read the paper titled Adding a Custom Tool to the NI VeriStand Workspace.
Figure 5. Add LabVIEW VIs to the NI VeriStand Workspace menu with a simple configuration dialog.
The previous customization options affect the NI VeriStand host-side components (the Workspace and the System Explorer); however, you can also add custom functionality to the NI VeriStand real-time application in several ways.
The most common way to add functionality to NI VeriStand using other environments is by importing compiled models to the NI VeriStand real-time application. NI VeriStand can import compiled code from functions or models you create in LabVIEW, The MathWorks, Inc. Simulink® software, SimulationX from ITI, MapleSim from Maplesoft, GT-POWER from Gamma Technologies Inc., and many other modeling and programming environments. With this capability, you can add real-time closed-loop control, system simulation, signal processing, and signal generation to NI VeriStand applications. These components have a standard edit-time interface in the System Explorer, making it easy to use compiled models from a variety of environments within the same application or to switch between compiled models from different environments.
These complied versions of the models are typically produced using a single configuration dialog from the environment’s C-code generation utility. For example, when importing LabVIEW subVIs or subsystem models, you simply select the NI VeriStand Model Generation Utility from the LabVIEW tools menu, select the destination directory, and then import the compiled model using the System Explorer as shown in Figure 6.
Figure 6. Add LabVIEW subVIs and subsystems to your NI VeriStand real-time application.
Every time the NI VeriStand real-time application calls the compiled model, the inputs are latched, the code is executed, and the outputs are updated. Model parameters, or variables, within the model are updated on demand as opposed to each execution iteration. NI VeriStand models provide the simplest technique for adding custom functionality to your NI VeriStand real-time application.
Although many environments are already supported, you can use the NI VeriStand Model Framework that is provided with the product to add support for other environments capable of producing C code.
Learn more about importing simulation models into NI VeriStand.
Another way you can add custom functionality to a NI VeriStand real-time application is through the use of custom devices. Compared to NI VeriStand models, custom devices give you more freedom regarding the execution architecture and give you the ability to customize the edit-time experience in the System Explorer. NI VeriStand custom devices are created with LabVIEW using a template library. The template library requires both an edit-time component that is embedded in the System Explorer and a run-time component that executes with the NI VeriStand Real-Time Engine and has access to the engine’s timing and data resources. Examples of how this interface is used include creating support for additional hardware interfaces or implementing custom functionality such as real-time signal processing.
Figure 7. Add custom edit-time and run-time functionality to your NI VeriStand real-time application.
Walk through building an example custom device for NI VeriStand.
Learn in-depth techniques for building custom devices for NI VeriStand.
When adding real-time I/O hardware interfaces to NI VeriStand, you can quickly configure a variety of standard analog, digital, and communication bus interfaces; however, NI VeriStand also provides the ability to create user-defined I/O hardware using LabVIEW FPGA-based reconfigurable I/O (RIO) devices. You can use this capability to create custom I/O hardware interfaces that implement signal processing, simulation, triggering, and/or control tasks that execute at rates as fast as 25 ns and that do not consume any of the processing bandwidth of your real-time processor running the NI VeriStand Engine. Additionally, because the I/O interface is FPGA-based, you can easily reconfigure the personality or behavior of the device to adapt to new requirements or to create test systems capable of being used for multiple applications without changing I/O interface hardware.
Figure 8. Use LabVIEW FPGA to create custom, reconfigurable hardware interfaces.
To learn more, read the white paper titled Creating FPGA-Based I/O Personalities for NI VeriStand.