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. Make sure to select the Enable Guided Help before clicking this button.
VSS/LabVIEW Integration Example
This example shows the use of a LabVIEW VI in VSS. It requires LabVIEW Run-Time Environment (LV-RTE) or LabVIEW Development Environment (LV-DE).
AddScale.vi has three real input connections and one output. The signals at Input 1 and Input 2 are added then scaled by the value of the signal at input Gain. The result is passed to the output connector.
The LABVIEW block in VSS is configured to use AddScale.vi and it maps the parameter GAIN to the Gain connector of the VI and two input nodes to the other two input connectors. The output node is mapped to the output connector of the VI.
The variable "gain" is used to set the value of the GAIN parameter, and it can be tuned from VSS during simulation to see the real-time response of the output. This parameter determines the value of the slider "Gain" in LabVIEW. In LabVIEW, user can manually change the value of slider "Offset" and see its effect in VSS.
User can choose to use LV-RTE (faster run time but does not allow for debugging or modification of the VI), or LV-DE (slower but allows debugging and/or modification of the VI).
The VI used in this example was generated with LabVIEW 2012 32-bit. Hence, if LV-RTE is selected under LVMODE, LV-RTE 2012 32-bit should be installed.