Loading...
This chapter gives an overview of the members available for the Phidgets Server device.
Please read the chapter "Phidgets - Server" 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_Server(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "Phidgets_Server" 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_ServerName.Disable |
Example: Alternative Example: |
This disables the Phidgets_Server1 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_ServerName.Enable |
Example: Alternative Example: |
This enables the Phidgets_Server1 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_ServerName.GetSerialList |
Example: Alternative Example: |
This member returns a list value with all "Device Serials" from devices that are connected to the Phidgets_Server1 device. You could also write it into a Widget, e.g. a DropDown List via the script and a local variable "list": or simply display it in the Debug Logger: DebugMessage(Phidgets_Server1.DeviceNames) |
Phidgets_ServerName.IpAddress |
Example: Alternative Example: |
This returns the IP address of the Phidgets_Server1 device as a string. The result could look as follows: 10.169.80.10 You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Server1.IpAddress In return, you can also assign an IP address to the connected Phidgets_Server1 device. WD automatically connects to it afterwards. |
Phidgets_ServerName.IsConnected |
Example: Alternative Example: |
This member returns the connection status for the Phidgets_Server1 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_Server1.IsConnected |
Phidgets_ServerName.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_Server1.IsEnabled |
Phidgets_ServerName.Port |
Example: Alternative Example: |
This returns the port number of the Phidgets_Server device in the Configuration dialog as an integer value. The result could look as follows: 5661 You could also write it into a Widget, e.g. a Label via the script: Label1.Text = Phidgets_Server1.Port In return, you can also assign another port to the connected Phidgets_Server device. WD automatically connects to it afterwards. |