Page tree

Versions Compared


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


This example illustrates co-simulation with LabVIEW and MATLABin 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.


- LabVIEW Mathscript implementation: uses 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 MATLABor MATLAB® or GNU Octave software.

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

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