Where To Find This Example

Select Help > Open Examples... from the menus and type either the example name listed above or one of the keywords below.

Or in Version 13 or higher you can open the project directly from this page using this button.

<script src="https://s3.amazonaws.com/downloads.awrcorp.com/gh/ghcommon.bas"
	type="text/awrscript">
</script>
<button class="gh-button gh-projectopen" onclick="runAwrScript('awrGhOpenProject','MTD_LabVIEW_Matlab.emp')">Open Install Example</button>

Design Notes

VSS/LabVIEW Integration Example

This example illustrates co-simulation with LabVIEW and MATLAB® in VSS. Co-simulation with LabVIEW is achieved by implementing the required functionality into a LabVIEW Virtual Instrument (VI); the Matlab implementation is done through a .m file.

In this example, a Moving Target Detector (MTD), used in Radar systems, is implemented as described below and the results are compared:

- The VSS implementation: uses the VSS native block MTD. This block is part of the VSS Radar Library.

- LabVIEW implementation: uses MTD.vi. This VI is implemented by using basic LabVIEW functionality. Requires an installation of LabVIEW Development Environment (32- or 64-bit).

- LabVIEW Mathscript implementation: uses MTD_MathScript.vi. Requires an installation of LabVIEW 32-bit Development Environment with the LabVIEW MathScript RT add-on module (the latter is available only for 32-bit installations of LabVIEW). Mathscript is a native compiler for .m files developed in MATLAB® or GNU Octave software.

- MATLAB implementation: uses MTD.m. This implementation requires an installation of MATLAB® software.

In this project, the same input signal is passed through the VSS MTD block, the LABVIEW block running the MTD.vi, the LABVIEW block running MTD_MathScript.vi and the MATLAB block calling the MTD.m function. The outputs are plotted and compared to verify they are all identical.

Note: This example will not run using the LabVIEW Run-Time Environment since the LabVIEW MathScript RT add-on module is not compatible with it.