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
API functions for digital device data
GetDeviceChannelForFrameGlobal, enable you to access digital device data that corresponds to optical measurements.
These functions are available in the the SDK for Python and MATLAB.
They address the issue that while the existing function
GetDeviceChannelAtFrame provides the analog frame that contains the requested optical measurement (ie, the frame number in Nexus), for digital devices the analog frame may not align with the optical measurements. These functions return the analog samples that correspond to the optical frame requested.
Note that these functions are not available in the Datastream.
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