public class Maq20DiscretePulse extends Maq20DiscreteFunc
TIMEBASE_MSECS, TIMEBASE_SECS, TIMEBASE_USECS| Modifier and Type | Method and Description |
|---|---|
void |
enable(int chan)
Enables the pulse counter.
|
int |
getPulsesPerRevn(int chan)
Gets the pulses per revolution.
|
boolean |
isEnabled(int chan)
Gets whether the pulse counter is enabled.
|
int |
readFrequency(int chan)
Reads the frequency.
|
int |
readPulseCount(int chan)
Reads the pulse count
|
int |
readRPM(int chan)
Reads the RPM.
|
void |
resetPulseCount(int chan)
Resets the pulse count
|
void |
setPulsesPerRevn(int chan,
int count)
Sets the pulses per revolution.
|
armFunction, disarmFunction, isFunctionArmed, saveConfiggetDiscDefault, getDiscDefault, getDiscDefault, readDiscIn, readDiscIn, readDiscIn, readDiscOut, readDiscOut, readDiscOut, saveDiscDefaults, setDiscDefault, setDiscDefault, setDiscDefault, writeDisc, writeDisc, writeDiscpublic void enable(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isEnabled(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic int readPulseCount(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void resetPulseCount(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic int readFrequency(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic int readRPM(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPulsesPerRevn(int chan,
int count)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)count - The number of pulses per revolutionorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getPulsesPerRevn(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2023 LSST. All rights reserved.