Plug in matelo_VERISTAND

NI VeriStand can be used to interact with models from a variety of modeling environments and programming languages. It can run compiled models created in any supported modeling environment as well as uncompiled models (.mdl files) created using The MathWorks, Inc. Simulink® software. This document lists supported modeling environments that have been tested and verified to be able to create compiled models that can be imported in NI VeriStand.

LabVIEW                                         

LabVIEW Control Design and Simulation Module

The MathWorks, Inc. Simulink® software

It is also possible to run models (.mdl) created in Simulink if The MathWorks, Inc. MATLAB® software and Simulink are installed on the development computer. In this case, the host computer also must be the execution host. Uncompiled models can only be run on a computer running the Windows operating system.  

SimulationX from ITI

Dymola from Dynasim

Esterel SCADE Suite Software

C/C++

GT-POWER from Gamma Technologies

AMESim from LMS

AVL BOOST

AVL CRUISE

Rational Rhapsody from IBM

MapleSim from MapleSoft

Dynacar from Tecnalia

CarSim from Mechanical Simulation

VI-CarRealTime from VI-Grade

JMAG RT FEA models from JMAG

TESIS DYNAware software

Fortran

MATRIXx SystemBuild

 

Stimulus Profiles in NI VeriStand

NI VeriStand provides an advanced stimulus profile tool for creating real-time test sequences. In addition to step-based profiles, you can create complex real-time stimulus profiles that include decision making, subsequences, and a variety of programming constructs. These elements combine to offer a flexible environment for conducting real-time tests.

The stimulus profile acts as a test executive that can call real-time test sequences, open and close NI VeriStand projects, and perform data-logging and pass/fail analysis. It also connects real-time test sequences to system definitions to bind channel data within the system definition to variables in the real-time test sequence. Much like real-time test sequences, stimulus profiles contain Setup, Main, and Cleanup sections. In the case of stimulus profiles, Setup and Cleanup are often used to perform tasks such as data logging and opening and closing NI VeriStand projects. This enables test automation and helps you transition from one type of test to another without having to manually interact with the NI VeriStand workspace. 

The NI VeriStand Stimulus Profile Editor is an executable that you can open and configure outside NI VeriStand. Because of this, you can create test profiles in parallel with system definitions and user interfaces in NI VeriStand.

One of the main components of real-time stimulus profiles is the real-time sequence. Test sequences are deployed to the NI VeriStand Real-Time Engine and can feature a wide array of programming constructs. You can create subsequences and establish multitasking within your test sequence.

MaTeLo and VeriStand Mapping

MaTeLo generates real-time test sequence from a Model correctly fulfilled. The model implementation is also simplified in MaTeLo by the fact that from the system definition file available in the VeriStand project, it can automatically create data used in the inputs and outputs library in MaTeLo. The advantages are to save time for the test model development and ensure the compliance with your real testing environment.

The step below explains how to perform the mapping between the two environments:

 

Select in the toolbar: File -> Import

Picture1 

 Select: VeriStand

A window should occur as below:

 

Select in the first line, the path of the system definition file used for the VeriStand project.

Select in the second line, the folder where the outputs and inputs file in the MaTeLo format will be created.

Click on Finish.

In the folder specified previously, two files are created respectively with the .inputs and .outputs format.

 

Select in the toolbar: File -> Import -> Inputs

 

Click on Next >

 

Click on Browse… and select the file previously generated with the expected format.

Click on Finish.

The Inputs occur in the data sheet with the same Name and Type Reference than defined in the VeriStand project.

Performing the same operation for the outputs.

 

Test Cases creation for VeriStand

Once the test model done, Click on the button generation localized in the left corner.

 

Specify the test strategy, the algorithm and the tuning parameters and click on Generation.

A window occurs as below :

Right click on the test case that you want to keep and click on Add to project.

 

The test case(s) appears in the Project explorer window in the Test Cases folder corresponding to your project.

 

Select in the toolbar: File -> Export -> Test Case -> Export test case(s)

 

Click on Next >.

A window occurs as below:

 

Select the destination folder where the test case will be exported and the test case to export.

Click on Finish.

 

In the destination specified, a file with the extension .fulltestcase is created.

This file will be used to generate the real time sequence for VeriStand.

 

Select in the toolbar: File -> Export -> Test Bench -> VeriStand

 

Click on Next >

A window occurs as below :

 

Fill the window with the paths as specified:

VeriStand file: It corresponds to the system definition file from VeriStand used to create the data in MaTeLo.

MaTeLo file: It corresponds to the test case created previously.

Save directory: Folder where the test sequence will be saved

 

Click on Next >.

A file with the nivseq format is created in the specified folder.

 

 

Click on the file.

 

The data and value used in the real time sequence are the same that the information contained in the test plan generated in MaTeLo.

Please, if you aren’t familiar with VeriStand and the Stimulus profile editor, consult the tutorial provided by National Instruments.

http://www.ni.com/white-paper/13604/en/

 

MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.