background image

10

1051_2_Product_Manual - May 5, 2010 4:34 PM

Documentation

Programming Manual

The 

Phidget Programming Manual

 documents the Phidgets software programming model in a language and device 

unspecific way, providing a general overview of the Phidgets API as a whole.  You can find the manual at 

www.

phidgets.com

 >> Programming.

Getting Started Guides

We have written Getting Started Guides for most of the languages that we support. If the manual exists for the 

language you want to use, this is the first manual you want to  read. The Guides can be found at 

www.phidgets.com

 

>> 

Programming,

 and are listed under the appropriate language.

API Guides

We maintain API references for COM (Windows), C (Windows/Mac OSX/Linux), Action Script, .Net and Java. These 

references document the API calls that are common to all Phidgets. These API References can be found under 

www.

phidgets.com

 >> 

Programming

 and are listed under the appropriate language. To look at the API calls for a specific 

Phidget, check its Product Manual. 

Code Samples

We have written sample programs to illustrate how the APIs are used. 
Due to the large number of languages and devices we support, we cannot provide examples in every language for 

every Phidget.  Some of the examples are very minimal, and other examples will have a full-featured GUI allowing 

all the functionality of the device to be explored.  Most developers start by modifying existing examples until they 

have an understanding of the architecture.
Go to 

www.phidgets.com

 >> Programming

 

to see if there are code samples written for your device. Find the 

language you want to use and click on the magnifying glass besides “Code Sample”. You will get a list of all the 

devices for which we wrote code samples in that language.

API for the PhidgetTemperatureSensor 1-Input

We document API Calls specific to this product in this section. Functions common to all Phidgets and functions not 

applicable to this device are not covered here. This section is deliberately generic. For calling conventions under a 

specific language, refer to the associated API manual. For exact values, refer to the device specifications.

Functions

int TemperatureInputCount () [get] : Constant

Returns the number of thermocouples that can be read by this PhidgetTemperatureSensor.

double Temperature (int ProbeIndex) [get] : Celsius

Returns the temperature of a thermocouple. This value is returned in degrees Celsius but can easily be converted 

into other units. This value will always be between TemperatureMin and TemperatureMax.  Please refer to the device 

specifications for noise and accuracy details.

double TemperatureMax (int ProbeIndex) [get] : Constant, Celsius

Returns the maximum temperature that can be returned by a thermocouple input. This value depends on the 

thermocouple type.

double TemperatureMin (int ProbeIndex) [get] : Constant, Celsius

Returns the minimum temperature that can be returned by a thermocouple input. This value depends on the 

thermocouple type.

Summary of Contents for PhidgetTemperatureSensor 1-Input

Page 1: ...Product Manual 1051 PhidgetTemperatureSensor 1 Input ...

Page 2: ...Phidgets 1051 Product Manual For Board Revision 2 Phidgets Inc 2010 ...

Page 3: ...g Linux 8 If you are using Windows Mobile CE 5 0 or 6 0 9 Programming a Phidget 9 Architecture 9 Libraries 9 Programming Hints 9 Networking Phidgets 10 Documentation 10 Programming Manual 10 Getting Started Guides 10 API Guides 10 Code Samples 10 API for the PhidgetTemperatureSensor 1 Input 10 Functions 11 Events 12 Technical Section 12 Introduction 12 Getting the Temperature value 12 K J T E Type...

Page 4: ...TemperatureSensor at a stable temperature 13 Wire Size 13 Wire Length 13 Sheathing material 13 How to connect your Thermocouple 13 Stripped wire 13 Sourcing Thermocouples 14 Mechanical Drawing 14 Device Specifications 15 Product History 15 Support ...

Page 5: ...pensates for errors introduced by the temperature of the Phidget Uses terminal blocks to interface to inexpensive thermocouples Programming Environment Operating Systems Windows 2000 XP Vista 7 Windows CE Linux and Mac OS X Programming Languages APIs VB6 VB NET C NET C Flash 9 Flex Java LabVIEW Python Max MSP and Cocoa Examples Many example applications for all the operating systems and developmen...

Page 6: ...Vista Downloading the Phidgets drivers Make sure that you have the current version of the Phidget library installed on your PC If you don t do the following Go to www phidgets com Drivers Download and run Phidget21 Installer 32 bit or 64 bit depending on your PC You should see the icon on the right hand corner of the Task Bar Running Phidgets Sample Program Double clicking on the icon loads the Ph...

Page 7: ... The ambient temperature gives you the 5 board temperature You can adjust the data sensitivity by moving 6 the slider pointer 1 2 3 4 5 6 Double Click on the icon to activate the Phidget Control Panel and make sure that the Phidget Temperature Sensor is properly attached to your PC Testing Using Mac OS X Click on System Preferences Phidgets under Other to activate the Preference Pane Make sure tha...

Page 8: ... to be run as root or udev hotplug must be configured to give permissions when the Phidget is plugged in If you are using Windows Mobile CE 5 0 or 6 0 Go to www phidgets com Drivers Download x86 ARMV4I or MIPSII depending on the platform you are using Mini itx and ICOP systems will be x86 and most mobile devices including XScale based systems will run the ARMV4I The CE libraries are distributed in...

Page 9: ...B6 VBScript Excel VBA Delphi and Labview The ActionScript 3 0 Library relies on a communication link with a PhidgetWebService see below ActionScript 3 0 is used in Flex and Flash 9 Programming Hints Every Phidget has a unique serial number this allows you to sort out which device is which at runtime Unlike USB devices which model themselves as a COM port you don t have to worry about where in the ...

Page 10: ...s start by modifying existing examples until they have an understanding of the architecture Go to www phidgets com Programming to see if there are code samples written for your device Find the language you want to use and click on the magnifying glass besides Code Sample You will get a list of all the devices for which we wrote code samples in that language API for the PhidgetTemperatureSensor 1 I...

Page 11: ...peratureMax double AmbientTemperatureMax get Constant Celsius Returns the maximum temperature that can be returned by the ambient sensor double AmbientTemperatureMin get Constant Celsius Returns the minimum temperature that can be returned by the ambient sensor int ThermocoupleType int ProbeIndex get set Returns Sets the thermocouple type for an input The possible values are J K E and T correspond...

Page 12: ...rical Interference The PhidgetTemperatureSensor measures each thermocouple compared to it s internal ground If your thermocouple is measuring a conductive device which cannot equalize to the ground of the PhidgetTemperatureSensor you should isolate the thermocouple wire using thermally conductive epoxy Thermocouples are conductive and are very good at shorting electrical systems together If in dou...

Page 13: ...erature limitation which is often much less than the thermocouple type temperature rating For example teflon is good to 200C fiberglass sheath is good to 480C How to connect your Thermocouple Stripped wire The 1048 is designed to accept stripped wires We recommend a 5 to 6mm wire strip length the terminal blocks will accept wires between 16 26 AWG When using thin wires make sure that you have a so...

Page 14: ...A USB Device Voltage 4 75 5 25 VDC Accuracy Temperature Update Rate 25 samples second Ambient Temperature Resolution 0 5 C Thermocouple Resolution C 0 1 C K type 25 C Thermocouple Resolution µV 4 µV Thermocouple Accuracy 2 C K type Typical Noise 0 02 C standard deviation Typical Thermocouple Temperature Range E Type 200 C to 900 C J Type 0 C to 750 C K Type 200 C to 1250 C T Type 200 C to 350 C ...

Page 15: ...improved to 2 Celsius October 2008 1 300 More accurate ambient temperature sensor Added support for E J and T type thermocouples in the API library on board noise filtering April 2010 2 400 Mini USB connector new thermocouple connector Support Call the support desk at 1 403 282 7335 8 00 AM to 5 00 PM Mountain Time US Canada GMT 07 00 or E mail us at support phidgets com ...

Reviews: