Phidget22: Difference between revisions

From Phidgets Support
No edit summary
 
(One intermediate revision by the same user not shown)
Line 19: Line 19:
Support for programming languages has changed slightly since Phidget21. The following languages are currently supported under Phidget22:
Support for programming languages has changed slightly since Phidget21. The following languages are currently supported under Phidget22:


{| style="border:1px solid darkgray;" cellpadding="5px;"
{{Programming_Languages_Table}}
|-style="background: #f0f0f0" align=center
|-


|'''Core Languages''' || |'''Mobile Languages''' || |'''Other Languages'''
Each of these languages are fully supported with API documentation, sample code, and step-by-step guides.
|-
|[[Image:Icon-CSharp.png|alt=C Sharp|24x24px|link=Language - C Sharp]] [[Language - C Sharp|C#]] || [[Image:Icon-ObjC.png|24x24px|alt=Objective C|link=Language - Objective C]] [[Language - Objective C|Objective C]] || [[Image:Icon-LabVIEW.png|alt=LabVIEW|24x24px|link=Language - LabVIEW]] [[Language - LabVIEW|LabVIEW]]
|-
|[[Image:Icon-C.png|alt=C|24x24px|link=Language - C]] [[Language - C|C]] || |[[Image:Icon-Swift.png|alt=Swift|24x24px|link=Language - Swift]] [[Language - Swift|Swift]] || |[[Image:Icon-MaxMSP.png|24x24px|alt=Max/MSP|link=Language - Max/MSP]] [[Language - Max/MSP|Max/MSP]]
|-
|[[Image:Icon-Python.png|alt=Python|24x24px|link=Language - Python]] [[Language - Python|Python]]
|-
|[[Image:Icon-Java.png|alt=Java|24x24px|link=Language - Java]] [[Language - Java|Java]]
|-
|[[Image:Icon-Visual Basic Net.png|alt=Visual Basic .NET|24x24px|link=Language - Visual Basic .NET]] [[Language - Visual Basic .NET|Visual Basic .NET]]
|-
|[[Image:Icon-Javascript.png|alt=JavaScript|24x24px|link=Language - JavaScript]] [[Language - JavaScript|JavaScript]]
|-
|}
 
Each of these languages are fully supported with API documentation, sample code, and step-by-step guides.  


=== API Consistency ===
=== API Consistency ===

Latest revision as of 23:07, 12 December 2024


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, Introductory Guides, 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:

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