PhidgetBridge

PhidgetBridge

A class for controlling a PhidgetBridge.  See your product manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetBridgeA class for controlling a PhidgetBridge.
EventsEvents supported by PhidgetBridge.
Constants
Bridge GainsThese are the Gains supported by PhidgetBridge.
Properties and Functions
InputCountGets the number of inputs on this bridge.
DataRateGets the number of inputs on this bridge.
DataRateMinGets the number of inputs on this bridge.
DataRateMaxGets the number of inputs on this bridge.
getEnabledGets the enabled state of an input.
getBridgeValueGets the value of an input, in mV/V
getBridgeMinGets minimum bridge value, in mV/V
getBridgeMaxGets maximum bridge value, in mV/V
getGainGets the gain for an input.
DataRateSets the data rate of the board, in ms.
setEnabledEnables/Disables an input.
setGain

Events

Events supported by PhidgetBridge.  Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.

PhidgetDataEvent.BRIDGE_DATAbridge data.  Comes in a dataRate intervals.

Constants

Bridge Gains

These are the Gains supported by PhidgetBridge.  These constants are used with getGain and setGain.

PHIDGET_BRIDGE_GAIN_1Gain of 1.
PHIDGET_BRIDGE_GAIN_8Gain of 8.
PHIDGET_BRIDGE_GAIN_16Gain of 16.
PHIDGET_BRIDGE_GAIN_32Gain of 32.
PHIDGET_BRIDGE_GAIN_64Gain of 64.
PHIDGET_BRIDGE_GAIN_128Gain of 128.

Properties and Functions

InputCount

public function get InputCount():int

Gets the number of inputs on this bridge.

DataRate

public function get DataRate():int

Gets the number of inputs on this bridge.

DataRateMin

public function get DataRateMin():int

Gets the number of inputs on this bridge.

DataRateMax

public function get DataRateMax():int

Gets the number of inputs on this bridge.

getEnabled

public function getEnabled(index: int):Boolean

Gets the enabled state of an input.

Parameters

indexinput index

getBridgeValue

public function getBridgeValue(index: int):Number

Gets the value of an input, in mV/V

Parameters

indexinput index

getBridgeMin

public function getBridgeMin(index: int):Number

Gets minimum bridge value, in mV/V

Parameters

indexinput index

getBridgeMax

public function getBridgeMax(index: int):Number

Gets maximum bridge value, in mV/V

Parameters

indexinput index

getGain

public function getGain(index: int):int

Gets the gain for an input.

Parameters

indexinput index.

DataRate

public function set DataRate(val: int):void

Sets the data rate of the board, in ms. Must by a multiple of 8.

Parameters

valdata rate.

setEnabled

public function setEnabled(index: int,
val: Boolean):void

Enables/Disables an input.

Parameters

indexinput index
valstate

setGain

public function setGain(index: int,
val: int):void
Sets the gain for an input.  Set to one of the defined gainsPHIDGET_BRIDGE_GAIN_1 - PHIDGET_BRIDGE_GAIN_128.

Parameters

indexinput index
valstate
Base Phidget class from which all specific device classes inherit.
public function get InputCount():int
Gets the number of inputs on this bridge.
public function get DataRate():int
Gets the number of inputs on this bridge.
public function get DataRateMin():int
Gets the number of inputs on this bridge.
public function get DataRateMax():int
Gets the number of inputs on this bridge.
public function getEnabled(index: int):Boolean
Gets the enabled state of an input.
public function getBridgeValue(index: int):Number
Gets the value of an input, in mV/V
public function getBridgeMin(index: int):Number
Gets minimum bridge value, in mV/V
public function getBridgeMax(index: int):Number
Gets maximum bridge value, in mV/V
public function getGain(index: int):int
Gets the gain for an input.
public function setEnabled(index: int,
val: Boolean):void
Enables/Disables an input.
public function setGain(index: int,
val: int):void
Gain of 1.
Gain of 128.
Close