Loading...
This chapter gives an overview of the members available for the Phidgets Servo device.
Please read the chapter "Phidgets - Servo" 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_Servo(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "Phidgets_Servo" 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_ServoName.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_Servo1.Channel Example2: The second example shows, how to set the channel to a value of 2. |
Phidgets_ServoName.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_Servo1.DeviceSerial Example2: The second example shows, how to set the serial number of the device in the Configuration menu to 530161. |
Phidgets_ServoName.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_ServoName.Disengage |
Example: Alternative Example: |
This disengages the Servo Phidget which means that commands that change the position are not executed by it. |
Phidgets_ServoName.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_ServoName.Engage |
Example: Alternative Example: |
This engages the Servo Phidget which means that commands that change the position are executed. You can either send a position change and then engage the Servo or engage it once at the beginning and send position commands afterwards (this works also for the member MoveToPositionWithRamp). |
Phidgets_ServoName.GetMaxAcceleration |
Example: Alternative Example: |
This member returns the maximum acceleration value that is reported by the Servo Phidgets device and 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_Servo1.GetMaxAcceleration |
Phidgets_ServoName.GetMaxPulseWidth |
Example: Alternative Example: |
This member returns the maximum pulse width that is currently set up for the Servo Phidgets device and which is displayed next to "Max Pulse Width" 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_Servo1.GetMaxPulseWidth |
Phidgets_ServoName.GetMaxVelocityLimit |
Example: Alternative Example: |
This member returns the maximum velocity value that is reported by the Servo Phidgets device and which is displayed next to "Max Velocity Limit" 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_Servo1.GetMaxVelocityLimit |
Phidgets_ServoName.GetMinAcceleration |
Example: Alternative Example: |
This member returns the minimum acceleration value that is reported by the Servo Phidgets device and 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_Servo1.GetMinAcceleration |
Phidgets_ServoName.GetMinPulseWidth |
Example: Alternative Example: |
This member returns the minimum pulse width that is currently set up for the Servo Phidgets device and which is displayed next to "Min Pulse Width" 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_Servo1.GetMinPulseWidth |
Phidgets_ServoName.GetMinVelocityLimit |
Example: Alternative Example: |
This member returns the minimum velocity value that is reported by the Servo Phidgets device and which is displayed next to "Min Velocity Limit" 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_Servo1.GetMinVelocityLimit |
Phidgets_ServoName.GetPosition |
Example: Alternative Example: |
This member returns the current position that is reported by the Servo Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.GetPosition |
Phidgets_ServoName.GetPositionAtMax |
Example: Alternative Example: |
This member returns the maximum position value that is currently set up for the Servo Phidgets device and which is displayed next to "Position At Max" 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_Servo1.GetPositionAtMax |
Phidgets_ServoName.GetPositionAtMin |
Example: Alternative Example: |
This member returns the minimum position value that is currently set up for the Servo Phidgets device and which is displayed next to "Position At Min" 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_Servo1.GetPositionAtMin |
Phidgets_ServoName.GetVelocity |
Example: Alternative Example: |
This member returns the current velocity that is reported by the Servo Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.GetVelocity |
Phidgets_ServoName.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_Servo1.HubPort Example2: The second example shows, how to set the hub port to a value of 2. |
Phidgets_ServoName.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_Servo1.IsConnected |
Phidgets_ServoName.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_Servo1.IsEnabled |
Phidgets_ServoName.IsEngaged |
Example: Alternative Example: |
This member returns whether the Servo Phidgets device is currently enganged. The result, a Boolean value (or string), is "True" if the device is engaged and "False" if it is disengaged. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.IsEngaged |
Phidgets_ServoName.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_Servo1.IsHubPortDevice |
Phidgets_ServoName.IsMoving |
Example: Alternative Example: |
Note: This member is currently not working correctly. This returns whether the attached device is currently moving. The result, a Boolean value (or string), is "True" if the device is moving and "False" if it is not. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.IsMoving |
Phidgets_ServoName.MaxAcceleration |
Example: Alternative Example: |
This member returns the maximum acceleration value that is reported by the Servo Phidgets device and 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_Servo1.MaxAcceleration |
Phidgets_ServoName.MaxPulseWidth |
Example: Alternative Example: |
This member sets and returns the maximum pulse width that is currently set up for the Servo Phidgets device and which is displayed next to "Max Pulse Width" 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_Servo1.MaxPulseWidth Example2: The second example shows, how to set it to a value of 2000. Remember to check the device's specifications first! |
Phidgets_ServoName.MaxVelocityLimit |
Example: Alternative Example: |
This member returns the maximum velocity value that is reported by the Servo Phidgets device and which is displayed next to "Max Velocity Limit" 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_Servo1.MaxVelocityLimit |
Phidgets_ServoName.MinAcceleration |
Example: Alternative Example: |
This member returns the minimum acceleration value that is reported by the Servo Phidgets device and 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_Servo1.MinAcceleration |
Phidgets_ServoName.MinPulseWidth |
Example: Alternative Example: |
This member sets and returns the minimum pulse width that is currently set up for the Servo Phidgets device and which is displayed next to "Min Pulse Width" 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_Servo1.MinPulseWidth Example2: The second example shows, how to set it to a value of 600. Remember to check the device's specifications first! |
Phidgets_ServoName.MinVelocityLimit |
Example: Alternative Example: |
This member returns the minimum velocity value that is reported by the Servo Phidgets device and which is displayed next to "Min Velocity Limit" 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_Servo1.MinVelocityLimit |
Phidgets_ServoName.MoveToPosition(position) |
Example: Alternative Example: |
This tells the attached device to move to position 45 (with maximum acceleration and velocity). Remember to engage the Servo Phidgets device before or after this command, e.g.: Phidgets_Servo1.Engage |
Phidgets_ServoName.MoveToPositionWithRamp(position,acceleration,velocity) |
Example: Alternative Example: |
This tells the attached device to move to position 45 with an acceleration value of 20 and velocity value of 15. Remember to engage the Servo Phidgets device before this command, e.g.: Phidgets_Servo1.Engage |
Phidgets_ServoName.Position |
Example: Alternative Example: |
This member returns the current position that is reported by the Servo Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.Position |
Phidgets_ServoName.PositionAtMax |
Example: Alternative Example: |
This member sets and returns the maximum position value that is currently set up for the Servo Phidgets device and which is displayed next to "Position At Max" 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_Servo1.PositionAtMax Example2: The second example shows, how to set it to a value of 225. Remember to check the device's specifications first! |
Phidgets_ServoName.PositionAtMin |
Example: Alternative Example: |
This member sets and returns the minimum position value that is currently set up for the Servo Phidgets device and which is displayed next to "Position At Min" 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_Servo1.PositionAtMin Example2: The second example shows, how to set it to a value of 10. Remember to check the device's specifications first! |
Phidgets_ServoName.SetMaxPulseWidth(pulseWidth) |
Example: Alternative Example: |
This member sets the maximum pulse width for the Servo Phidgets device to 2000. The value is displayed next to "Max Pulse Width" in the Configuration menu when selecting the according Phidget device. Remember to check the device's specifications first! |
Phidgets_ServoName.SetMinPulseWidth(pulseWidth) |
Example: Alternative Example: |
This member sets the minimum pulse width for the Servo Phidgets device to 2000. The value is displayed next to "Max Pulse Width" in the Configuration menu when selecting the according Phidget device. Remember to check the device's specifications first! |
Phidgets_ServoName.SetPositionAtMax(position) |
Example: Alternative Example: |
This member sets the maximum position for the Servo Phidgets device to 225. The value is displayed next to "Position At Max" in the Configuration menu when selecting the according Phidget device. Remember to check the device's specifications first! |
Phidgets_ServoName.SetPositionAtMin(position) |
Example: Alternative Example: |
This member sets the maximum position for the Servo Phidgets device to 10. The value is displayed next to "Position At Min" in the Configuration menu when selecting the according Phidget device. Remember to check the device's specifications first! |
Phidgets_ServoName.Velocity |
Example: Alternative Example: |
This member returns the current velocity that is reported by the Servo Phidgets device. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Servo1.Velocity |