visual3d:documentation:pipeline:pipeline_overview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:pipeline_overview [2024/07/17 15:10] – sgranger | visual3d:documentation:pipeline:pipeline_overview [2024/10/30 14:19] (current) – Cleaned up page as part of review and added internal links. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Pipeline_Overview ====== | + | ===== Pipeline Overview |
- | ==== Overview ==== | + | The Pipeline is a set of Visual3D commands that are processed in sequence. The Pipeline processor provides access to the core of Visual3D functionality through commands with each of Visual3D' |
- | + | ||
- | **The Pipeline** is a set of Visual3D commands that are processed in sequence. | + | |
**Note:** The pipeline is a **COMMAND** language, not a **SCRIPTING language**. | **Note:** The pipeline is a **COMMAND** language, not a **SCRIPTING language**. | ||
- | The Pipeline processor provides access to the core of Visual3D functionality through commands. Each function is represented by a command. | + | The Pipeline is typically used to automate processing steps. |
- | + | ||
- | The Pipeline | + | |
- | + | ||
- | The pipeline processor (or any text processor) can be used to create the pipeline. Any pipeline command that can be run interactively through the pipeline processor may be saved to a text command file. This file may be reloaded later, or combined with other command files to build a more complex pipeline. The pipeline processor can be launched from the Visual3D tool bar or from the Pipeline menu. | + | |
{{: | {{: | ||
- | In special cases, C-Motion creates custom pipeline commands | + | A common use case for the Visual3D Pipeline is to define the processing steps for a given experimental data analysis protocol. This allows, for example, the director of the laboratory |
- | A detailed **tutorial** | + | If this is your first introduction |
==== Pipeline Commands ==== | ==== Pipeline Commands ==== | ||
- | Pipeline commands are divided into various categories: File, Signal, Event, etc. Commands under these folders are added to the pipeline by expanding the folder for a category, and selecting the function to be added by clicking the " | + | Pipeline commands are divided into various categories: File, Signal, Event, etc. Commands under these folders are added to the pipeline by expanding the folder for a category, and selecting the function to be added by clicking the " |
- | + | ||
- | A pipeline can be used to define the processing steps for a given experimental data analysis protocol. This allows, for example, the director of the laboratory to control the processing that is done by a member of the laboratory. This may be essential for some experimental studies that require that all of the data analysis be performed consistently. | + | |
- | + | ||
- | Visual3D plug ins integrate seamlessly into Visual3D and are accessed through the pipeline processor. The Pipeline can be saved to disk as an ASCII file ([[# | + | |
- | + | ||
- | For details of specific commands that can be used through the Visual3D pipeline, see: **[[Visual3D: | + | |
=== Pipeline Commands: Active Files === | === Pipeline Commands: Active Files === | ||
- | Pipeline commands usually process the "Active Files"; e.g. those files active in the Visual3D Workspace. If only one file is selected in the file selection box, the pipeline, when executed, will perform actions only on the data from that file. If ALL_FILES is selected, the script will perform actions on every file individually, | + | Pipeline commands usually process the [[Visual3D: |
=== Pipeline Commands: Syntax === | === Pipeline Commands: Syntax === | ||
Line 46: | Line 34: | ||
</ | </ | ||
- | **Note:** that each parameter begins with a slash and that the command | + | ^Special Character ^ Meaning ^ |
+ | | / | Each parameter begins with a forward | ||
+ | | ; | The semi-colon character terminates a command. | | ||
+ | | ! | The exclamation point indicates | ||
+ | | + | The plus sign is a delimeter separating entries. For example, 1+2 indicates that the variable has two values (1 and 2). | | ||
+ | | & | The ampersand indicates a concatenation. For example, this& | ||
- | The " | + | If the " |
To pass more than one set of parameters to the command, list the values of each parameter, separated by " | To pass more than one set of parameters to the command, list the values of each parameter, separated by " | ||
- | |||
- | Optional parameter are commented out - thus they start with an exclamation mark. When a command is first added to the pipeline the default values are displayed on the line, so that the user is aware of the default values. | ||
- | |||
- | === Pipeline Commands: Special Command Characters === | ||
- | |||
- | The pipeline commands reserve 4 special characters | ||
- | |||
- | * **!** - if this is the first character of a line, the line is considered a comment. If the ! is at the beginning of a variable name, the default value of the variable is used | ||
- | * **/** - indicates a command variable | ||
- | * **+** - is a delimeter separating entries. For example, 1+2 indicates that the variable as two values (1 and 2). | ||
- | * **&** - indicates a concatenation. For example, this& | ||
=== Pipeline Commands: Specifying Signals in a Command === | === Pipeline Commands: Specifying Signals in a Command === | ||
- | Signals in Visual3D must be identified by 3 components | + | Signals in Visual3D must be identified by 3 names, according to that signal' |
- | + | - **Signal_Type - Target, Analog, etc.** | |
- | - **Signal_Type - Target, Analog, etc** | + | - **Signal_Folder - Original, Processed, etc.** |
- **Signal_Name - Signal Name** | - **Signal_Name - Signal Name** | ||
- | - **Signal_Folder - The specific folder** | ||
- | |||
- | Signals can be represented in two different ways depending on the command. | ||
- | Many commands contain | + | Signals can be explicitly represented by the following three parameters: |
< | < | ||
Line 81: | Line 60: | ||
</ | </ | ||
- | These commands allow the user to import the checked | + | If only the signal type is specified then all signals |
- | == Implicit Behaviors == | + | < |
- | + | Lowpass_Filter | |
- | If only the signal type is specified. All signals of that type (and the default folder) are implicitly selected for use in the command. | + | |
- | + | ||
- | For example: to apply a lowpass filter to all TARGETS. This is accomplished by specifying the SIGNAL_TYPE and SIGNAL_FOLDER but leaving SIGNAL_NAMES empty. | + | |
- | + | ||
- | **Lowpass_Filter** | + | |
/ | / | ||
/ | / | ||
Line 101: | Line 75: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | For legacy support (e.g. Visual3D version 1.0), if the SIGNAL_FOLDER is empty it defaults to ORIGINAL. In other words | + | </ |
- | / | + | Some commands act on signals (Target, Analog, etc). You can select a signal name for the command |
- | is equivalent | + | |
- | / | + | |
- | == Entering | + | |
- | Some commands act on signals (Target, Analog, etc). You can select a signal name for the command to work on by checking the signals in the data tree (**Signal and Event** processing mode) and pressing the **Import Signals from Data Tree** button. This will add the signal information (Type, | + | Alternatively, for some commands signals are represented using the pipeline parameter syntax |
- | + | ||
- | Many of the commands that act on signals will not show the signals in the dialog. This can be a bit of an annoyance when there are only a few signals selected, but often commands contain so many signals that the list box in the dialog will become meaningless because of all the signals. | + | |
- | + | ||
- | To make it easier to enter the signal types, names, and folders into a command, there is a button to add all " | + | |
- | + | ||
- | === Pipeline Commands: Expressions === | + | |
- | + | ||
- | For some commands, signals are represented using the a pipeline parameter syntax. This type of syntax is used in the evaluate_expression | + | |
+ | < | ||
TARGET:: | TARGET:: | ||
- | More details on Expressions and evaluate_expression can be found here: **[[Visual3D: | + | </ |
==== Pipeline Parameters ==== | ==== Pipeline Parameters ==== | ||
- | An important feature of the pipeline is the ability to create and use Pipeline Parameters. A **PIPELINE PARAMETER** | + | An important feature of the pipeline is the ability to create and use [[Visual3D: |
- | + | ||
- | In one sense it is similar to specifying a global variable, such as body weight, that could be used in computations. It is actually much more flexible than that in the pipeline. The Visual3D | + | |
- | More details on naming and using parameters | + | In one sense it is similar to specifying a global variable, such as body weight, that could be used in computations. Within the Visual3D pipeline, however, it is actually much more flexible since pipeline commands permit multiple entries on a single line. Since the entire line can be represented as a string, a single |
- | === Editing Pipeline | + | ==== Editing Pipeline |
- | Parameters in pipeline | + | Pipeline |
- Using the built-in text editor (select the **TEXT** Button) | - Using the built-in text editor (select the **TEXT** Button) | ||
- Using a dialog (select the **EDIT button**). Most, but not all Visual3D commands have an edit dialog. If no dialog exists, then the text editor appears. | - Using a dialog (select the **EDIT button**). Most, but not all Visual3D commands have an edit dialog. If no dialog exists, then the text editor appears. | ||
- | - Using an independent | + | - Using an independent |
==== Pipeline Control ==== | ==== Pipeline Control ==== | ||
Line 142: | Line 104: | ||
=== RECALC Pipeline === | === RECALC Pipeline === | ||
- | The RECALC button updates the Visual3D Workspace by performing the following: | + | The [[Visual3D: |
- If "use processed analog" | - If "use processed analog" | ||
Line 155: | Line 117: | ||
- Update the display dialogs for any new data | - Update the display dialogs for any new data | ||
- Recompute the Report graphs | - Recompute the Report graphs | ||
- | |||
- | More details on RECALC in the Visual3D workspace and pipelines can be found here: **[[Visual3D: | ||
=== Pipeline Favorites === | === Pipeline Favorites === | ||
- | Pipeline Favorites | + | The [[Visual3D: |
=== Launching Visual3D & Pipeline Externally === | === Launching Visual3D & Pipeline Externally === | ||
- | Launching | + | Visual3D |
If you have a DOS PATH set to the Visual3D directory you can type | If you have a DOS PATH set to the Visual3D directory you can type | ||
- | **Visual3D.exe** | + | < |
+ | Visual3D.exe | ||
+ | </ | ||
If not, you must specify the full path to Visual3D. | If not, you must specify the full path to Visual3D. | ||
- | **c:\Program Files\Visual3D\Visual3D.exe** | + | < |
+ | c:\Program Files\Visual3D\Visual3D.exe | ||
+ | </ | ||
It is possible to have a pipeline executed immediately on launching Visual3D using the following syntax. | It is possible to have a pipeline executed immediately on launching Visual3D using the following syntax. | ||
- | **Visual3D.exe /s c: | + | < |
+ | Visual3D.exe /s c: | ||
+ | </ | ||
Note that the full path to the pipeline file is required unless the DOS PATH to this folder is specified. | Note that the full path to the pipeline file is required unless the DOS PATH to this folder is specified. | ||
Line 182: | Line 148: | ||
==== Creating a Pipeline ==== | ==== Creating a Pipeline ==== | ||
- | === Pipeline v3s File === | + | The .v3s file is an ASCII file that can be saved to disk and can be edited with any common word processing program such as [[visual3d: |
- | + | ||
- | The .v3s file is an ASCII file that can be saved to disk and can be edited with any common word processing program such as [[Notepad%2B%2B|Notepad++]]. When Visual3D loads the .v3s file it parses this ASCII file into the individual commands that are displayed in the pipeline dialog. | + | |
- | + | ||
- | Many of the topics in the wiki pages contain pipelines or snippets of pipelines, with a note saying that the text can be copied and pasted into a file. | + | |
- | For example, | + | Many of the pages in this wiki pages contain pipelines or snippets of pipelines, with a note saying that the text can be copied and pasted into a file. For example, |
< | < | ||
Line 228: | Line 190: | ||
- Save the Notepad file as TestPipeline.v3s | - Save the Notepad file as TestPipeline.v3s | ||
- This command can now be opened in the Visual3D pipeline dialog | - This command can now be opened in the Visual3D pipeline dialog | ||
- | |||
- | \\ | ||
- | |||
==== Pipeline Examples ==== | ==== Pipeline Examples ==== | ||
- | See the pipeline examples page for a collection of pipeline processing examples, found here: [[Visual3D: | + | See the [[Visual3D: |
- | + | ||
- | + |
visual3d/documentation/pipeline/pipeline_overview.1721229045.txt.gz · Last modified: 2024/07/17 15:10 by sgranger