Phidget22

From Phidgets Support
Revision as of 19:30, 13 July 2017 by Mparadis (talk | contribs)


Phidget22 is the newest version of the Phidget software libraries (you can download the latest version of Phidget22 on your operating system's page). All pages in the documentation area of our website (including User Guides, Primers, and Software Documentation) will assume you're using Phidget22. If you want to view the Phidget21 version of any page, just click on the ToPhidget21.jpg button at the top-right corner of the page. You can view the main page of the Phidget21 version of the documentation here.

The main differences between Phidget21 and Phidget22 are the structure of the software objects, the languages that are supported, and the consistency of the API.

Modular Objects

In Phidget21, each device had it's own software object in the library. For example, The 1018 - PhidgetInterfaceKit used the InterfaceKit object, which contained methods and properties for all aspects of the 1018: the Digital Outputs, Digital Inputs, and Analog Inputs.


Boldarrow.jpg


In Phidget22, we've broken up these large objects into a more modular system. This modularity is mirrored by the modular design of our VINT-based Phidgets. Updating your existing programs that use Phidget21 will be straightforward when you follow our upgrading guide.

Language Support

Support for programming languages has changed slightly since Phidget21. The following languages are currently supported under Phidget22:

Core Languages Mobile Languages Other Languages
C Sharp C# Objective C Objective C LabVIEW LabVIEW
C C Swift Swift Max/MSP Max/MSP
Python Python
Java Java
Visual Basic .NET Visual Basic .NET
JavaScript JavaScript

Each of these languages are fully supported with API documentation, sample code, and step-by-step guides.

API Consistency

API example.jpg


In Phidget21, our libraries and the corresponding API documentation varied greatly from language to language. It was our goal in Phidget22 to make things as consistent as possible between languages so it would be easier for users to switch back and forth without running into differences. Our software libraries for core languages and Phidget22 API are now generated from a single source.

Further Reading