Please wait. Due to its content this page might take a while to load...
Temperature Phidget - P/N TMP1000_0
The Phidgets Temperature Phidget (TMP1000_0) is a sensor that can measure the ambient temperature of the surrounding air from -40°C to 85°C.
If you are using a different sensor, for example the Precision Temperature Sensor (PN_1124), please add it as a Voltage Ratio Input device (or respective other type).
To add a Phidgets Temperature Phidget device, open the Devices menu and select Phidgets Device > Temperature Phidget Device. This opens the Configuration dialog. Alternatively, you can add a new device in the Configuration dialog with the "+" button.
On the right side, you can name, dis-/enable the device or configure it as explained in the next paragraph.
The name is the unique identifier for this Temperature Phidget object in WD and the general rules for naming objects apply here as well (only letters, numbers and underscore are allowed, the first symbol must be a letter).
If you like, you can change the default name to a more descriptive one. When scripting, enter the name to access available members as described further down.
The "Enable" check box is ticked per default. On the left side, you should see that the icon in front of your Temperature Phidget is a filled blue circle. An empty blue circle indicates an enabled device which is not connected. An empty gray circle indicates a disabled device.
You can close the dialog at any time. The newly created device will also be added to the Devices menu > Phidgets Device > Temperature Phidget Device and can be opened from here or with Devices menu > Configuration.
Select the Serial number of the connected device from the drop-down. If your device is connected to a Hub, use its serial number respectively.
Fill out Hub Port, Channel and Is Hub Port Device according to the Phidget Addressing Information dialog.
After the connection is established, the Current Value field as well as Min and Max Temperature will be updated as soon as a change is registered.
After adding a Temperature Phidget, you can also use it via scripting which allows to perform actions on the device as well as retrieve information from it.
To send commands to the device, first create a CustomScript button or use the Macro editor or anything else with a scripting field. If you enter the device's identifier name into the script field (per default that is e.g. "Phidgets_TemperaturePhidget1"), Script Assist will offer you a list of all available members.
You can for example enable the device using scripting:
You can also retrieve the current measurement temperature in °C:
vdouble_C = Phidgets_TemperaturePhidget1.Value
For calculating the temperature in °F, you can use this unnecessarily complicated formula:
vdouble_F = Phidgets_TemperaturePhidget1.Value * 1.8 + 32
The scripting structure for Phidgets provides two different approaches for setting and retrieving values.
If you are already familiar with the object-based notation and using properties, all device properties can be used like any other object property you have already encountered:
Phidgets_TemperaturePhidget1.Interval = 100
Label5.Text = "Current Update Interval: " + Phidgets_TemperaturePhidget1.Interval
If you prefer a command structure that distinctly implies the action to be performed, you can use the "Set..." and "Get..." members:
Label5.Text = "Current Update Interval: " + Phidgets_TemperaturePhidget1.GetInterval
Both approaches can be used interchangeably.
Please keep in mind that some properties are read-only properties, e.g. "Value", and do not provide a "Set..." member.
Furthermore, the higher-level properties of the device itself, like the Serial number or the Enabled state, need to be scripted as properties and do not provide the "Set..." and "Get..." members.
For a list with all available members and commands with examples and descriptions, please refer to the chapter Phidgets Temperature Phidget Members.
Event Listeners can be added to the Configuration dialog and provide a simple way of listening to triggers from connected devices.
Please see the chapter Event Listener for a detailed description of its functionality and the Phidgets Temperature Phidget Events chapter for a list (with examples and description) of the possible events raised by this device type.