Platforms to show: All Mac Windows Linux Cross-Platform
OldPhidgetAccelerometerMBS class Deprecated
Super class: OldPhidgetMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Phidgets | MBS Phidgets Plugin | 7.7 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
This item is deprecated and should no longer be used.
You can use PhidgetAccelerometerMBS instead.
The class for the phidget accelerometer.
The PhidgetAccelerometer is a component that provides a high-level programmer interface to control a PhidgetAccelerometer device connected through a USB port. The product is available as a dual axis or a 3-axis
module. With this component, the programmer can:
- Measure up to 5 Gravity (9.8 m/s2) change per axis, depending on unit purchased.
- Measures both dynamic acceleration (e.g., vibration) and static acceleration (e.g., gravity or tilt) on 2 or 3 axis.
- event AccelerationChanged(index as Integer, value as Double)
- 7 methods
- method Constructor
- method getAcceleration(index as Integer) as Double
- method getAccelerationChangeTrigger(index as Integer) as Double
- method getAccelerationMax(index as Integer) as Double
- method getAccelerationMin(index as Integer) as Double
- method getAxisCount as Integer
- method setAccelerationChangeTrigger(index as Integer, value as Double)
Super class OldPhidgetMBS
- 7 events
- event Attach
- event Detach
- event Error(errorCode as Integer, errorDescription as string)
- event ServerConnect
- event ServerDisconnect
- event Wakeup
- event WillSleep
- 2 properties
- 24 methods
- method Close
- method disableLogging
- method enableLogging(level as Integer, outputFile as string)
- method GetDeviceClass as Integer
- method GetDeviceID as Integer
- method GetDeviceLabel as string
- method GetDeviceName as string
- method GetDeviceStatus as Integer
- method GetDeviceType as string
- method GetDeviceVersion as Integer
- method GetErrorDescription(errorcode as Integer) as string
- method GetLibraryVersion as string
- method GetSerialNumber as Integer
- method GetServerAddress(byref port as Integer) as string
- method GetServerID as string
- method GetServerStatus as Integer
- method Open(serialNumber as Integer = -1)
- method OpenLabel(label as string = "")
- method openLabelRemote(label as string, serverID as string, password as string = "")
- method openLabelRemoteIP(label as string, addr as string, port as Integer, password as string = "")
- method openRemote(serial as Integer, serverID as string, password as string = "")
- method openRemoteIP(serial as Integer, addr as string, port as Integer, password as string = "")
- method SetDeviceLabel(label as string)
- method waitForAttachment(milliseconds as Integer)
- 2 shared methods
- 161 constants
This class has no sub classes.
Some examples using this class:
- /Phidgets/Old Phidget Classes/PhidgetAccelerometer Test
- /Phidgets/Old Phidget Classes/PhidgetAccelerometer Test with Events
The items on this page are in the following plugins: MBS Phidgets Plugin.
ODSessionMBS - OldPhidgetAdvancedServoMBS