Example Code

Adding array compatibility to NI_Database_API.lvlib using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI demonstrates the way to add array compatibility to NI Database API.lvlib


Description
Here is a brief description of the example:

The author has changed 2 vi's to allow an array to be written to a database, in addition to the cluster. I've duplicated case for "Cluster" to handle "Array" in DB Tools Parser.vi, and I've added outside brackets to DB Tools Build Insert Query.vi to allow empty data cells to be treated as valid.

 

Requirements

  1. LabVIEW 2015 (or compatible)


Steps to Implement or Execute Code

  1. Open NI Database API.lvlib; DB Tools Parser.vi and DB Tools Build Insert Query.vi
  2. According the related function, select different VI

 

Additional Information or References

VI Snippet

DB Tools Parser:

DB Tools Parser 2015 NIverified.png

DB Tools Build Insert Query:

DB Tools Build Insert Query 2015 NIVerified.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

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