1. Project description
No description found (add content in project description)
2. DQMH® modules
This section describes DQMH® module responsibilities and relationships.
2.1. Preamble
A DQMH module is the main component of an architecture based on DQMH® framework. A DQMH module is used to implement a section of the application that has one responsibility.
DQMH® framework defines two different type of DQMH module.
Singleton:
A Singleton DQMH module can have only one instance running at any given time.
Cloneable:
A Cloneable DQMH module can have one or multiple instances running in parallel.
DQMH® framework defines two different ways to carry data throughout the application and with both other DQMH modules and non-DQMH based code.
Request events:
A request is a code that fires an event requesting the DQMH module to do something. Multiple locations in the code can send events to the DQMH module.
Request events are many-to-one.
Requests are usually named using imperative tense.
Broadcast events:
A broadcast is a code that fires an event broadcasting that the DQMH module did something. Multiple Event Structures can register to handle the Broadcast Events.
Broadcast Events are one-to-many.
Broadcasts are usually named using past tense or passive voice.
Default events:
By default all the DQMH ® Modules are shipped with some default events (Requests and Broadcasts). Here is the list of this events:
-
Start Module
-
Stop Module
-
Show Panel
-
Hide Panel
-
Show Diagram
-
Status Updated
-
Error Reported
-
Module Did Stop
-
Update Module Execution Status
-
Module Did Init
-
Get Module Execution Status
If you want to learn more about default DQMH ® Events see the documentaiton.
|
Note
|
Refer to the DQMH® framework official documentation to find more details on how the framework works |
The following section gives you details on the project architecture relying on this framework. It gives you an overview of the modules' interaction and detailed information on each module.
|
Note
|
If your module has a helper loop, it will be listed along with the events it processes. Helper loops can be categorized as either DQMH or Custom. To ensure your helper loop adheres to DQMH guidelines see the documentaiton. |
Graphs used in this section have the following legend:
Components:
Events:
|
Note
|
One arrow can represent one or more events between two components |
|
Note
|
Request and Request and wait for Reply are represented by only one arrow. If there is no Request and wait for Reply, Request representation is used. Otherwise Request and wait for Reply is used |
Start and Stop module callers:
2.2. Modules overview
This project contains 4 singleton modules and 0 cloneable module.
| Singleton | Cloneable |
|---|---|
This graph represents the links between all DQMH modules.
2.3. CML UI.lvlib
Type: Singleton
Responsibility: No description found (add content in DQMH module lvlib description)
2.3.1. Module relationship
| Request Name | Callers |
|---|---|
Get Module Execution Status |
|
Hide Panel |
|
Show Diagram |
|
Show Panel |
CML Main.vi |
| Broadcast Name | Listeners |
|---|---|
Error Reported |
CML Main.vi |
Module Did Init |
CML Main.vi |
Module Did Stop |
CML Main.vi |
Status Updated |
CML Main.vi |
Update Module Execution Status |
CML Main.vi |
| Module | Requests |
|---|---|
Acquisition.lvlib |
Calibrate DAQ.vi |
Logger.lvlib |
Get Module Execution Status.vi |
Settings Editor.lvlib |
Get Module Execution Status.vi |
| Module | Broadcasts |
|---|---|
Acquisition.lvlib |
Acquisition Started.vi |
Logger.lvlib |
Error Reported.vi |
Settings Editor.lvlib |
Error Reported.vi |
2.3.2. Event list
| Name | Type | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|---|
Start Module |
|
|
Launches the Module Main.vi. |
|
|
|
Stop Module |
|
|
Send the Stop request to the Module’s Main.vi. If Wait for Module to Stop? is TRUE, this VI will wait until the module main VI stops, and will timeout at the Timeout to Wait for Stop value. This value defaults to "-1", which means the VI will not timeout, and will always wait until the module main VI stops before completing execution. Note: The Timeout to Wait for Stop value is ignored if 'Wait for Module to Stop?' is set to FALSE. |
|
|
|
Show Panel |
|
|
Send the Show Panel request to the Module’s Main.vi. |
|
|
|
Hide Panel |
|
|
Send the Hide Panel request to the Module’s Main.vi. |
|
|
|
Get Module Execution Status |
|
|
Fire the Get Module Execution Status request. |
|
|
|
Show Diagram |
|
|
This VI tells the Module to show its block diagram to facilitate troubleshooting (add probes, breakpoints, highlight execution, etc). |
|
|
|
Module Did Init |
|
|
Send the Module Did Init event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Status Updated |
|
|
Send the Status Updated event to any VI registered to listen to events from the owning module. |
|
|
|
Error Reported |
|
|
Send the Error Reported event to any VI registered to listen to events from the owning module. |
|
|
|
Module Did Stop |
|
|
Send the Module Did Stop event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Update Module Execution Status |
|
|
Broadcast event to specify whether or not the module is running. |
|
|
|
Type:
→ Request |
→ Request and Wait for Reply |
→ Broadcast
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
2.3.3. Module Start/Stop calls
| Function | Callers |
|---|---|
Start Module |
CML Main.vi |
Stop Module |
CML Main.vi |
2.3.4. Module Helper Loops
| Name | Helper Loop Type | Events Handled |
|---|---|---|
No Subdiagram Label |
Custom |
No Event Structure Found |
2.3.5. Module custom errors
|
Tip
|
Custom errors are added to the module via vi named |
Module CML UI.lvlib use the following custom errors:
| Name | Code | Description |
|---|---|---|
Module Not Running |
403681 |
%s Module is not running. |
Module Not Stopped |
403682 |
The Stop Module VI for the %s module timed out while waiting for the module main VI to stop. The module main VI may still be running. |
Module Not Synced |
403683 |
%s Module was unable to synchronize events. |
Request and Wait for Reply Timeout |
403686 |
2.3.6. Module Constant VIs
| VI Name | Data Type | Value |
|---|---|---|
Module Name—constant.vi |
String |
CML UI |
Module Timeout—constant.vi |
I32 |
5000 |
2.3.7. Bookmarks
#DQMH_CodeNeeded
| Text | VI |
|---|---|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
#DQMH_CodeRecommended
| Text | VI |
|---|---|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
#DQMH_HowTo
| Text | VI |
|---|---|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
2.4. Acquisition.lvlib
Type: Singleton
Responsibility: No description found (add content in DQMH module lvlib description)
2.4.1. Module relationship
| Request Name | Callers |
|---|---|
Calibrate DAQ |
CML UI.lvlib:Main.vi |
Change Settings |
Acquisition.lvlib:Main.vi |
Get Module Execution Status |
|
Hide Panel |
|
Show Diagram |
|
Show Panel |
|
Start Acquiring |
CML UI.lvlib:Main.vi |
Stop Acquiring |
CML UI.lvlib:Main.vi |
Wakeup Helper Loop |
Acquisition.lvlib:Main.vi |
| Broadcast Name | Listeners |
|---|---|
Acquisition Started |
CML UI.lvlib:Main.vi |
Acquisition Stopped |
CML UI.lvlib:Main.vi |
Data Updated |
CML UI.lvlib:Main.vi |
Device Calibrated |
CML UI.lvlib:Main.vi |
Error Reported |
CML UI.lvlib:Main.vi |
Module Did Init |
CML UI.lvlib:Main.vi |
Module Did Stop |
|
Status Updated |
CML UI.lvlib:Main.vi |
Update Module Execution Status |
CML UI.lvlib:Main.vi |
| Module | Requests |
|---|---|
Acquisition.lvlib |
Change Settings.vi |
Logger.lvlib |
Log Data.vi |
Settings Editor.lvlib |
Get Module Execution Status.vi |
| Module | Broadcasts |
|---|---|
Settings Editor.lvlib |
Application Settings Updated.vi |
2.4.2. Event list
| Name | Type | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|---|
Start Module |
|
|
Launches the Module Main.vi. |
|
|
|
Stop Module |
|
|
Send the Stop request to the Module’s Main.vi. If Wait for Module to Stop? is TRUE, this VI will wait until the module main VI stops, and will timeout at the Timeout to Wait for Stop value. This value defaults to "-1", which means the VI will not timeout, and will always wait until the module main VI stops before completing execution. Note: The Timeout to Wait for Stop value is ignored if 'Wait for Module to Stop?' is set to FALSE. |
|
|
|
Show Panel |
|
|
Send the Show Panel request to the Module’s Main.vi. |
|
|
|
Hide Panel |
|
|
Send the Hide Panel request to the Module’s Main.vi. |
|
|
|
Get Module Execution Status |
|
|
Fire the Get Module Execution Status request. |
|
|
|
Show Diagram |
|
|
This VI tells the Module to show its block diagram to facilitate troubleshooting (add probes, breakpoints, highlight execution, etc). |
|
|
|
Stop Acquiring |
|
|
Requests the Acquisition Module to stop acquiring |
|
|
|
Calibrate DAQ |
|
|
Add calibration routine, and linear slope and offset to the acquisition helper loop. |
|
|
|
Start Acquiring |
|
|
Note: This VI was renamed by the DQMH Rename Event utility. Make sure the VI Description is updated to reflect the new event name, then delete this comment. Requests Acquisition Module to start acquiring. |
|
|
|
Module Did Init |
|
|
Send the Module Did Init event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Status Updated |
|
|
Send the Status Updated event to any VI registered to listen to events from the owning module. |
|
|
|
Error Reported |
|
|
Send the Error Reported event to any VI registered to listen to events from the owning module. |
|
|
|
Module Did Stop |
|
|
Send the Module Did Stop event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Update Module Execution Status |
|
|
Broadcast event to specify whether or not the module is running. |
|
|
|
Acquisition Started |
|
|
Broadcasts that the Acquisition Module started acquiring |
|
|
|
Acquisition Stopped |
|
|
Broadcasts that the Acquisition Module has stopped acquiring data. |
|
|
|
Data Updated |
|
|
Broadcasts the latest data acquired |
|
|
|
Device Calibrated |
|
|
Broadcasts that the Acquisition module calibrated the device. |
|
|
|
Wakeup Helper Loop |
|
|
This is a private request to wake up the Helper Loop and start acquiring. |
|
|
|
Change Settings |
|
|
Fire an event to change the hardware settings in the helper loop. This is a private request event that should only be fired from within the Acquisition Module. If this request was public, other modules could call it and the Settings Editor would not get the notification that the values changed. |
|
|
|
Type:
→ Request |
→ Request and Wait for Reply |
→ Broadcast
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
2.4.3. Module Start/Stop calls
| Function | Callers |
|---|---|
Start Module |
CML UI.lvlib:Main.vi |
Stop Module |
CML UI.lvlib:Main.vi |
2.4.4. Module Helper Loops
| Name | Helper Loop Type | Events Handled |
|---|---|---|
Helper Loop |
Custom |
Timeout Calibrate DAQ Change Settings Stop Module Wakeup Helper Loop Stop Acquiring |
2.4.5. Module custom errors
|
Tip
|
Custom errors are added to the module via vi named |
Module Acquisition.lvlib use the following custom errors:
| Name | Code | Description |
|---|---|---|
Module Not Running |
403681 |
%s Module is not running. |
Module Not Stopped |
403682 |
The Stop Module VI for the %s module timed out while waiting for the module main VI to stop. The module main VI may still be running. |
Module Not Synced |
403683 |
%s Module was unable to synchronize events. |
Request and Wait for Reply Timeout |
403686 |
2.4.6. Module Constant VIs
| VI Name | Data Type | Value |
|---|---|---|
Module Name—constant.vi |
String |
Acquisition |
Module Timeout—constant.vi |
I32 |
5000 |
2.4.7. Bookmarks
#DQMH_CodeNeeded
| Text | VI |
|---|---|
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to stop the acquisition. Some examples include: DAQmx Clear Task.vi - for closing the acquisition task for a DAQmx device. Close.vi - for closing the task for your particular Instrument Driver. |
Stop Acquisition.vi |
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
#DQMH_CodeNeeded - Place calls to the appropriate API to initialize the hardware references for your acquisition. Some examples include: DAQmx Task Name constant - for DAQmx tasks already configured in MAX. DAQmx Create Virtual Channel.vi - for programmatically creating a new DAQmx task. Initialize.vi - for initializing a particular Instrument Driver. Keep in mind that if you use diagram constants in this VI to specify your hardware resources you should modify Settings Dialog.vi to only display those values that you want your user to be able to modify through the dialog. |
Initialize Hardware References.vi |
#DQMH_CodeNeeded - This subVI generates simulated acquisition data. If you were to use this sample project with real hardware, this subVI could be removed. |
Generate Simulated Data.vi |
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to configure your acquisition. Some examples include: DAQmx Timing.vi - for changing the sample rate of a DAQmx task. DAQmx Trigger.vi - for creating a start trigger relative to a rising digital edge. Configure Measurement.vi - for setting the measurement mode for your particular Instrument Driver. Configure Autozero.vi - for setting autozeroing for your particular Instrument Driver. |
Configure Hardware.vi |
#DQMH_CodeNeeded - Place calls to the appropriate API to close the hardware references for your acquisition. Some examples include: DAQmx Stop Task.vi DAQmx Clear Task.vi |
Close Hardware References.vi |
#DQMH_CodeNeeded Update the state machine within the event structure with the specific implementation of your device’s calibration procedure. |
Calibration Routine State Machine.vi |
#DQMH_CodeNeeded - This is dummy data. Replace it with appropriate hardware calls. |
Acquire.vi |
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to acquire data. Some examples include: DAQmx Read.vi - for acquiring single or multi-channel data from a DAQmx device. Read.vi - for acquiring single-point or multi-point data from your particular Instrument Driver. |
Acquire.vi |
#DQMH_CodeRecommended
| Text | VI |
|---|---|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
#DQMH_HowTo
| Text | VI |
|---|---|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
#DQMH_HowTo Change Settings is a Private DQMH Request Event. The developer created the DQMH Event using the Tools>>DQMH Consortium>>DQMH>>Event>>Create New DQMH Event… and then moved the resulting VI to a Private Requests virtual folder. |
Main.vi |
2.5. Logger.lvlib
Type: Singleton
Responsibility: No description found (add content in DQMH module lvlib description)
2.5.1. Module relationship
| Request Name | Callers |
|---|---|
Get Module Execution Status |
|
Hide Panel |
|
Initialize File |
CML UI.lvlib:Main.vi |
Log Data |
Acquisition.lvlib:Main.vi |
Show Diagram |
|
Show Panel |
|
Stop Logging |
CML UI.lvlib:Main.vi |
| Broadcast Name | Listeners |
|---|---|
Error Reported |
CML UI.lvlib:Main.vi |
File Initialized |
|
Logging Stopped |
|
Module Did Init |
CML UI.lvlib:Main.vi |
Module Did Stop |
|
Status Updated |
CML UI.lvlib:Main.vi |
Update Module Execution Status |
CML UI.lvlib:Main.vi |
| Module | Requests |
|---|---|
Settings Editor.lvlib |
Get Module Execution Status.vi |
| Module | Broadcasts |
|---|---|
Settings Editor.lvlib |
Application Settings Updated.vi |
2.5.2. Event list
| Name | Type | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|---|
Start Module |
|
|
Launches the Module Main.vi. |
|
|
|
Stop Module |
|
|
Send the Stop request to the Module’s Main.vi. If Wait for Module to Stop? is TRUE, this VI will wait until the module main VI stops, and will timeout at the Timeout to Wait for Stop value. This value defaults to "-1", which means the VI will not timeout, and will always wait until the module main VI stops before completing execution. Note: The Timeout to Wait for Stop value is ignored if 'Wait for Module to Stop?' is set to FALSE. |
|
|
|
Show Panel |
|
|
Send the Show Panel request to the Module’s Main.vi. |
|
|
|
Hide Panel |
|
|
Send the Hide Panel request to the Module’s Main.vi. |
|
|
|
Get Module Execution Status |
|
|
Fire the Get Module Execution Status request. |
|
|
|
Show Diagram |
|
|
This VI tells the Module to show its block diagram to facilitate troubleshooting (add probes, breakpoints, highlight execution, etc). |
|
|
|
Initialize File |
|
|
Request the Logger to initialize the file and report when the Logger has initialized the file. |
|
|
|
Log Data |
|
|
Note: This VI was renamed by the DQMH Rename Event utility. Make sure the VI Description is updated to reflect the new event name, then delete this comment. Requests Logger module to log data to file |
|
|
|
Stop Logging |
|
|
Requests Logger module to stop logging and the module broadcasts when the logging has stopped. |
|
|
|
Module Did Init |
|
|
Send the Module Did Init event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Status Updated |
|
|
Send the Status Updated event to any VI registered to listen to events from the owning module. |
|
|
|
Error Reported |
|
|
Send the Error Reported event to any VI registered to listen to events from the owning module. |
|
|
|
Module Did Stop |
|
|
Send the Module Did Stop event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Update Module Execution Status |
|
|
Broadcast event to specify whether or not the module is running. |
|
|
|
Logging Stopped |
|
|
Requests Logger module to stop logging and the module broadcasts when the logging has stopped. |
|
|
|
File Initialized |
|
|
Request the Logger to initialize the file and report when the Logger has initialized the file. |
|
|
|
Type:
→ Request |
→ Request and Wait for Reply |
→ Broadcast
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
2.5.3. Module Start/Stop calls
| Function | Callers |
|---|---|
Start Module |
CML UI.lvlib:Main.vi |
Stop Module |
CML UI.lvlib:Main.vi |
2.5.4. Module Helper Loops
|
Note
|
No Helper Loops Found |
2.5.5. Module custom errors
|
Tip
|
Custom errors are added to the module via vi named |
Module Logger.lvlib use the following custom errors:
| Name | Code | Description |
|---|---|---|
Module Not Running |
403681 |
%s Module is not running. |
Module Not Stopped |
403682 |
The Stop Module VI for the %s module timed out while waiting for the module main VI to stop. The module main VI may still be running. |
Module Not Synced |
403683 |
%s Module was unable to synchronize events. |
Request and Wait for Reply Timeout |
403686 |
2.5.6. Module Constant VIs
| VI Name | Data Type | Value |
|---|---|---|
Module Name—constant.vi |
String |
Logger |
Module Timeout—constant.vi |
I32 |
5000 |
2.5.7. Bookmarks
#DQMH_CodeNeeded
| Text | VI |
|---|---|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
#DQMH_CodeRecommended
| Text | VI |
|---|---|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
#DQMH_CodeRecommended - This sample project uses the TDMS Write function to write data to a TDMS file. Other potential logging mechanisms include: Export Waveforms to Spreadsheet File.vi - To log data in a CSV file format. Write To Spreadsheet File.vi - Requires parsing the waveform data and converting it into an array of numeric or string values. |
Log Data to File.vi |
#DQMH_HowTo
| Text | VI |
|---|---|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
2.6. Settings Editor.lvlib
Type: Singleton
Responsibility: No description found (add content in DQMH module lvlib description)
2.6.1. Module relationship
| Request Name | Callers |
|---|---|
Get Module Execution Status |
|
Hide Panel |
|
Show Diagram |
|
Show Panel |
CML UI.lvlib:Main.vi |
Update Application Settings |
Acquisition.lvlib:Main.vi |
| Broadcast Name | Listeners |
|---|---|
Application Settings Updated |
Acquisition.lvlib:Main.vi |
Error Reported |
CML UI.lvlib:Main.vi |
Module Did Init |
CML UI.lvlib:Main.vi |
Module Did Stop |
|
Status Updated |
CML UI.lvlib:Main.vi |
Update Module Execution Status |
CML UI.lvlib:Main.vi |
| Module | Requests |
|---|---|
— |
— |
| Module | Broadcasts |
|---|---|
— |
— |
2.6.2. Event list
| Name | Type | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|---|
Start Module |
|
|
Launches the Module Main.vi. |
|
|
|
Stop Module |
|
|
Send the Stop request to the Module’s Main.vi. If Wait for Module to Stop? is TRUE, this VI will wait until the module main VI stops, and will timeout at the Timeout to Wait for Stop value. This value defaults to "-1", which means the VI will not timeout, and will always wait until the module main VI stops before completing execution. Note: The Timeout to Wait for Stop value is ignored if 'Wait for Module to Stop?' is set to FALSE. |
|
|
|
Show Panel |
|
|
Send the Show Panel request to the Module’s Main.vi. |
|
|
|
Hide Panel |
|
|
Send the Hide Panel request to the Module’s Main.vi. |
|
|
|
Get Module Execution Status |
|
|
Fire the Get Module Execution Status request. |
|
|
|
Show Diagram |
|
|
This VI tells the Module to show its block diagram to facilitate troubleshooting (add probes, breakpoints, highlight execution, etc). |
|
|
|
Update Application Settings |
|
|
Request Settings Editor to return the latest settings. The Settings Editor can send the applications settings as a reply or via broadcast. |
|
|
|
Module Did Init |
|
|
Send the Module Did Init event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Status Updated |
|
|
Send the Status Updated event to any VI registered to listen to events from the owning module. |
|
|
|
Error Reported |
|
|
Send the Error Reported event to any VI registered to listen to events from the owning module. |
|
|
|
Module Did Stop |
|
|
Send the Module Did Stop event to any VI registered to listen to this module’s broadcast events. |
|
|
|
Update Module Execution Status |
|
|
Broadcast event to specify whether or not the module is running. |
|
|
|
Application Settings Updated |
|
|
Request Settings Editor to return the latest settings. The Settings Editor can send the applications settings as a reply or via broadcast. |
|
|
|
Type:
→ Request |
→ Request and Wait for Reply |
→ Broadcast
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
2.6.3. Module Start/Stop calls
| Function | Callers |
|---|---|
Start Module |
CML UI.lvlib:Main.vi |
Stop Module |
CML UI.lvlib:Main.vi |
2.6.4. Module Helper Loops
|
Note
|
No Helper Loops Found |
2.6.5. Module custom errors
|
Tip
|
Custom errors are added to the module via vi named |
Module Settings Editor.lvlib use the following custom errors:
| Name | Code | Description |
|---|---|---|
Module Not Running |
403681 |
%s Module is not running. |
Module Not Stopped |
403682 |
The Stop Module VI for the %s module timed out while waiting for the module main VI to stop. The module main VI may still be running. |
Module Not Synced |
403683 |
%s Module was unable to synchronize events. |
Request and Wait for Reply Timeout |
403686 |
2.6.6. Module Constant VIs
| VI Name | Data Type | Value |
|---|---|---|
Module Name—constant.vi |
String |
Settings Editor |
Module Timeout—constant.vi |
I32 |
5000 |
2.6.7. Bookmarks
#DQMH_CodeNeeded
| Text | VI |
|---|---|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
#DQMH_CodeRecommended
| Text | VI |
|---|---|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
#DQMH_CodeRecommended - Specify a default logging location that will be used if a configuration XML file is not found. |
Default Settings.vi |
#DQMH_HowTo
| Text | VI |
|---|---|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
3. Libraries
This section describes the libraries contained in the project.
3.1. CML Shared.lvlib
Responsibility: No description found (add content in lvlib description)
Version: 1.0.0.0
3.1.1. Functions
|
Note
|
No functions found |
3.1.2. Library Constant VIs
|
Note
|
No Constant VIs Found |
3.2. Launcher Support.lvlib
Responsibility: No description found (add content in lvlib description)
Version: 1.0.0.0
3.2.1. Functions
| Name | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|
Determine if Running in Debug Mode |
|
The launcher VI is meant to be run as a headless launcher for the module main VI. The launcher VI can be used as a debugging tool. This VI determines if the launcher VI is running as a debugger by parsing the command line arguments or checking if the VI is running in development mode and sets the Launcher VI properties accordingly. |
|
|
|
Pre-Build Action |
|
This Pre-Build Action VI sets the Debug mode to false to ensure the top level VI has the headless properties at build time. |
|
|
|
Set VI Properties for Debugging Mode |
|
This VI sets the properties of the VI Launcher to either headless or debugging mode. |
|
|
|
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
3.2.2. Library Constant VIs
|
Note
|
No Constant VIs Found |
3.2.3. Bookmarks
#DQMH_Build_Final_EXE
| Text | VI |
|---|---|
#DQMH_Build_Final_EXE This Pre-Build Action VI sets the Debug mode to false to ensure the top level VI has the headless properties at build time. |
Pre-Build Action.vi |
4. Classes
This section describes the classes contained in the project.
4.1. Classes overview
This project contains 1 classe and 0 interface.
| Classes | Interfaces |
|---|---|
4.2. Placeholder.lvclass
Responsibility: No description found (add content in lvclass description)
Version: 1.0.0.0
4.2.1. Methods
| Name | Connector pane | Description | S. | R. | I. |
|---|---|---|---|---|---|
Test |
|
Use this function to test the distance of the object. |
|
|
|
Scope:
→ Protected |
→ Community
Reentrancy:
→ Preallocated reentrancy |
→ Shared reentrancy
Inlining:
→ Inlined
4.2.2. Class Constant VIs
|
Note
|
No Constant VIs Found |
5. Custom errors
|
Tip
|
Custom errors are added via vi named |
| Name | Code | Description | Owned by |
|---|---|---|---|
Module Not Running |
403681 |
%s Module is not running. |
CML UI.lvlib |
Module Not Stopped |
403682 |
The Stop Module VI for the %s module timed out while waiting for the module main VI to stop. The module main VI may still be running. |
CML UI.lvlib |
Module Not Synced |
403683 |
%s Module was unable to synchronize events. |
CML UI.lvlib |
Request and Wait for Reply Timeout |
403686 |
CML UI.lvlib |
6. Bookmarks
6.1. #DQMH_Build_Final_EXE
| Text | VI | Owned by |
|---|---|---|
#DQMH_Build_Final_EXE This Pre-Build Action VI sets the Debug mode to false to ensure the top level VI has the headless properties at build time. |
Pre-Build Action.vi |
|
#DQMH_Build_Final_EXE This VI is meant to be run as a headless launcher for the module main VI. This VI can also be used as a debugging tool. The build specification for this project includes a call to Launcher Support.lvlib:Pre-Build Action.vi that ensures this VI is saved as a headless VI before building the executable. This is the same as the programmer going to VI Properties > Window Appearance > Customize and making the following changes: - Window has title bar: FALSE - Show menu bar: FALSE - Show toolbar when running: FALSE - Window runs transparently: TRUE, 100% - Allow user to minimize window unchecked (otherwise the window shows on the taskbar when the exe is running) |
CML Main.vi |
6.2. #DQMH_CodeNeeded
| Text | VI | Owned by |
|---|---|---|
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to stop the acquisition. Some examples include: DAQmx Clear Task.vi - for closing the acquisition task for a DAQmx device. Close.vi - for closing the task for your particular Instrument Driver. |
Stop Acquisition.vi |
|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
|
#DQMH_CodeNeeded - If you add controls to the connector pane of Main.vi in order to pass in values when starting the module, drag the Main.vi for this DQMH module onto this constant to update the connector pane of the Start on Asynchronous Call function. |
Start Module.vi |
|
#DQMH_CodeNeeded - Place calls to the appropriate API to initialize the hardware references for your acquisition. Some examples include: DAQmx Task Name constant - for DAQmx tasks already configured in MAX. DAQmx Create Virtual Channel.vi - for programmatically creating a new DAQmx task. Initialize.vi - for initializing a particular Instrument Driver. Keep in mind that if you use diagram constants in this VI to specify your hardware resources you should modify Settings Dialog.vi to only display those values that you want your user to be able to modify through the dialog. |
Initialize Hardware References.vi |
|
#DQMH_CodeNeeded - This subVI generates simulated acquisition data. If you were to use this sample project with real hardware, this subVI could be removed. |
Generate Simulated Data.vi |
|
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to configure your acquisition. Some examples include: DAQmx Timing.vi - for changing the sample rate of a DAQmx task. DAQmx Trigger.vi - for creating a start trigger relative to a rising digital edge. Configure Measurement.vi - for setting the measurement mode for your particular Instrument Driver. Configure Autozero.vi - for setting autozeroing for your particular Instrument Driver. |
Configure Hardware.vi |
|
#DQMH_CodeNeeded - Place calls to the appropriate API to close the hardware references for your acquisition. Some examples include: DAQmx Stop Task.vi DAQmx Clear Task.vi |
Close Hardware References.vi |
|
#DQMH_CodeNeeded Update the state machine within the event structure with the specific implementation of your device’s calibration procedure. |
Calibration Routine State Machine.vi |
|
#DQMH_CodeNeeded - This is dummy data. Replace it with appropriate hardware calls. |
Acquire.vi |
|
#DQMH_CodeNeeded - Place calls to the appropriate hardware API to acquire data. Some examples include: DAQmx Read.vi - for acquiring single or multi-channel data from a DAQmx device. Read.vi - for acquiring single-point or multi-point data from your particular Instrument Driver. |
Acquire.vi |
6.3. #DQMH_CodeRecommended
| Text | VI | Owned by |
|---|---|---|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
|
#DQMH_CodeRecommended - If you rename your module, update the constant value above. |
Module Name—constant.vi |
|
#DQMH_CodeRecommended - This sample project uses the TDMS Write function to write data to a TDMS file. Other potential logging mechanisms include: Export Waveforms to Spreadsheet File.vi - To log data in a CSV file format. Write To Spreadsheet File.vi - Requires parsing the waveform data and converting it into an array of numeric or string values. |
Log Data to File.vi |
|
#DQMH_CodeRecommended - Specify a default logging location that will be used if a configuration XML file is not found. |
Default Settings.vi |
6.4. #DQMH_HowTo
| Text | VI | Owned by |
|---|---|---|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
|
#DQMH_HowTo This is the top-level VI of a DQMH Singleton module. See the following video for a walkthrough of this VI’s functionality: https://bit.ly/DQMHMainWalkthrough |
Main.vi |
|
#DQMH_HowTo Change Settings is a Private DQMH Request Event. The developer created the DQMH Event using the Tools>>DQMH Consortium>>DQMH>>Event>>Create New DQMH Event… and then moved the resulting VI to a Private Requests virtual folder. |
Main.vi |
7. Legal Information
7.1. Document creation
This document has been generated using the following tools.
7.1.1. Antidoc
Project website: Antidoc
Maintainer website: Wovalab
BSD 3-Clause License
Copyright © 2019-2025, Wovalab, All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7.1.2. Asciidoc for LabVIEW™
Project website: Asciidoc toolkit
Maintainer website: Wovalab
BSD 3-Clause License
Copyright © 2019-2025, Wovalab, All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7.1.3. Graph Builder
Project website: Graph Builder
BSD 3-Clause License
Copyright © 2020, Cyril GAMBINI All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7.1.4. classy Diagram Viewer
Project website: classy Diagram Viewer
BSD 3-Clause License
Copyright © 2021, Tatiana Boyé All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
-
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7.2. Product used in the project
The documented project has been developed with the following products.
7.2.1. DQMH®
Copyright © 2021 DQMH® Consortium, LLC. All Rights Reserved.
Find more details on DQMH® Consortium website
































































