Programming Resources: Difference between revisions
No edit summary |
|||
Line 102: | Line 102: | ||
<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 Network Service]]. | <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 Network Service]]. | ||
<sup>†</sup> Most languages have code samples for all Phidgets, but some have only some devices (visit the language page to learn which ones), and some only have | <sup>†</sup> Most languages have code samples for all Phidgets, but some have only some devices (visit the language page to learn which ones), and some only have examples for basic VINT Hub objects: DigitalInput, DigitalOutput, VoltageInput, and VoltageRatioInput. You can use the {{Phidget22API}} with these examples to write code for other Phidget objects. |
Revision as of 19:51, 28 February 2017
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 pages above.
Phidgets supports the following languages. If the language you have chosen is not fully supported with examples for all products then there are some resources available for you to fill in the gaps. First we recommend you look at the API which will show you all of the functions you can use. Next, you should look at the code samples that are available in that language. Finally you should look at code samples for your device in other languages. Between those three things you should be able to piece together what you need to be doing, as always, if you run into trouble contact us. If you have some flexibility in what language to use, we recommend using a Core Language:
Language | Libraries | Code Samples† | Events | Logic Code | OS Support |
---|---|---|---|---|---|
Core Languages | |||||
C# | Quick Downloads | All Devices | |||
C/C++ | Quick Downloads | All Devices | |||
Python | Quick Downloads | All Devices | |||
Java | Quick Downloads | All Devices | |||
Other Languages | |||||
Javascript | Quick Downloads | All Devices | |||
Visual Basic .NET | Quick Downloads | All Devices | |||
Swift | Quick Downloads | Some Devices | |||
Objective C | Quick Downloads | Some Devices | |||
LabVIEW | Quick Downloads | All Devices | |||
Max/MSP | Quick Downloads | All Devices |
* 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 Network Service.
† Most languages have code samples for all Phidgets, but some have only some devices (visit the language page to learn which ones), and some only have examples for basic VINT Hub objects: DigitalInput, DigitalOutput, VoltageInput, and VoltageRatioInput. You can use the Phidget22 API with these examples to write code for other Phidget objects.