Loading...
This chapter gives an overview of the members available for the Phidgets Spatial 0/0/3 device.
Please read the chapter "Phidgets - Spatial 0/0/3" if you would like to know how to add and use this device. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
Project.Phidgets_Spatial_0_0_3(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "Phidgets_Spatial_0_0_3" from the Configuration dialog. Using the Project object is an alternative to addressing the device directly by entering its name. The Project object allows to address the device through its name or ID. Substituting the ID with a dynamic variable allows automation. Actions can be performed on many devices of the same type simultaneously, e.g. by using for-loops: |
Phidgets_Spatial_0_0_3_Name.Channel |
Example: Alternative Example: |
This member sets and returns the channel which is displayed next to "Channel" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.Channel Example2: The second example shows, how to set the channel to a value of 2. |
Phidgets_Spatial_0_0_3_Name.DeviceSerial |
Example: Alternative Example: |
This member sets and returns the serial number which is displayed next to "Serial" in the Configuration menu when selecting the according Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.DeviceSerial Example2: The second example shows, how to set the serial number of the device in the Configuration menu to 530161. |
Phidgets_Spatial_0_0_3_Name.Disable |
Example: Alternative Example: |
This disables the Phidgets device in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
Phidgets_Spatial_0_0_3_Name.Enable |
Example: Alternative Example: |
This enables the Phidgets device in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
Phidgets_Spatial_0_0_3_Name.GetInterval |
Example: Alternative Example: |
This member returns the interval time which is displayed next to "Interval (ms)" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetInterval |
Phidgets_Spatial_0_0_3_Name.GetMaxAcceleration |
Example: Alternative Example: |
This member returns the maximum acceleration value of the Phidget Spatial device which is displayed next to "Max Acceleration" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetMaxAcceleration |
Phidgets_Spatial_0_0_3_Name.GetMaxAccelerationChangeTrigger |
Example: Alternative Example: |
This member returns the maximum acceleration change value of the Phidget Spatial device which is displayed next to "Max Acceleration Change" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetMaxAccelerationChangeTrigger |
Phidgets_Spatial_0_0_3_Name.GetMinAcceleration |
Example: Alternative Example: |
This member returns the minimum acceleration value of the Phidget Spatial device which is displayed next to "Min Acceleration" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetMinAcceleration |
Phidgets_Spatial_0_0_3_Name.GetMinAccelerationChangeTrigger |
Example: Alternative Example: |
This member returns the minimum acceleration change value of the Phidget Spatial device which is displayed next to "Min Acceleration Change" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetMinAccelerationChangeTrigger |
Phidgets_Spatial_0_0_3_Name.GetTrigger |
Example: Alternative Example: |
This member returns the trigger value of the Phidget Spatial device which is displayed next to "Trigger" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetTrigger |
Phidgets_Spatial_0_0_3_Name.GetXAxis |
Example: Alternative Example: |
This member returns the X acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetXAxis |
Phidgets_Spatial_0_0_3_Name.GetYAxis |
Example: Alternative Example: |
This member returns the Y acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetYAxis |
Phidgets_Spatial_0_0_3_Name.GetZAxis |
Example: Alternative Example: |
This member returns the Z acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.GetZAxis |
Phidgets_Spatial_0_0_3_Name.HubPort |
Example: Alternative Example: |
This member sets and returns the hub port number which is displayed next to "Hub Port" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.HubPort Example2: The second example shows, how to set the hub port to a value of 2. |
Phidgets_Spatial_0_0_3_Name.Interval |
Example: Alternative Example: |
This member sets and returns the interval time which is displayed next to "Interval (ms)" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.Interval Example2: The second example shows, how to set the interval time to a value of 500ms. |
Phidgets_Spatial_0_0_3_Name.IsConnected |
Example: Alternative Example: |
This member returns the connection status for the Phidgets device as a Boolean value. The result is "True" if the device is connected and "False" if it is currently disconnected. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.IsConnected |
Phidgets_Spatial_0_0_3_Name.IsEnabled |
Example: Alternative Example: |
This member returns the status of the check box "Enable" of the configuration dialog when selecting the according Phidget device. The result, a Boolean value (or string), is "True" if the device is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.IsEnabled |
Phidgets_Spatial_0_0_3_Name.IsHubPortDevice |
Example: Alternative Example: |
This member returns the status of the check box "Is Hub Port Device" of the configuration dialog when selecting the according Phidget device. The result, a Boolean value (or string), is "True" if the device is a hub port device and "False" if it is not. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.IsHubPortDevice |
Phidgets_Spatial_0_0_3_Name.MaxAcceleration |
Example: Alternative Example: |
This member returns the maximum acceleration value of the Phidget Spatial device which is displayed next to "Max Acceleration" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.MaxAcceleration |
Phidgets_Spatial_0_0_3_Name.MaxAccelerationChangeTrigger |
Example: Alternative Example: |
This member returns the maximum acceleration change value of the Phidget Spatial device which is displayed next to "Max Acceleration Change" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.MaxAccelerationChangeTrigger |
Phidgets_Spatial_0_0_3_Name.MinAcceleration |
Example: Alternative Example: |
This member returns the minimum acceleration value of the Phidget Spatial device which is displayed next to "Min Acceleration" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.MinAcceleration |
Phidgets_Spatial_0_0_3_Name.MinAccelerationChangeTrigger |
Example: Alternative Example: |
This member returns the minimum acceleration change value of the Phidget Spatial device which is displayed next to "Min Acceleration Change" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.MinAccelerationChangeTrigger |
Phidgets_Spatial_0_0_3_Name.SetInterval(value) |
Example: Alternative Example: |
This member sets the interval time which is displayed next to "Interval (ms)" in the Configuration menu when selecting the according Phidget device. The example shows how to set the interval time to a value of 500ms. |
Phidgets_Spatial_0_0_3_Name.SetTrigger(trigger) |
Example: Alternative Example: |
This member sets the trigger value of the Phidget Spatial device to 0.2. It is displayed next to "Trigger" in the Configuration menu when selecting the according Phidget device. |
Phidgets_Spatial_0_0_3_Name.Trigger |
Example: Alternative Example: |
This member sets and returns the trigger value of the Phidget Spatial device which is displayed next to "Trigger" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.Trigger Example2: This example shows how to set the trigger value to 0.2. |
Phidgets_Spatial_0_0_3_Name.XAxis |
Example: Alternative Example: |
This member returns the X acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.XAxis |
Phidgets_Spatial_0_0_3_Name.YAxis |
Example: Alternative Example: |
This member returns the Y acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.YAxis |
Phidgets_Spatial_0_0_3_Name.ZAxis |
Example: Alternative Example: |
This member returns the Z acceleration value of the Phidget Spatial device which is displayed next to "Current X,Y,Z Axis Value" in the Configuration menu when selecting the according Phidget device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Spatial_0_0_3_1.ZAxis |