Getting Started with DCFG on Your Existing Project

Add DCFG support to your project

Having a LabVIEW Project Opened (DCFG can work only on saved to disk Projects, it needs a valid Path to save and script a DCFG LabVIEW Class)

Go to LabVIEW menu Tools  DQMH Consortium  DCFG  Add DCFG Support…​

  1. Select Where to add DCFG

    1. DQMH Module

    2. Project

    3. Library

  2. Choose a Configuration Name, this name will be used as your Configuration Class name. If you leave it blank, it will be named DCFG Config.lvclass

  3. Add any additional Configuration View, by default DCFG will allways have 'Default' as a Configuration View.

  4. Choose the Configuration Item Position, if you leave 0, DCFG will take care of organizing the Configuration positions.

  5. Add the arguments you want for this configuration to the Configuration Parameters Window.

If you set the default values, these will be used as your default configuration.
  1. Change the Configuration Class Icon by clicking on the Edit Overlay button, this is an optional step.

    • Click the OK button when done, and watch the scripting do its magic.

DCFG Configuration Order 1

If you need to change the Configuration Item Position for your configuration, follow these steps:

  1. Open Init Config.vi block diagram

  2. Change the 'DCFG_Configuration Order' constant

DCFG Configuration Order 2
DCFG Configuration Order 3

You can also change the Configuration Item Position programmatically

  • Open and run the DQMH_DCFG API Tester

    1. On the Config Pages tab, click on the Get Config Order Values button

    2. Right-click on the Updated Name-Order Array and select "Copy Data"

    3. Right-click on the Name-Order Array to Change and select "Paste Data"

    4. Change the configuration order by editing the order numbers

    5. Click on the Set Config Order Values button

DCFG Configuration Order 4
  • Alternatively, you could make the order be a control and an input to your Init Config.vi and provide the order when you initialize the configurations.

Change Configuration View

Manage Presets

  1. Select the configuration values

  2. Click the Save Preset and choose a name

  3. Every Preset Saved will contain all the configuration values

    • How to enable Presets:

  4. After Adding DCFG Support to a module Main.vi Block diagram will be opened

  5. Create a True Constant and connect it to DCFG Framework:Start Module.vi as shown in the following image

Enable Presets
  1. Once you add this constant all the preset related buttons will be displayed in the configuration UI.

Presets