sift:tutorials:using_directory_watchers_in_the_gui
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sift:tutorials:using_directory_watchers_in_the_gui [2026/07/17 13:39] – [Editing an Existing Watcher] wikisysop | sift:tutorials:using_directory_watchers_in_the_gui [2026/07/17 19:52] (current) – [Launching the Background Instance] wikisysop | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - Visual3D to calculate the right and left ankle joint angles | - Visual3D to calculate the right and left ankle joint angles | ||
| - | - right heel strike to right heel strike for right stride cycles | + | - Right heel strike to right heel strike for right stride cycles |
| - | - left heel strike to left heel strike for left stride cycles | + | - Left heel strike to left heel strike for left stride cycles |
| - Sift PCA to summarize the major differences in curve shape | - Sift PCA to summarize the major differences in curve shape | ||
| - | - group-level Local Outlier Factor (LOF) to flag ankle cycles that are different from the other cycles on the same side | + | - Group-level Local Outlier Factor (LOF) to flag ankle cycles that are different from the other cycles on the same side |
| To begin, download and unzip this folder {{ : | To begin, download and unzip this folder {{ : | ||
| Line 23: | Line 23: | ||
| The script performs four steps: | The script performs four steps: | ||
| - | - opens the treadmill-running C3D | + | - Opens the treadmill-running C3D |
| - | - calculates | + | - Calculates |
| - | - creates | + | - Creates |
| - | - saves a CMZ into the '' | + | - Saves a CMZ into the '' |
| For a lower-body model, an ankle joint angle is calculated using the foot as the segment and the shank as the reference segment. The X component represents flexion and extension for the segment coordinate systems used in this example. See [[visual3d: | For a lower-body model, an ankle joint angle is calculated using the foot as the segment and the shank as the reference segment. The X component represents flexion and extension for the segment coordinate systems used in this example. See [[visual3d: | ||
| - | Before running, replace every occurrence of '' | + | Before running, replace every occurrence of **REPLACE** with the full path to the unzipped '' |
| For example: | For example: | ||
| Line 38: | Line 39: | ||
| </ | </ | ||
| - | Only the '' | + | Only the '' |
| < | < | ||
| Line 208: | Line 209: | ||
| ==== Sift Batch Script ==== | ==== Sift Batch Script ==== | ||
| - | The batch script does not need to be updated, the script gets a reference to its location itself (the %~dp0 you see in the script). | + | The BATCH script does not need to be updated, the script gets a reference to its location itself (the %~dp0 you see in the script). |
| There are a couple things to note about the script, the first line is ::SIFT, a .bat file will only be executed if this line is present, this prevents a unintended script from being executed by accident, you will also notice that the entire sift command is on one line. This is because they all need to be passed at once via a command line call and new line characters will execute everything preceding it and treat everything remaining as a brand new command to make this easier to manage you can enable wordwrap on your text editor of choice. | There are a couple things to note about the script, the first line is ::SIFT, a .bat file will only be executed if this line is present, this prevents a unintended script from being executed by accident, you will also notice that the entire sift command is on one line. This is because they all need to be passed at once via a command line call and new line characters will execute everything preceding it and treat everything remaining as a brand new command to make this easier to manage you can enable wordwrap on your text editor of choice. | ||
| Line 219: | Line 220: | ||
| The script performs the following: | The script performs the following: | ||
| - | - loads the CMZ library | + | - Loads the CMZ library |
| - | - loads and calculates the ankle-angle queries | + | - Loads and calculates the ankle-angle queries |
| - | - selects | + | - Selects |
| - | - creates | + | - Creates |
| - | - runs LOF separately within each signal group | + | - Runs LOF separately within each signal group |
| - | - automatically | + | - Automatically |
| - | - exports | + | - Exports |
| - | - saves the completed Sift project | + | - Saves the completed Sift project |
| ===== Opening the Directory Watchers Dialog ===== | ===== Opening the Directory Watchers Dialog ===== | ||
| Line 245: | Line 246: | ||
| </ | </ | ||
| - | {{.: | + | {{.: |
| When prompted to add the directory, browse to '' | When prompted to add the directory, browse to '' | ||
| Line 261: | Line 262: | ||
| The first watcher should look like this. | The first watcher should look like this. | ||
| - | {{.: | + | {{.: |
| When the C3D is copied into **Data**, the watcher will launch the Visual3D pipeline. | When the C3D is copied into **Data**, the watcher will launch the Visual3D pipeline. | ||
| Line 285: | Line 286: | ||
| | Delay | 1000 ms | | | Delay | 1000 ms | | ||
| - | {{.: | + | {{.: |
| The completed watcher should monitor '' | The completed watcher should monitor '' | ||
| Line 299: | Line 300: | ||
| In the '' | In the '' | ||
| - | {{.: | + | {{.: |
| A Sift icon should appear in the Windows system tray. | A Sift icon should appear in the Windows system tray. | ||
| - | The background instance | + | The background instance |
| - | Before continuing, close the normal Sift window if it is still open. The Sift batch script needs to launch its own processing instance, and only one normal Sift instance should be open at a time. | ||
| ==== Using the Watchers ==== | ==== Using the Watchers ==== | ||
| Line 353: | Line 353: | ||
| {{.: | {{.: | ||
| - | On the **Analyze** page, look at the workspace scores and LOF results. | + | On the **Analyse** page, look at the workspace scores and LOF results. |
| ==== Editing an Existing Watcher ==== | ==== Editing an Existing Watcher ==== | ||
| Line 361: | Line 361: | ||
| You can: | You can: | ||
| - | - change | + | - Change |
| - | - activate | + | - Activate |
| - | - enable | + | - Enable |
| - | - enable | + | - Enable |
| - | - change | + | - Change |
| - | - add or remove directories | + | - Add or remove directories |
| - | - add or remove scripts | + | - Add or remove scripts |
| Any changes made to the selected watcher are used the next time a relevant directory event occurs. | Any changes made to the selected watcher are used the next time a relevant directory event occurs. | ||
| - | ===== Removing a Watcher | + | ==== Removing a Watcher ==== |
| Select the watcher and use '' | Select the watcher and use '' | ||
| Line 383: | Line 383: | ||
| In this example, adding one C3D to the '' | In this example, adding one C3D to the '' | ||
| - | - calculated | + | - Calculated |
| - | - divided | + | - Divided |
| - | - ran PCA in Sift | + | - Ran PCA in Sift |
| - | - looked | + | - Looked |
| - | - exported | + | - Exported |
| - | - saved a Sift project | + | - Saved a Sift project |
| The same approach can be used to automate other workflows. | The same approach can be used to automate other workflows. | ||
sift/tutorials/using_directory_watchers_in_the_gui.1784295549.txt.gz · Last modified: by wikisysop
