Phidget22: Difference between revisions
No edit summary |
|||
Line 45: | Line 45: | ||
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 {{Phidget22API| API documentation}} are now generated from a single source. | 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 {{Phidget22API| API documentation}} are now generated from a single source. | ||
<br clear="all"> | |||
=== Further Reading === | |||
* [[What is a Phidget?]] | |||
* [[What is VINT?]] | |||
* [[Upgrading Code from Phidget21 to Phidget22]] | |||
* [{{SERVER}}/docs21/Main_Page Documentation site for Phidget21] |
Revision as of 19:49, 15 June 2017
Phidget22 is the newest version of the Phidget software libraries. 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 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.
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# | Objective C | LabVIEW |
C/C++ | Swift | Max/MSP |
Python | ||
Java | ||
Visual Basic .NET | ||
JavaScript |
Each of these languages are fully supported with API documentation, sample code, and step-by-step guides.
API Consistency
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.