All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.arcsinc.hardwarehost.datamgmt.DataAcqMgrImpl
DataAcqMgrImpl class controls the data
acquisition processes in the hardware application program for the
client.
Vector of the available parameters.
HdwListener interface.
this to determine if the data
acquisition is complete and to notify the client.
protected boolean appAvailable
public DataAcqMgrImpl(HdwMgrImpl hdwMgr,
HdwComm hdwComm,
p_">HdwComm hdwComm,
HostDataMgrImpl hostDataMgrImpl,
DataAcqClient client)
public void hdwStateChanged(HdwEvent e)
HdwListener interface. The
HdwEvent is used to determine when data
acquisition should and should not be allowed.
HdwEvent
public Vector getAvailParams()
- Returns a
Vector of the available parameters. The
objects stored in the in the Vector are of type
ExtVariableSpec.
- Returns:
- a
Vector of ExtVariableSpec
objects
getHostName
public String getHostName()
- Returns the host name. Currently, this always returns "local".
- Returns:
- a
String with the host name.
getCurrentApp
public String getCurrentApp()
- Returns the name of the current application.
- Returns:
- a
String with the current application name.
setAcquisitionSpec
public boolean setAcquisitionSpec(int period,
int noPoints,
int channel,
Vector acqParams)
- Set the data acquisition specification. The specification will
not be accepted if the application is not running or if the
running application does not have sufficient memory to
implement the 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 at each point.
- Returns:
- returns
true if the specification was accepted.
retrieveData
public Number[] retrieveData()
- Retrieves the acquired data from the hardware ane 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 boolean startDataAcq()
- Starts the data acquisition process on the hardware explicitly.
- Returns:
- true if successfully started, otherwise false.
autoStartDataAcq
public 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
public boolean stopDataAcq()
- Stops the data acquisition process
- Stops the data acquisition process currently running on the
hardware.
- Returns:
- true if successfully stopped.
resetDataAcq
public boolean resetDataAcq()
- Resets the data acquisition process. This includes deleting
any existing specification.
- Returns:
- true if successfully reset.
getDataAcqState
public int getDataAcqState()
- Returns the current data acquisition state.
- Returns:
- the current data acquisition state.
run
public void run()
- Function used by
this to determine if the data
acquisition is complete and to notify the client.
doDataAcqCmd
protected int[] doDataAcqCmd(char dataAcqCmd)
- Sends a simple data acquisition system command to the hardware
application.
- Parameters:
- dataAcqCmd - a data acquisition command
- Returns:
- an array of int's from the hardware application
doDataAcqCmd
protected int[] doDataAcqCmd(char dataAcqCmd,
int data[])
- Sends a data acquisition system command to the hardware
application.
- Pe
application.
- Parameters:
- dataAcqCmd - a data acquisition command
- data - an array of int's to be sent as part of the command
- Returns:
- an array of int's from the hardware application
All Packages Class Hierarchy This Package Previous Next Index