General Phidget Programming: Difference between revisions

From Phidgets Support
No edit summary
No edit summary
Line 4: Line 4:
This page presents the general '''concepts''' needed to write code for a Phidget.
This page presents the general '''concepts''' needed to write code for a Phidget.


By this point, you should have installed the drivers for your [[Software Overview#Operating System Support|operating system]] and the libraries for your [[Software Overview#Language Support|specific programming language]].
By this point, you should have already done the following:
# Installed the drivers for your [[Software Overview#Operating System Support|operating system]]  
# Installed any libraries and downloaded required files for your [[Software Overview#Language Support|chosen programming language]].
# Downloaded and successfully run code samples (instructions found on [[Software Overview#Language Support|language page]])




----
----
[[Image:phidget_programming_basics.jpg|link=Phidget Programming Basics|100px|left]]
[[Image:phidget_programming_basics.jpg|link=Phidget Programming Basics|80px|left]]
[[Phidget Programming Basics]]


 
Here you can find the basic concepts to help you get started with making your own programs that use Phidgets.
[[Phidget Programming Basics]] - Here you can find the basic concepts to help you get started with making your own programs that use Phidgets.
<br clear="all">
<br clear="all">
----
----
[[Image:data_interval_change_trigger.jpg|link=Data Interval/Change Trigger|100px|left]]
[[Image:data_interval_change_trigger.jpg|link=Data Interval/Change Trigger|80px|left]]
 
[[Data Interval/Change Trigger]]


[[Data Interval/Change Trigger]] - Learn about these two properties that control how much data comes in from your sensors.
Learn about these two properties that control how much data comes in from your sensors.
<br clear="all">
<br clear="all">
----
----
[[Image:using_multiple_phidgets.jpg|link=Using Multiple Phidgets|100px|left]]
[[Image:using_multiple_phidgets.jpg|link=Using Multiple Phidgets|80px|left]]
 
[[Using Multiple Phidgets]]


[[Using Multiple Phidgets]] - It can be difficult to figure out how to use more than one Phidget in your program. This page will guide you through the steps.
It can be difficult to figure out how to use more than one Phidget in your program. This page will guide you through the steps.
<br clear="all">
<br clear="all">
----
----
[[Image:polling_events.jpg|link=Polling vs. Events|100px|left]]
[[Image:polling_events.jpg|link=Polling vs. Events|80px|left]]
[[Polling vs. Events]]


 
Your program can gather data in either a polling-driven or event-driven manner. Learn the difference to determine which is best for your application.
[[Polling vs. Events]] - Your program can gather data in either a polling-driven or event-driven manner. Learn the difference to determine which is best for your application.
<br clear="all">
<br clear="all">
----
----
[[Image:logging_exceptions_errors.jpg|link=Logging, Exceptions, and Errors|100px|left]]
[[Image:logging_exceptions_errors.jpg|link=Logging, Exceptions, and Errors|80px|left]]
[[Logging, Exceptions, and Errors]]


 
Learn about all the tools you can use to debug your program.
[[Logging, Exceptions, and Errors]] - Learn about all the tools you can use to debug your program.
<br clear="all">
<br clear="all">
----
----
[[Image:network_service_icon.jpg|link=Phidget Network Server|100px|left]]
[[Image:network_service_icon.jpg|link=Phidget Network Server|80px|left]]
[[Phidget Network Server]]


 
Phidgets can be controlled and communicated with over your network- either wirelessly or over ethernet.
[[Phidget Network Server]] - Phidgets can be controlled and communicated with over your network- either wirelessly or over ethernet.
<br clear="all">
<br clear="all">
----
----
[[Image:best_practices_icon.jpg|link=Best Phidgets Practices|100px|left]]
[[Image:best_practices_icon.jpg|link=Best Phidgets Practices|80px|left]]
 
[[Best Phidgets Practices]]


[[Best Phidgets Practices]] - Good programming habits that will save you from common problems when writing code for your Phidgets.  
Good programming habits that will save you from common problems when writing code for your Phidgets.  
<br clear="all">
<br clear="all">
----
----

Revision as of 16:31, 4 July 2018

This page presents the general concepts needed to write code for a Phidget.

By this point, you should have already done the following:

  1. Installed the drivers for your operating system
  2. Installed any libraries and downloaded required files for your chosen programming language.
  3. Downloaded and successfully run code samples (instructions found on language page)



Phidget programming basics.jpg

Phidget Programming Basics

Here you can find the basic concepts to help you get started with making your own programs that use Phidgets.


Data interval change trigger.jpg

Data Interval/Change Trigger

Learn about these two properties that control how much data comes in from your sensors.


Using multiple phidgets.jpg

Using Multiple Phidgets

It can be difficult to figure out how to use more than one Phidget in your program. This page will guide you through the steps.


Polling events.jpg

Polling vs. Events

Your program can gather data in either a polling-driven or event-driven manner. Learn the difference to determine which is best for your application.


Logging exceptions errors.jpg

Logging, Exceptions, and Errors

Learn about all the tools you can use to debug your program.


Network service icon.jpg

Phidget Network Server

Phidgets can be controlled and communicated with over your network- either wirelessly or over ethernet.


Best practices icon.jpg

Best Phidgets Practices

Good programming habits that will save you from common problems when writing code for your Phidgets.