![Phidgets 1002 Скачать руководство пользователя страница 10](http://html.mh-extra.com/html/phidgets/1002/1002_product-manual_1537218010.webp)
10
1002_0_Product_Manual - March 2, 2011 9:59 AM
Documentation
Programming Manual
The
Phidget Programming Manual
documents the Phidgets software programming model in a language and device
unspecific way, providing a general overview of the Phidgets API as a whole. You can find the manual at
www.
phidgets.com
>> Programming.
Getting Started Guides
We have written Getting Started Guides for most of the languages that we support. If the manual exists for the
language you want to use, this is the first manual you want to read. The Guides can be found at
www.phidgets.com
>>
Programming,
and are listed under the appropriate language.
API Guides
We maintain API references for COM (Windows), C (Windows/Mac OSX/Linux), Action Script, .Net and Java. These
references document the API calls that are common to all Phidgets. These API References can be found under
www.
phidgets.com
>>
Programming
and are listed under the appropriate language. To look at the API calls for a specific
Phidget, check its Product Manual.
Code Samples
We have written sample programs to illustrate how the APIs are used.
Due to the large number of languages and devices we support, we cannot provide examples in every language for
every Phidget. Some of the examples are very minimal, and other examples will have a full-featured GUI allowing
all the functionality of the device to be explored. Most developers start by modifying existing examples until they
have an understanding of the architecture.
Go to
www.phidgets.com
>> Programming
to see if there are code samples written for your device. Find the
language you want to use and click on the magnifying glass besides “Code Sample”. You will get a list of all the
devices for which we wrote code samples in that language.
API for the PhidgetAnalog 4-Output
We document API Calls specific to this product in this section. Functions common to all Phidgets and functions not
applicable to this device are not covered here. This section is deliberately generic. For calling conventions under a
specific language, refer to the associated API manual. For exact values, refer to the device specifications.
Functions
Properties
int OutputCount() [get]
Gets the number of analog outputs supported by the PhidgetAnalog.
double Voltage(int OutputIndex) [get, set]
Gets or sets the current voltage output setting for an analog output, in Volts. The range is
VoltageMin
-
VoltageMax
. Voltage is not actually applied until
Enabled
is set to true.
double VoltageMin(int OutputIndex) [get]
Gets the minimum supported output voltage, for an output, in Volts.
double VoltageMax(int OutputIndex) [get]
Gets the maximum supported output voltage, for an output, in Volts.
bool Enabled(int OutputIndex) [get, set]
Gets the enabled state for an output. When enabled, the output drives at the set Voltage, up to 20mA. When
disabled, the output is tied to ground via a 4K pull-down.