Example Code

Automatically Create, Deploy, Read, Write and close a Shared Variable and Process

Code and Documents

Attachment

This program demonstrates how to programatically create a process, add a variable to the proces, read and write from the variable, close the variable connection, and then close the process.

Directions:

1) Open VI

2) Run VI

3) Observe that when data in is updated, data out will display the same value.

4) Verify that a new process and a new variable have been created by examining the distributed system manager.

5) Stop the Vi

Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors