Software Overview: Difference between revisions

From Phidgets Support
(Redirected page to Phidget Programming Basics)
 
(194 intermediate revisions by 10 users not shown)
Line 1: Line 1:
Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices like sensors, motors, motor controllers, and interface boards. All you need to know is how to program.
#REDIRECT [[Phidget Programming Basics]]
 
We have developed a complete set of Application Programming Interfaces (API) that are supported for many different [[#Operating System Support|operating systems]], and which can be used through many different [[#Language Support | programming languages]].
 
We suggest starting with the ''Getting Started'' guide [[Device List|for your device]].  This will help you run a basic example to check your hardware and drivers. 
 
The next step would be to choose your [[#Operating System Support|operating system below]], and from there [[#Language Support|choose a language]], learn about [[General Phidget Programming|how to write code for your Phidget]], and get API references for your [[#Language Support|programming language]].
 
The APIs are covered in more detail in the [[General API|API common to all devices]] and the API that pertains to your [[Device List| specific device]].
 
== Operating System Support ==
 
These operating system pages provide drivers for using Phidgets.  They help you set up your system after following the '''Getting Started''' guide [[Device List|for your device]].  The operating systems links below are also on every ''Getting Started'' guide, so if you have not yet read the one for your device, [[Device List|head straight there]].
 
Phidgets can be run either ''directly'' through USB or ''remotely'' over a network via the [[Phidget Webservice]].  Most operating systems below can run Phidgets directly, but a few can only control them over a network.
 
Phidgets can run either directly or over a network on these operating systems:
 
* [[OS - Windows|Windows]]
* [[OS - Mac OSX|Mac OSX]]
* [[OS - Linux|Linux]] (Kernel 2.6+)
* [[OS - Windows CE|Windows CE]] ??
* [[OS - Android|Android]] (3.1 and above)
* [[OS - Phidget SBC]]
 
Phidgets can ''only'' be used over a network by these operating systems:
 
* [[OS - iOS|IPhone iOS]]
* [[OS - Android|Android]] (3.0 and earlier, or no USB port)
 
== Language Support ==
 
We provide a variety of supported languages for using Phidgets.  Each language has its own ''libraries'', which may be found on the language pages below, along with code examples and an in-depth API.
 
Many languages also depend on the ''core drivers'' being installed as well.  These drivers can be found on the [[#Operating System Support|operating system pages]] above.
 
Phidgets supports the following languages:
 
{| style="border:1px solid darkgray;" cellpadding="7px;"
|-style="background: #f0f0f0" align=center
! Language || API || Code Samples || [[General Phidget Programming#Event Driven Code|Events]] || [[General Phidget Programming#Logic Code|Logic Code]] || Use via Direct USB* || [[Phidget Webservice]] || Native Library** || Phidget User Base
|-
 
|Core Languages
|-
 
|[[Language - C Sharp|C#]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| Extensive
|-
 
|[[Language - C/C++|C/C++]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| Extensive
|-
 
|[[Language - Java|Java]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| Extensive
|-
 
|[[Language - Python|Python]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| ✓
|style="background: #abc1e6" align=center| Extensive
|-
 
|Mobile Languages
|-
 
|[[Language - iOS|iOS]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #fffe98" align=center| InterfaceKit Only
|-
 
|[[Language - Android Java|Android Java]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #fffe98" align=center| InterfaceKit Only
|-
 
|Science and Math
|-
 
|[[Language - Adobe Director|Adobe Director]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #fffe98" align=center| InterfaceKit Only
|-
 
|[[Language - Applescript|Applescript]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - AutoIt|AutoIt]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #e6abab" align=center| None
|-
 
 
|[[Language - C Sharp (.NET Compact Framework)|C# (.NET Compact)]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #ade6ab" align=center| Some Devices
|-
 
 
|[[Language - Cocoa|Cocoa]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - Delphi|Delphi]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #ade6ab" align=center| Some Devices
|-
 
|[[Language - Flash AS3|Flash AS3]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - Flex AS3|Flex AS3]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - LabVIEW|LabVIEW]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - MATLAB|MATLAB]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #ade6ab" align=center| Some Devices
|-
 
|[[Language - LiveCode|LiveCode]]
|style="background: #fffe98" align=center| InterfaceKit Only
|style="background: #fffe98" align=center| InterfaceKit Only
|-
 
|[[Language - Max/MSP|Max/MSP]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - REALBasic|REALBasic]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #e6abab" align=center| None
|-
 
|[[Language - Ruby|Ruby]]  
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - Simulink|Simulink]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #fffe98" align=center| InterfaceKit Only
|-
 
|[[Language - Visual Basic .NET|Visual Basic .NET]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - Visual Basic 6.0|Visual Basic 6.0]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #abc1e6" align=center| All Devices
|-
 
|[[Language - Visual Basic for Applications|Visual Basic for Apps]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #ade6ab" align=center| Some Devices
|-
 
|[[Language - Visual Basic Script|Visual Basic Script]]
|style="background: #abc1e6" align=center| All Devices
|style="background: #ade6ab" align=center| Some Devices
|}
 
<nowiki>*</nowiki> A direct USB connection would be plugging the Phidget into a USB port and using it locally.  This is the typical way to use a Phidget.  However, some platforms (such as the iPhone platform) do not have USB ports and hence can only use a Phidget over a network, via the [[Phidget Webservice]].
 
<nowiki>**</nowiki> Native library support means that the calls you make to a Phidget in this language are in the language as well.  If the calls are non-native, the use of Phidgets is through an external library linker, such as callib() in MATLAB, for example.  The core Phidget library is written in C, and most other languages use this library as their core, but a 'Native' interface cleanly hides this detail.

Latest revision as of 20:57, 28 February 2019