Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Components of a Project

NI VeriStand™ 2009 Help

Edition Date: June 2009

Part Number: 372846A-01

»View Product Info

At minimum, an NI VeriStand project consists of one workspace file (.rig) and one system definition file (.in4). A project also can contain supported NI hardware, custom devices, compiled models (model DLLs), models developed using The MathWorks, Inc. Simulink® software environment, and any customization VIs.

A project consists of the following components:

  • Workspace File—The .rig file that defines the available users and their permissions, determines which system definition file runs on the execution host, specifies the IP address of a real-time (RT) target, and defines the test environment with which an operator interacts, including the user interface you view in the Workspace window and the list of tools you can launch from the Tools menu of the Workspace window.

    Each workspace file references one system definition file. The workspace file contains a link to the specific system definition file that it runs on the execution host.
  • System Definition File—The .in4 file you configure primarily in the System Explorer window. A system definition file contains the configuration settings of the VeriStand Engine, including:

    • The rate at which the system runs.
    • The number of signal generators instantiated on the system.
    • The list of NI-DAQ devices, NI-CAN interfaces, or NI FPGA targets that acquire and produce data.
    • The task and channel configurations for hardware.
    • The models to execute in the system, including your model DLLs to run, the order in which they execute, and the rate at which they execute.
    • The list of active alarms. You can use alarms to trigger actions on the execution host, such as procedures, or can display dialog boxes that alert the user of an event.
    • The list of procedures that can execute on the execution host. A procedure is a script of commands that define a set of actions in the VeriStand Engine.
    • The list of channels for data objects in the system. Channel types include:
      • Hardware I/O channels (DAQ, CAN, FPGA)
      • Model channels (inputs, outputs, parameters, signals)
      • User channels (used to store or map user-defined values in the system)
      • Calculated channels (channels that represent the result of a user-defined calculation of other channels in the system)
    • The system mappings that determine how channels are connected.
  • Host Computer—The computer that runs the VeriStand Gateway and hosts the user interface of the workspace file. The host computer must be a PC running Windows Vista or XP.
  • Execution Host—The desktop PC or RT target on which you run the system definition file and VeriStand Engine.
Note  When deploying to a desktop PC the host computer and execution host can be the same desktop PC.
  • VeriStand Engine—The non-visible execution mechanism that controls the timing of the entire system as well as the communication between the execution host and the host computer. The VeriStand Engine consists of multiple timed loops that use RT FIFOs to transfer data between the loops.
  • VeriStand Gateway—Creates a TCP/IP communication channel that facilitates communication with the VeriStand Engine over the network. The VeriStand Gateway receives channel values from the VeriStand Engine and stores these values in a table that can be viewed using the Channel Data Viewer, available in the Tools menu of the Workspace window.

    If you run a project on a desktop PC, the VeriStand Gateway initiates the VeriStand Engine. If you run a project on an RT target, the VeriStand Gateway synchronizes with the system definition file that is running on the RT target. If the system definition file currently running on the VeriStand Engine does not match the system definition file that the VeriStand Gateway expects, then the VeriStand Gateway does not synchronize with the system definition file running on the RT target.
  • Model—(Optional) A simulation block diagram, generally a mathematical representation of a real-world system. A model responds to stimuli by producing outputs in a way that emulates the behavior of the modeled item. Models contain inputs and outputs that send and receive data. Models contain parameters you can manipulate and signals whose values you can view. For example, a model that generates a sine wave contains parameters that adjust the amplitude and frequency of the sine wave. You can view the value of the sine wave using the model signal.

    You can build models using several different modeling environments, including The MathWorks, Inc. Simulink® application software, Esterel SCADE Suite™ software, TESIS DYNAware software, and MATRIXx™ SystemBuild™ software. Refer to the KnowledgeBase or visit ni.com/info and enter the info code: exy5ez for more information about supported modeling software packages.

    You can run a model (.mdl) you created in the Simulink simulation environment without compiling it into a DLL if you have The MathWorks, Inc. MATLAB® and Simulink software installed on your computer. In this case, the host computer also must be the execution host. You only can run an uncompiled model (.mdl) you created using the Simulink software on a computer running the Windows operating system because NI VeriStand requires that a model be compiled into a DLL before it can run on an RT target.
  • Model DLL—(Optional) A simulation model in compiled form. NI VeriStand requires that a model be compiled into a DLL before it can run on an RT target. A model DLL also can run on a desktop PC. NI VeriStand supports model DLLs from any modeling environment that enables you to compile a model into a DLL.

    You can use The MathWorks, Inc. Real-Time Workshop® software and Microsoft Visual C++ to convert your model into a model DLL. Real-Time Workshop converts your model and any subsystems into a C code version of the same model. The resulting C code version of your model is the same Simulink block diagram model, just in a C code form. Microsoft Visual C++ then compiles the C code model into a model DLL named ModelName.dll, where ModelName is the name of the model. Real-Time Workshop places the model DLL into the current working directory. The following figure shows this conversion process.



    NI VeriStand supports Microsoft Visual C++ 6.0, .NET 2003, 2005 (Professional or Express), or 2008 (Professional or Express).
  • NI VeriStand Server—(Optional) The server that uses a TCP/IP connection to transmit data between NI VeriStand and your uncompiled model (.mdl) running in the Simulink software environment. Before running a project, you must launch the NI VeriStand Server, which starts automatically when you launch MATLAB. By default, the NI VeriStand Server runs on port 6012.

    If your project uses a compiled model, a model DLL, you do not need to use the NI VeriStand Server.
  • LabVIEW Development System—(Optional) If you want to create custom devices, workspace controls/indicators, Stimulus Profile Editor headers, timing devices, and/or Tools menu utilities, you need the LabVIEW Development System.

Additional Components for Real-Time Projects

You can use NI VeriStand to run a project on a real-time (RT) target. NI VeriStand supports certain types of National Instruments RT Series hardware. You also can execute an RT project on a computer running the Windows operating system.

RT projects involve the following additional components:

  • LabVIEW Real-Time Module—You must install RT support onto the RT target to run an RT project. You need this module to use RT functions in custom device VIs.
  • LabVIEW FPGA Module—(Optional) If you add a National Instruments FPGA target to a project, it must have an associated FPGA bitfile. NI VeriStand provides FPGA bitfiles for certain FPGA devices. If you want to customize these FPGA bitfiles or create a custom FPGA bitfile for another FPGA target, you need the FPGA Module.
  • National Instruments Driver Software—You need the appropriate National Instruments driver software to communicate with hardware installed on an RT target. You must install the following driver software on the RT target, even if you are not using the associated hardware types:

    • NI-RIO 3.2 or later
    • NI-CAN 2.6.3 or later
    • NI-CAN Frame Channel Conversion Library 1.0.3 or later, available on ni.com
    • NI-DAQmx 8.9.5 or later
Note  Use Measurement & Automation Explorer (MAX) to install and configure software on an RT target.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit