All Packages Class Hierarchy This Package Previous Next Index
Interface com.arcsinc.hardwarehost.datamgmt.DataAcqMgr
- public interface DataAcqMgr
- extends AbsDataMgr
The DataAcqMgr
interface provides the system data
acquisition functionality.
- See Also:
- AbsDataMgr, ExtVariableSpec
-
ACQ_COLLECTING
- Data state: data is b
- Data state: data is being acquired (
ACQ_COLLECTING
)
-
ACQ_COMPLETED
- Data state: acquisition is completed (
ACQ_COMPLETED
)
-
ACQ_IDLE
- Data state: default state (
ACQ_IDLE
)
-
ACQ_STOPPED
- Data state: acquisition completed preleted prematurely
(
ACQ_STOPPED
)
-
ACQ_WAITING
- Data state: have valid spec, waiting for
start (
ACQ_WAITING
)
-
autoStartDataAcq()
- Starts the data acquisition process on the hardware
implicitly.
-
getDataAcqState()
- Returns the current data acquisition state.
-
resetDataAcq()
- Resets the data acquisition process.
-
retrieveData()
- Retrieves the acquired data from the hardware and returns it to
the calling agent.
-
setAcquisitionSpec(int, int, int, Vector)
-
Set the data acquisition specification.
-
startDataAcq()
- Starts the data acquisition process on the hardware explicitly.
-
stopDataAcq()
- Stops the data acquisition process currently running on the
hardware.
ACQ_IDLE
public static final int ACQ_IDLE
- Data state: default state (
ACQ_IDLE
)
ACQ_WAITING
public static final int ACQ_WAITING
- Data state: have valid spec, waiting for
start (
ACQ_WAITING
)
ACQ_COLLECTING
public static final int ACQ_COLLECTING
- Data state: data is being acquired (
ACQ_COLLECTING
)
ACQ_COMPLETED
public static final int ACQ_COMPLETED
- Data state: acquisition is completed (
ACQ_COMPLETED
)
ACQ_STOPPED
public static final int ACQ_STOPPED
- Data state: acquisition completed prematurely
(
ACQ_STOPPED
)
setAcquisitionSpec
public abstract boolean setAcquisitionSpec(int period,
int noPoints,
int channel,
Vector params)
- Set the data acquisition specification.
- Parameters:
- period - sample period in milliseconds
- noPoints - number of points to acquire
- channel - the interrupt channel in which the data is
acquired
- params -
Vector
of
ExtVariableSpec
(s) to be acquired.
- Returns:
- returns
true
if the specification was accepted.
retrieveData
public abstract Number[] retrieveData()lic abstract Number[] retrieveData()
- Retrieves the acquired data from the hardware and returns it to
the calling agent. The data is in the form of a single
dimensional array. The array is filled data point by data
point; the point consists of the hardware-based time index and
then each requested channel.
- Returns:
- an array of
Number
with the data
startDataAcq
public abstract boolean startDataAcq()
- Starts the data acquisition process on the hardware explicitly.
- Returns:
- true if successfully started, otherwise false.
autoStartDataAcq
public abstract boolean autoStartDataAcq()
- Starts the data acquisition process on the hardware
implicitly. In this mode, the trigger event (start) is
generated within the hardware application program.
- Returns:
- true if successfully started, otherwise false.
stopDataAcq
ataAcq">stopDataAcq
public abstract boolean stopDataAcq()
- Stops the data acquisition process currently running on the
hardware.
- Returns:
- true if successfully stopped.
resetDataAcq
public abstract boolean resetDataAcq()
- Resets the data acquisition process. This includes deleting
any existing specification.
- Returns:
- true if successfully reset.
getDataAcqState
public abstract int getDataAcqState()
- Returns the current data acquisition state.
- Returns:
- the current data acquisition state.
All Packages Class Hierarchy This Package Previous Next Index