Example Code

Read/Write to a Database from different VIs on a single PC using a Functional Global Variable

Code and Documents

Attachment

Download All

Example that shows how a Functional Global Variable can be used to store the information of a Database connection and execute Read, Write and Close operations from various VIs on the same PC without generating errors due to the connection to the same DB.

DBReadCode.png

Francisco Arellano

National Instruments Mexico
Field Systems Engineer - Energy Segment
www.ni.com/soporte

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

Contributors