AnalogDevice#
- class pyCGM2.Nexus.Devices.AnalogDevice(NEXUS, id: str)#
Represents an analog device in a pyCGM2-Nexus interface, extending the Device class.
- __init__(NEXUS, id: str)#
Initializes the AnalogDevice object with a Vicon Nexus handle and device ID.
Methods
__init__(NEXUS, id)Initializes the AnalogDevice object with a Vicon Nexus handle and device ID.
getChannels([channelNames])Retrieves and stores the channels associated with the analog device.
getDeviceFrequency()Returns the sampling frequency of the device.
getDeviceName()Returns the name of the device.
getOutputNames()Returns a list of output names from the device.
getUnit()Returns the unit of measurement for the analog device's channels.
- getChannels(channelNames: List[str] | None = None)#
Retrieves and stores the channels associated with the analog device.
- Parameters:
channelNames (Optional[List[str]]) – Channels to retrieve. A channel is kept if its name (e.g.
EMG1) or its full label (e.g.Voltage.EMG1) is in the list. None retrieves all channels. Filtering happens before the (costly) data transfer from Nexus.- Returns:
List[Channel] – A list of Channel objects associated with the device.
- getUnit()#
Returns the unit of measurement for the analog device’s channels.
- Returns:
str – The unit of measurement for the channels.