Phidgets 1002 Скачать руководство пользователя страница 10

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.

Содержание 1002

Страница 1: ...Product Manual 1002 PhidgetAnalog 4 Output ...

Страница 2: ...Phidgets 1002 Product Manual For Board Revision 0 Phidgets Inc 2011 ...

Страница 3: ...m 7 Testing Using Mac OS X 8 If you are using Linux 8 If you are using Windows Mobile CE 5 0 or 6 0 9 Programming a Phidget 9 Architecture 9 Libraries 9 Programming Hints 9 Networking Phidgets 10 Documentation 10 Programming Manual 10 Getting Started Guides 10 API Guides 10 Code Samples 10 API for the PhidgetAnalog 4 Output 10 Functions 10 Properties 11 Events 12 Technical Section 12 General 12 Is...

Страница 4: ...13 Product History 13 Support ...

Страница 5: ...actuators motor controls etc Programming Environment Operating Systems Windows 2000 XP Vista 7 Windows CE Linux and Mac OS X Programming Languages APIs VB6 VB NET C NET C Flash 9 Flex Java LabVIEW Python Max MSP and Cocoa Examples Many example applications for all the operating systems and development environments above are available for download at www phidgets com Programming Connection The boar...

Страница 6: ... of the Phidget library installed on your PC If you don t do the following Go to www phidgets com Drivers Download and run Phidget21 Installer 32 bit or 64 bit depending on your PC You should see the icon on the right hand corner of the Task Bar Running Phidgets Sample Program Double clicking on the icon loads the Phidget Control Panel we will use this program to make sure that your new Phidget wo...

Страница 7: ... a multimeter it should display the voltage as set by the slider 1 3 2 Double Click on the icon to activate the Phidget Control Panel and make sure that the Phidget Analog 4 output is properly attached to your PC Testing Using Mac OS X Click on System Preferences Phidgets under Other to activate the Preference Pane Make sure that the PhidgetAnalog 4 Output is properly attached Double Click on Phid...

Страница 8: ...e to be run as root or udev hotplug must be configured to give permissions when the Phidget is plugged in If you are using Windows Mobile CE 5 0 or 6 0 Go to www phidgets com Drivers Download x86 ARMV4I or MIPSII depending on the platform you are using Mini itx and ICOP systems will be x86 and most mobile devices including XScale based systems will run the ARMV4I The CE libraries are distributed i...

Страница 9: ...BA Delphi and Labview The ActionScript 3 0 Library relies on a communication link with a PhidgetWebService see below ActionScript 3 0 is used in Flex and Flash 9 Programming Hints Every Phidget has a unique serial number this allows you to sort out which device is which at runtime Unlike USB devices which model themselves as a COM port you don t have to worry about where in the USB bus you plug yo...

Страница 10: ...ality 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 ...

Страница 11: ...RCURRENT An overcurrent condition has occured on an output Under this condition the output is clamped to 20mA ErrorCode EEPHIDGET_OVERTEMP A Thermal Shutdown state has occured The outputs will be shut down under this condition When overcurrent or overtemperature state have ended there will be an error event with the EEPHIDGET_OK code See the ErrorDescription string for specific error details ...

Страница 12: ...ill limit the available current per channel at approximately 20mA For reliable results don t approach this limit as it will vary from channel to channel For maximum accuracy limit the current to 5mA If more than 20mA of current is drawn the device goes into a constant current supply mode When this happens the current will be held constant at it s maximum value and the output voltage will depend on...

Страница 13: ...DC USB Max Current 300 mA USB Quiescent Current 55 mA Capacitive Load Stability 4000 pF Output Voltage Range 10 V Terminal Block min max wire gauge 16 26 AWG Isolation Not Isolated all channels share common ground Operating Temperature 0 70 C Product History Date Board Revision Device Version Comment March 2011 0 100 Product Release requires phidget21 2 1 8 Support Call the support desk at 1 403 2...

Отзывы: