DIAdem Help

Command: LaunchLabVIEW

  • Updated2024-09-12
  • 2 minute(s) read

Display all  Hide all

Command: LaunchLabVIEW

Starts the LabVIEW program and opens a VI.

Call LaunchLabVIEW([LVTemplateVI])

Input Parameters

[LVTemplateVI] Specifies the VI that LabVIEW opens when you start LabVIEW from DIAdem.
Note  If you click the LabVIEW button in the DIAdem panel bar, DIAdem executes the LaunchLabVIEW command.

If the IsAvailLabVIEW variable is TRUE, a LabVIEW version is installed on your computer. The LabVIEWPath variable contains the program path of the installed LabVIEW version. You use the LVTemplateVI variable to specify the VI that LabVIEW opens when it launches in DIAdem. Use the LVTemplatePath variable to specify the path of the VI. You must specify the path in relation to the LabVIEW path and you must end the path with a backslash\.

Example

The following example checks whether LabVIEW is installed and starts the About.vi VI.

VBScriptPython

 

If IsAvailLabVIEW Then
  LVTemplateVI = "About.vit"
  LVTemplatePath = "Templates\"
  Call LaunchLabVIEW()
Else
  Call MsgBoxDisp("LabVIEW is not installed.")
End If

Related Topics

Variable: IsAvailLabVIEW | Variable: LabVIEWPath | Variable: LVTemplatePath | Variable: LVTemplateVI