Nexus 2 offers the following options for modeling:
- Plug-in Gait (and the Oxford Foot Model). If you are new to modeling with Nexus, this provides a good introduction: the Plug-in Gait model is supplied with Nexus and all the operations necessary to run the model are easily accessible and ready to use. For more information, see Modeling with Plug-in Gait in the Vicon Nexus User Guide.
- MATLAB. If you are familiar with MATLAB, you can use the supplied examples to create your own custom model. See Modeling with MATLAB.
- Python. If you are familiar with Python, you can use the supplied examples to create your own custom models. See Modeling with Python.
- CGM2. You can use the Conventional Gait Model 2 (CGM2) from within Nexus so that you can execute CGM2 models on your data. See Modeling with CGM2.
For research and experimental purposes, a version of Plug-in Gait in open MATLAB script is available. For further details, contact Vicon Support.
About modeling terminology
For a clear understanding of the way modeling is represented in Nexus, bear in mind the following definitions:
- Labeling Any process, operation or algorithm that is used in Vicon Nexus to assign a label to a reconstruction
- Modeling Takes labeled reconstructions and uses these to perform calculations whose results are new variables.
- Models Files or operations that produce new calculations after labeling. Plug-in Gait and the Oxford Foot Model are models, as are MOD files built in BodyBuilder.
- Subject The representation in Nexus of a physical entity (eg a patient)
- Labeling skeleton template (VST): Contains information and definitions related to labeling.
- Labeling skeleton (VSK) A subject that has a labeling skeleton template attached to it and subject-specific properties that are required for modeling (after labeling)
The following examples show the distinction between labeling and modeling:
- Labeling VSTs/VSKs, labeling skeleton calibration (labeling calibration)
- Modeling PlugInGait.MOD, scripts in Bodybuilder, PECS, MATLAB calculations
Close trials using the SDK
You can use the SDK to close the current trial without saving. This functionality is available for both MATLAB and Python.
The function requires the following call:
timeout is in milliseconds and specifies the length of time during which the function tries to run.
Note that the command can only be used from an external application such as MATLAB or Python, and cannot be used in a script that is executed from within Nexus.
The following example uses Python:
vicon = ViconNexus.ViconNexus()
subject = vicon.GetSubjectNames()
Note that this call function is not listed by using
DisplayCommandList. To display details about the call, use