Alert.png

Notice: This page contains information for the legacy Phidget21 Library.

Phidget21 is out of support. Bugfixes may be considered on a case by case basis.

Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21.

We recommend that new projects be developed against the Phidget22 Library.


Click on the 2phidget22.jpg button in the menu bar to go to the Phidget22 version of this page.

Alert.png

1017 User Guide

From Phidgets Legacy Support
Revision as of 15:07, 20 July 2012 by Mparadis (talk | contribs) (Created page with "==Getting Started== ===Checking the Contents=== {{UGbox| '''You should have received:''' * A PhidgetInterfaceKit 0/0/8 * A Mini-USB Cable * A Hardware mounting kit | '''In or...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Getting Started

Checking the Contents

You should have received:

  • A PhidgetInterfaceKit 0/0/8
  • A Mini-USB Cable
  • A Hardware mounting kit

In order to test your new Phidget you will also need:

  • A 9V battery
  • A battery connector
  • A 9V incandescent bulb with wires

Connecting the Pieces

  1. Connect the negative (-) wire from the battery connector to one of the bulb wires.
  2. Connect the positive (+) wire from the battery connector to the NO (normally open) connector on the InterfaceKit.
  3. Connect the other bulb wire to the 4A connector on the InterfaceKit.
  4. Connect the InterfaceKit to your PC using the USB cable.

1017 1 Connecting The Hardware.jpg

Testing Using Windows 2000 / XP / Vista / 7

Make sure you have the current version of the Phidget library installed on your PC. If you don't, follow these steps:

  1. Go to the Quick Downloads section on the Windows page
  2. Download and run the Phidget21 Installer (32-bit, or 64-bit, depending on your system)
  3. You should see the Ph.jpg icon on the right hand corner of the Task Bar.

Running Phidgets Sample Program

Double clicking on the Ph.jpg icon loads the Phidget Control Panel; we will use this program to ensure that your new Phidget works properly.

The source code for the InterfaceKit-full sample program can be found in the quick downloads section on the C# Language Page. If you'd like to see examples in other languages, you can visit our Languages page.

Updating Device Firmware

If an entry in this list is red, it means the firmware for that device is out of date. Double click on the entry to be given the option of updating the firmware. If you choose not to update the firmware, you can still run the example for that device after refusing.

Double Click on the Ph.jpg icon to activate the Phidget Control Panel and make sure that the Phidget InterfaceKit 0/0/8 is properly attached to your PC.

1017 1 Control Panel Screen.jpg
  1. Double Click on Phidget InterfaceKit 0/0/8 in the Phidget Control Panel to bring up InterfaceKit-full and check that the box labelled Attached contains the word True.
  2. Click on the fourth Digital Out box. A tick mark appears in the box and the light bulb turns on. Click on the box again. The tick mark goes away and the light turns off. If you unplug the USB cable while the light is on, it will turn off. The bottom row shows the status of the request, while the top row displays the status of the digital output as reported by the device.
  3. Move the positive (+) wire from NO to NC (normally closed). The light is now on when the Digital box has no tick mark. Clicking on the box turns the light off. If you unplug the USB cable when the light is on, it will stay on.
1017 1 InterfaceKit Screen.jpg

Testing Using Mac OS X

  1. Go to the Quick Downloads section on the Mac OS X page
  2. Download and run the Phidget OS X Installer
  3. Click on System Preferences >> Phidgets (under Other) to activate the Preference Pane
  4. Make sure that the Phidget InterfaceKit 0/0/8 is properly attached.
  5. Double Click on Phidget InterfaceKit 0/0/8 in the Phidget Preference Pane to bring up the InterfaceKit-full Sample program. This program will function in a similar way as the Windows version.

Using Linux

For a step-by-step guide on getting Phidgets running on Linux, check the Linux page.

Using Windows Mobile / CE 5.0 / CE 6.0

For a step-by-step guide on getting Phidgets running on Windows CE, check the Windows CE page.

Technical Details

API

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 in the Quick Downloads section for that language. For exact values, refer to the device specifications.

Functions

int OutputCount() [get] : Constant = 8

Returns the number of digital outputs supported by this PhidgetInterfaceKit.


bool OutputState (int OutputIndex) [get,set]

Sets/returns the state of a digital output. Setting this to true will activate the output, making the contact between Common and NO. False is the default state. Reading the OutputState immediately after setting it will not return the value set - it will return the last state reported by the Phidget.


Events

OnOutputChange(int OutputIndex, bool State), [event]

An event that is issued when the state of a digital output changes.


Product History

Date Board Revision Device Version Comment