sift:tutorials:openbiomechanics_project:impact_shooting_arm_mechanics_free_throw_accuracy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sift:tutorials:openbiomechanics_project:impact_shooting_arm_mechanics_free_throw_accuracy [2025/09/16 15:39] sgrangersift:tutorials:openbiomechanics_project:impact_shooting_arm_mechanics_free_throw_accuracy [2025/09/17 15:02] (current) wikisysop
Line 282: Line 282:
   * Compute_Model_Based_Data   * Compute_Model_Based_Data
   * Compute_Model_Based_Data   * Compute_Model_Based_Data
 +
 +Splitting the pipeline commands into 3 separate files makes the script easier to follow and simplifies future edits and/or debugging.
  
 ====Using Sift for Statistical Analysis and Data Visualization==== ====Using Sift for Statistical Analysis and Data Visualization====
Line 424: Line 426:
 {{:kmeans_help.png?nolink&600|}} {{:kmeans_help.png?nolink&600|}}
  
-**To script the SIFT command line process a code editor application and the newest version of Python must be installed.** In this tutorial the code editor **Visual Studio Code** is used.+**To script the SIFT command line process a code editor application and the newest version of Python must be installed.** In this tutorial the code editor **Visual Studio Code** is used. Python is just one method of automating processing through the Sift CLI, any other scripting or programming language can be used.
  
 Below are the steps required to build and execute the SIFT command line script. The final code is rather lengthy, it can be downloaded here if needed[[https://has-motion.com/download/examples/freethrowSiftScript.py |Completed Sift Automation Code]]. Completed Sift Automation Code. The code is designed to automate the all the steps done previously in this tutorial from creating the cmz files in Visual 3D, to running PCA analysis on the signals and conducting SPM tests in Sift. Ultimately all these steps below should be combined and be ran in your code editor of choice. Below are the steps required to build and execute the SIFT command line script. The final code is rather lengthy, it can be downloaded here if needed[[https://has-motion.com/download/examples/freethrowSiftScript.py |Completed Sift Automation Code]]. Completed Sift Automation Code. The code is designed to automate the all the steps done previously in this tutorial from creating the cmz files in Visual 3D, to running PCA analysis on the signals and conducting SPM tests in Sift. Ultimately all these steps below should be combined and be ran in your code editor of choice.
Line 482: Line 484:
  
 ====Executing Sift CMD line operations==== ====Executing Sift CMD line operations====
-**1.** The following part of the code is run in the command prompt. This cannot be done if the import subprocess was not done at the beginning of the code. First, Sift will be open in the command prompt which will allow for the specific Sift commands to be used. The first Sift command is going to be "-RunV3DCommand" which runs a single V3D pipeline command. The command that will be ran is to set the variable DEFAULT_DATA to the folder we are currently working on. The following line "-RunV3D" is used to run a full V3D pipeline. For the parameter "script", paste the path to the desired pipeline.+**1.** The following part of the code is run in the command prompt. This cannot be done if the import subprocess was not done at the beginning of the code. First, Sift will be open in the command prompt which will allow for the specific Sift commands to be used. The first Sift command is going to be "-RunV3DCommand" which runs a single V3D pipeline command. The command that will be ran is to set the variable DEFAULT_DATA to the folder we are currently working on.
  
     subprocess.run([     subprocess.run([
Line 492: Line 494:
         "command", "Set_Default_Folders/DEFAULT_DATA="+folder+";",         "command", "Set_Default_Folders/DEFAULT_DATA="+folder+";",
                  
-*An issue you may run into is Sift without GUI not running. This may be caused do to Sift NoGUI already being open on your device. If you want to rerun Sif NoGUI the other instance has to be exited as Sift does not allow for multiple Sift NoGUI to be run simultaneously.+*Note: Only one instance of the Sift command line can be run at once, if you are notified of this error ensure all other command line windows are closed and re-run
                  
 **2.**The following line "-RunV3D" is used to run a full V3D pipeline. For the parameter "script" in the code, paste the path to the desired pipeline. **In order for the pipeline to work for the automation** some changes must be made in the original pipeline that was used. The full pipeline with changes can be [[https://has-motion.com/download/examples/testenvpipeline.v3s|found here]]. **2.**The following line "-RunV3D" is used to run a full V3D pipeline. For the parameter "script" in the code, paste the path to the desired pipeline. **In order for the pipeline to work for the automation** some changes must be made in the original pipeline that was used. The full pipeline with changes can be [[https://has-motion.com/download/examples/testenvpipeline.v3s|found here]].
sift/tutorials/openbiomechanics_project/impact_shooting_arm_mechanics_free_throw_accuracy.1758037167.txt.gz · Last modified: 2025/09/16 15:39 by sgranger