Initializing the Application Software

NI InsightCM™ SDK 3.3 Help

Edition Date: December 2018

Part Number: 375191F-01

»View Product Info
Download Help (Windows Only)

Prior to starting the processes that run continuously on the device, the top-level VI that you develop must set up the infrastructure features and shared resources on which processes rely. The top-level VI in the NI InsightCM SDK reference code performs these tasks for NI-developed processes. However, you must implement code to initialize processes you develop.

What to Use

  • Main VI from the SDK reference code
  • Create Listener VIs from project libraries
  • Dataflow VIs

What to Do

Create the following block diagram within the Main VI to initialize any processes you create. Customize the gray section for your unique programming goals.

Prepare Qbus to handle messages for each process that runs in the top-level VI. This NI-developed subVI creates queues that accomplish the following tasks:
  • Storing messages for each process
  • Setting the NI-developed processes that make up the Dataflow Script
  • Creating other global data structures that processes read and write
Note  To avoid conflicts when migrating code to future versions of the SDK, NI recommends you do not edit the Initialize VI.
For each process you create, add the Create Listener VI from the project library (.lvlib) file that contains all the files related to the process. This VI prepares Qbus to handle messages for a specific process.
Set the order of post-acquisition processes that will transfer data sets between themselves. This is known as the Dataflow Script, and is useful for coupling processes so they operate on each data set in a specific order.


  • Convert your custom initialization code to a subVI to save space and simplify future updates to this code.
  • Examine the Initialize VI to learn about the tasks this NI-developed subVI performs.

Related Information

Developing the Top-Level VI in Application Software

Setting the Processes in the Dataflow Script


Not Helpful