Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VSS/LabVIEW Integration Example

This example illustrates the use of co-simulation with LabVIEW and MATLABin 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 . It requires the LabVIEW 2013 32-bit 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 , as well as Matlab. Co-simulation with LabVIEW 2013 32-bit requires AWRDE 32-bit.The VSS MTD block implements a Moving Target Detector (MTD) in a radar system. Its functionality is replicated using Matlab code in the function MTD.m. The LabVIEW VI MTD_MathScript.vi uses a MathScript node and the code in MTD.m to implement the same MTD module. Finally, the LabVIEW VI MTD.vi implements the MTD functionality using LabVIEW basic blocks.(the latter is available only for 32-bit installations of LabVIEW). Mathscript is a native compiler for .m files developed in MATLABor GNU Octave software.

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

In this project, the same input signal is passed through the VSS MTD block, the LABVIEW block running the MTD_MathScript.vi, the MATLAB LABVIEW block running the MTD_MathScript.m function, vi and the LABVIEW MATLAB block running calling the MTD.vim function. The outputs are passed through comparison modules 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.

System Diagram - System Diagram 1

...

...