kb:labview-frameworks:dqmh:starting-modules
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kb:labview-frameworks:dqmh:starting-modules [2025/01/21 17:48] – [When to start] joerg.hampel | kb:labview-frameworks:dqmh:starting-modules [2026/07/13 16:15] (current) – [When to start] joerg.hampel | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| * By using the module' | * By using the module' | ||
| - | * The module is not at the top level of the execution as it is being started by another VI (which might or might not be a DQMH module itself). Usually, the module being started | + | * The module is not at the top level of the execution as it is being started by another VI which might or might not be a DQMH module itself. |
| - | //This page discusses | + | //The following sections discuss |
| ---- | ---- | ||
| Line 50: | Line 50: | ||
| == 2. Continue to MHL == | == 2. Continue to MHL == | ||
| - | * '' | + | * '' |
| == 3. Sync with Caller == | == 3. Sync with Caller == | ||
| Line 163: | Line 163: | ||
| ===== Starting Child Modules ===== | ===== Starting Child Modules ===== | ||
| - | Make sure to also browse our [[kb: | + | This section describes ways of starting child modules. It lists different options and explains shortcomings/ |
| + | |||
| + | - From a Simple VI | ||
| + | - At Module Start | ||
| + | - In the EHL | ||
| + | - In the MHL, forking the event reference wire | ||
| + | - In the MHL, using a private request | ||
| + | |||
| + | <WRAP center round alert 100%> | ||
| + | At HSE, //the only allowed way// is **[[# | ||
| + | </ | ||
| + | |||
| ==== 1. From a Simple VI ===== | ==== 1. From a Simple VI ===== | ||
| Line 204: | Line 216: | ||
| * Forking the registration reference wire so we can update the event registration of the EHL in the MHL | * Forking the registration reference wire so we can update the event registration of the EHL in the MHL | ||
| * <color /# | * <color /# | ||
| + | * See the [[kb: | ||
| <WRAP center round box 100%> | <WRAP center round box 100%> | ||
| Line 223: | Line 236: | ||
| ---- | ---- | ||
| - | ===== When to start ===== | + | ===== Startup Parameters |
| - | The concept of placing the code for starting | + | You can pass in parameters directly when starting a DQMH module. This is done by adding controls to the connector pane of '' |
| - | * HSE projects usually feature a [[code:dqmh:state-machine|State Machine]] that automates sequential actions inside our modules. | + | {{: |
| - | * Our [[code:dqmh:hse-application-template|HSE Application Template]] calls the "Configure" | + | There are two distinct results this approach allows for that cannot be reached otherwise: |
| + | |||
| + | | ||
| + | | ||
| + | |||
| + | The second argument is not a strong one, as a user can still provide a "wrong" | ||
| + | |||
| + | <WRAP center round help 100%> | ||
| + | HSE's rule of thumb is to always pass parameters via requests unless there is a strong argument for hard-wiring them like this. We feel it's safer to go with the standard way of doing things (ie requests) as this will make it easier for others to read the code. Also, passing parameters via request gives control over when to send or resend that data. | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== When to start ===== | ||
| + | |||
| + | The concept of placing the code for starting modules inside EHL/MHL and having | ||
| + | |||
| + | <WRAP left round help 100%> | ||
| + | See **[[kb: | ||
| + | </ | ||
| ---- | ---- | ||
kb/labview-frameworks/dqmh/starting-modules.1737481723.txt.gz · Last modified: 2025/01/21 17:48 by joerg.hampel