Phidgets PhidgetTemperatureSensor 1-Input Bedienungsanleitung

Product Manual
1051 - PhidgetTemperatureSensor 1-Input

Phidgets 1051 - Product Manual
For Board Revision 2
© Phidgets Inc. 2010

Contents
5 Product Features
5 Programming Environment
5 Connection
6 Getting Started
6 Checking the Contents
6 Connecting all the pieces
6 Testing Using Windows 2000/XP/Vista
6 Downloading the Phidgets drivers
6 Running Phidgets Sample Program
7 Testing Using Mac OS X
8 If you are using 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 Thermocouples
12 Using Thermocouples other than K, J, E, or T-Type
12 Things to watch for

12 Electrical Interference
12 Keep the PhidgetTemperatureSensor 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 DeviceSpecications
15 Product History
15 Support

5
1051_2_Product_Manual - May 5, 2010 4:34 PM
Product Features
Supports one thermocouple providing a wide range of temperatures that can be measured.•
Measures temperatures from -200°C to +1250°C when using a K-Type thermocouple.•
Outputs temperature in degrees Celsius.•
Gives the temperature of the Phidget (ambient) in degrees Celsius.•
Automatically compensates 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 development environments above are
available for download at www.phidgets.com >> Programming.
Connection
The board connects directly to a computer’s USB port.

6
1051_2_Product_Manual - May 5, 2010 4:34 PM
Connect the thermocouple to the input1.
terminal block on the 1051. Make sure that the
thermocouple ground wire goes into the ground
terminal (-). If you are using a 2007 - Phidget
K-type Thermocouple, the white wire is the ground
wire.
Connect the 1051 to your PC using the Mini-USB2.
cable.
12
Getting Started
Checking the Contents
You should have received:
A PhidgetTemperatureSensor 1-Input•
A Mini-USB Cable•
Connecting all the pieces
Testing Using Windows 2000/XP/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 Phidget Control Panel; we will use this program to make sure that your
new Phidget works properly.
The source code for the TemperatureSensor-full sample program can be found under C# by clicking on Phidget.com
> Programming.
In order to test your new Phidget you will also
need:
A Thermocouple with stripped end•

7
1051_2_Product_Manual - May 5, 2010 4:34 PM
Double Click on1. Phidget Temperature
Sensor in the Phidget Control Panel to bring
up TemperatureSensor-full and check that the
box labelled Attached contains the word True.
Select K-Type thermocouple2.
Touch a source of heat (light bulb, candle or3.
lighterame)withthethermocoupleprobeand
watch the Thermocouple temperature increase.
The potential value will also increase as the4.
thermocouple temperature increases.
The ambient temperature gives you the5. board
temperature.
You can adjust the data sensitivity by moving6.
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 that the Phidget Temperature Sensor 1-Input is properly attached.•
Double Click on Phidget Temperature Sensor 1-Input in the Phidget Preference Pane to bring up the•
TemperatureSensor-full Sample program. This program will function in a similar way as the Windows version.

8
1051_2_Product_Manual - May 5, 2010 4:34 PM
If you are using Linux
There are no sample programs written for Linux.
Go to www.phidgets.com >> Drivers
Download Linux Source
Havealookatthereadmele•
Build Phidget21•
The most popular programming languages in Linux are C/C++ and Java.
Notes:
Many Linux systems are now built with unsupported third party drivers. It may be necessary to uninstall these
drivers for our libraries to work properly.
Phidget21 for Linux is a user-space library. Applications typically have to be run as root, or udev/hotplug must be
conguredtogivepermissionswhenthePhidgetispluggedin.
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.
TheCElibrariesaredistributedin.CABformat.WindowsMobile/CEisabletodirectlyinstall.CABles.
The most popular languages are C/C++, .NET Compact Framework (VB.NET and C#). A desktop version of Visual
StudiocanusuallybeconguredtotargetyourWindowsMobilePlatform,whetheryouarecompilingtomachine
code or the .NET Compact Framework.

9
1051_2_Product_Manual - May 5, 2010 4:34 PM
Programming a Phidget
Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices
like sensors, motors, motor controllers, and interface boards. All you need to know is how to program. We have
developed a complete set of Application Programming Interfaces (API) that are supported for Windows, Mac OS X,
and Linux. When it comes to languages, we support VB6, VB.NET, C#.NET, C, C++, Flash 9, Flex, Java, LabVIEW,
Python, Max/MSP, and Cocoa.
Architecture
We have designed our libraries to give you the maximum amount of freedom. We do not impose our own
programming model on you.
To achieve this goal we have implemented the libraries as a series of layers with the C API at the core surrounded
by other language wrappers.
Libraries
The lowest level library is the C API. The C API can be programmed against on Windows, CE, OS X and Linux. With
the C API, C/C++, you can write cross-platform code. For systems with minimal resources (small computers), the C
API may be the only choice.
The Java API is built into the C API Library. Java, by default is cross-platform - but your particular platform may not
support it (CE).
The .NET API also relies on the C API. Our default .NET API is for .NET 2.0 Framework, but we also have .NET
libraries for .NET 1.1 and .NET Compact Framework (CE).
The COM API relies on the C API. The COM API is programmed against when coding in VB6, 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 USB bus you
plug your Phidget in. If you have more than one Phidget, even of the same type, their serial numbers enable
you to sort them out at runtime.
EachPhidgetyouhavepluggediniscontrolledfromyourapplicationusinganobject/handlespecictothat•
phidget. This link between the Phidget and the software object is created when you call the .OPEN group of
commands. This association will stay, even if the Phidget is disconnected/reattached, until .CLOSE is called.
The Phidget APIs are designed to be used in an event-driven architecture. While it is possible to poll them, we•
don’t recommend it. Please familiarize yourself with event programming.
Networking Phidgets
The PhidgetWebService is an application written by Phidgets Inc. which acts as a network proxy on a computer. The
PhidgetWebService will allow other computers on the network to communicate with the Phidgets connected to that
computer. ALL of our APIs have the capability to communicate with Phidgets on another computer that has the
PhidgetWebService running.
The PhidgetWebService also makes it possible to communicate with other applications that you wrote and that are
connected to the PhidgetWebService, through the PhidgetDictionary object.

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
unspecicway,providingageneraloverviewofthePhidgetsAPIasawhole.Youcanndthemanualatwww.
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
languageyouwanttouse,thisistherstmanualyouwanttoread.TheGuidescanbefoundatwww.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 >> Programmingandarelistedundertheappropriatelanguage.TolookattheAPIcallsforaspecic
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
WedocumentAPICallsspecictothisproductinthissection.FunctionscommontoallPhidgetsandfunctionsnot
applicable to this device are not covered here. This section is deliberately generic. For calling conventions under a
speciclanguage,refertotheassociatedAPImanual.Forexactvalues,refertothedevicespecications.
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
specicationsfornoiseandaccuracydetails.
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.
Inhaltsverzeichnis
Andere Phidgets Steuereinheit Handbücher
Beliebte Steuereinheit Handbücher anderer Marken

Festo
Festo Compact Performance CP-FB6-E Stücklistenhandbuch

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Bedienungsanleitung

JS Automation
JS Automation MPC3034A Bedienungsanleitung

JAUDT
JAUDT SW GII 6406 Series Kurzanleitung

Spektrum
Spektrum Air Module System Bedienungsanleitung

BOC Edwards
BOC Edwards Q Series Bedienungsanleitung












