Page tree

Versions Compared


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


Or in Version 13 or higher you can open the project directly from this page using this button. Make sure to select the Enable Guided Help before clicking this button.

<script src=""
<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 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.

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

Note 2: To link to the appropriate LabVIEW version, the variable TCPPORT in the LABVIEW blocks should match the setting of TCP/IP Port in LabVIEW Tools/Options.../VI Server.

System Diagram - System Diagram 1


Graph - MTD Output

Re(WVFM(TP.VSS1,128,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.VSS1,128,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.MathScript1,128,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.MathScript1,128,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.Matlab1,128,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.Matlab1,128,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.LabVIEW1,128,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.LabVIEW1,128,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)

Graph - MTD Max

Re(WVFM(TP.VSS2,4,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.VSS2,4,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.MathScript2,4,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.MathScript2,4,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.Matlab2,4,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.Matlab2,4,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.LabVIEW2,4,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.LabVIEW2,4,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)

Graph - Doppler Offset

Re(WVFM(TP.VSS3,4,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.VSS3,4,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.MathScript3,4,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.MathScript3,4,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.Matlab3,4,0,1,0,0,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.Matlab3,4,0,1,0,0,0,0,0)) System Diagram 1 y Values (No Data)Re(WVFM(TP.LabVIEW3,4,0,1,0,5,0,0,0)) (ns) System Diagram 1 TimeRe(WVFM(TP.LabVIEW3,4,0,1,0,5,0,0,0)) System Diagram 1 y Values (No Data)

Graph - MTD Output Comparison