Notice: This page contains information for the legacy Phidget21 Library. Phidget21 is out of support. Bugfixes may be considered on a case by case basis. Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21. We recommend that new projects be developed against the Phidget22 Library.
|
Template:ExamplePseudocodeLogic: Difference between revisions
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The examples for each device all have this general structure so you can follow along. We also have [[General Phidget Programming|an in-depth general introduction]] to writing Phidget code (like open, read data, etc), as well as the {{{2}}} for specific syntax: | |||
<div class="source"> | |||
<div | |||
<font size="2"> | <font size="2"> | ||
{| style=" | {| style="margin-left:15px;" | ||
|- valign="top" | |- valign="top" | ||
Line 13: | Line 10: | ||
<span style="color:#090;">// ----- '''Main''' Code -----</span> | <span style="color:#090;">// ----- '''Main''' Code -----</span> | ||
'''Create''' Device Software Object | '''Create''' Device Software Object<br> | ||
'''Open''' Device | '''Open''' Device<br> | ||
Wait until Device '''Attachment''' | Wait until Device '''Attachment'''<br> | ||
'''Initialize''' any hardware (antennas, etc) | '''Initialize''' any hardware (antennas, etc) | ||
Line 22: | Line 19: | ||
:Exit upon specific user input | :Exit upon specific user input | ||
'''Close''' Device | '''Close''' Device<br> | ||
Delete Device | Delete Device | ||
Latest revision as of 20:01, 27 January 2012
The examples for each device all have this general structure so you can follow along. We also have an in-depth general introduction to writing Phidget code (like open, read data, etc), as well as the {{{2}}} for specific syntax:
// ----- Main Code ----- Create Device Software Object
Close Device
|
{{{1}}} |