CPSC781.Phidgets History

Hide minor edits - Show changes to output

Deleted line 19:
* [[#hello | Hello World Examples]]
Deleted lines 80-86:

!!! Hello World Examples

* The link to the example(s) in class and further hello world examples will go here soon!
Added lines 1-2:
'- ''return to [[CPSC781/Fereshteh| Fereshteh's Sandbox]]'' -' [[<<]]
Changed lines 11-12 from:
Abstract text about phidgets will appear here soon!
Phidgets are a set of "plug and play" building blocks for low cost USB sensing and control from your PC.
Added lines 1-97:
%define=box padding-left=1em padding-right=1em margin='3px 3px 0'%
%define=yellowbox box bgcolor=#fdfaea border='1px solid #ffad80'%
%define=redbox box bgcolor=#fff3f3 border='1px solid #ffc9c9'%
%define=bluebox box bgcolor=#f4fbff border='1px solid #a1cae6'%
%define=skybox box bgcolor=#f8fcff border='1px solid #aaaaaa'%
%define=greybox box bgcolor=#fbfbfb border='1px solid #aaaaaa'%
%define=greenbox box bgcolor=#e6f3e5 border='1px solid #8fd586'%
%define=whitebox box bgcolor=#ffffff border='1px solid #999999'%
%rfloat% Attach:phidgets.jpg
Abstract text about phidgets will appear here soon!

!!! Contents

* [[#download | Download and Installation]]
* [[#recipes | Recipes, How-To's]]
* [[#tutorials | Tutorials and Examples]]
* [[#hello | Hello World Examples]]
* [[#links | Links]]

!!! Download and Installation

Here are the steps to setup the proper environment and get the necessary files:
* The Phidget installer requires that your system has .NET framework 2.0 or higher.
** The .NET framework can be downloaded from [[]]
* Visit the drivers section at [[]] and get the latest Phidget framework for your operating system.
** [[]]
** The latest versions for Windows [[ | 32-bit]], [[ | 64-bit]]
* Follow the steps bellow to install the framework:
** Open up the installer, and proceed through the wizard. Please note that by default, the installer places the Phidget libraries in C:\Program Files\Phidgets.
** Once the Phidget libraries are installed using the installer, you should see the Phidget icon in the taskbar. Double click on it to bring up the Phidget Control Panel. If the icon does not appear, just find and open the Phidget Control Panel from the start menu.
* You need the following basic components to get started with programming Phidgets:
** A Phidget and all the necessary parts (for example if using an InterfaceKit, you also need a sensor to get input)
** A USB cable
* Using the USB cable, connect your Phidget to your PC
* Once the Phidget is connected, it will show up under the General tab of the Phidget Control Panel. This is an indication that your Phidget is connected correctly.
* Now you are ready to continue to the [[#recipes | Recipes and How-To's]] section.


!!! Recipes and How-To's

Here are the instructions for setting up the programming environment in C#:
* Generate a new C# Windows Application with a descriptive name such as PhidgetHelloWorld.
* Launch the Add Reference window (Project -> Add Reference).
* Under the .NET tab, select the most recent Phidget21.NET library. If it does not appear in this list, then you can Browse to the Phidget Framework installation directory and add the Phidget21.NET.dll. For earlier versions of Visual Studio, you will want to use the Phidget21.NET1.1.dll instead.
* Now you have access to all the great libraries and classes that are needed to use Phidgets. To add a reference to the libraries type:
using Phidgets;
using Phidgets.Events;
* It is recommended to download/run the examples in C# and follow the tutorials.
** Links are provided under the [[#tutorials | Tutorials and Examples]] section.
* The same with any API, you need to check the API documentation witch is available online and also downloadable.
** Links are provided under the [[#links| Links]] section.


!!! Tutorials and Examples

* [[ | Getting Started with c# Tutorial]]
* [[ | An older version of the Tutorial]]
* [[ | C# simple and full examples]]
** Some phidgets have several examples of how to use them: a very simple one that shows basic functionality, another one that exercises almost all its properties, and a 3rd that illustrates its skin in action. This is a very valuable resource for learning how to code Phidgets.
** While these examples were written in Visual Studio 2005 and 2008, Visual Studio 2010 will easily open and upgrade them.
** Note that due to the way Phidgets are designed, if you try to access a single Phidget through two programs at the same time confusing things may happen.
** Finally, if you run and stop one program controlling a Phidget, you may have to wait a moment or two (or quit and restart the demo program) before you can use the second program (the 2nd program may not connect to the Phidget).


!!! Hello World Examples

* The link to the example(s) in class and further hello world examples will go here soon!

!!! Links
* [[ | Phidget Inc.]]
* [[ | .NET API Manual Online]]
* [[ | Download API Manual]]
* [[ | Videos of the projects worked by the students]]