PhidgetFrequencyCounter |
A class for controlling a PhidgetFrequencyCounter. See your product manual for more specific API details, supported functionality, units, etc.
| PhidgetFrequencyCounter | A class for controlling a PhidgetFrequencyCounter. |
| Events | Events supported by PhidgetFrequencyCounter. |
| Constants | |
| FrequencyCounter filter types | These are the filter types supported by PhidgetFrequencyCounter. |
| Properties | |
| FrequencyInputCount | Gets the number of inputs on this frequencycounter. |
| Functions | |
| getEnabled | Gets the enabled state of an input. |
| getFrequency | Gets the frequency, in Hz. |
| getFilter | Gets the filter type for an input. |
| getTimeout | Gets the timeout for an input, in microseconds |
| getTotalCount | Gets the total count of input pulses. |
| getTotalTime | Gets the total time of input pulses. |
| setEnabled | Enables/Disables an input. |
| setFilter | Sets the filter type for an input. |
| setTimeout | Sets the timout for an input, in microseconds. |
| reset | Resets the totalCount and totalTime for an input. |
public function setFilter( index: int, val: int ):void
Sets the filter type for an input. Set to one of the defined filter types - PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_ZERO_CROSSING - PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_LOGIC_LEVEL.
| index | input index |
| val | state |
Gets the number of inputs on this frequencycounter.
public function get FrequencyInputCount():int
Gets the enabled state of an input.
public function getEnabled( index: int ):Boolean
Gets the frequency, in Hz.
public function getFrequency( index: int ):Number
Gets the filter type for an input.
public function getFilter( index: int ):int
Gets the timeout for an input, in microseconds
public function getTimeout( index: int ):int
Gets the total count of input pulses.
public function getTotalCount( index: int ):Number
Gets the total time of input pulses.
public function getTotalTime( index: int ):Number
Enables/Disables an input.
public function setEnabled( index: int, val: Boolean ):void
Sets the filter type for an input.
public function setFilter( index: int, val: int ):void
Sets the timout for an input, in microseconds.
public function setTimeout( index: int, val: int ):void
Resets the totalCount and totalTime for an input.
public function reset( val: int ):void