Overview
This example shows how to script the Call Function Library Node which calls to the Windows OS.
Description
One function that takes a good amount of effort to script is the call library function node. In this example, I show all the parts necessary to script a Call Library Function node that makes a call to the Windows OS and returns the name of the computer.
Requirements:
- LabVIEW 2012( (or compatible)
Steps to Implement or Execute Code
- Select Tools»Options to display the Options Dialog box
- Select VI Server from the Category list
- Place a checkmark in the Show VI Scripting Functions, properties, and methods checkbox
- Click the OK button to apply the changes and close the Options dialog box
- Run the VI
- A new VI is created. This VI contains the Call Library Function Node that returns the computer name
- Run the VI
- Notice the output of the VI is correct.
**This document has been updated to meet the current required format for the NI Code Exchange.**