Package gda.device.panda
Interface PandaController
- All Superinterfaces:
Configurable
- All Known Implementing Classes:
DummyPandaController,EpicsPandaController
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumState the sequence table can be instatic enumName of each column in the sequence table, in the same order that they appear in the web GUIstatic classClass to represent a single row of values in the sequence tablestatic enumUnits allowed for table time prescale valuestatic enumEnumeration of possible Trigger types allowed in sequence table -
Method Summary
Modifier and TypeMethodDescriptionintGet the full path the hdf fileintReturn number of points captured by the Hdf writerString[]Formats to use when printing data returned byreadData(int).String[]intintintvoidputPvValue(String pvName, Object value) Set a value on Panda PV.double[]readData(int frameIndex) Return data from Panda (e.g.double[][]readData(int startFrame, int endFrame) Return several frames of data from Panda (e.g.booleansetHdfCapture(int state) Set the capture state on the Hdf writer and wait for completionbooleansetPCapArm(int state) Set the capture state on Position capture block and wait for completionvoidsetSeqBitA(String value) Set Sequence BitA valuevoidsetSeqTablePrescale(PandaController.SequenceTableTimeUnits unit, double value) Set the sequence table time units and prescale valuesvoidsetSeqTableRows(List<PandaController.SequenceTableRow> tableRows) Setup the sequence table using the list of tableRowsvoidsetupHdfWriter(String directory, String filename) Set the filename and directory in the Hdf writerbooleanwaitForHdfNumCaptured(int expectedFrame) Wait until >= expectedFrame points have been captured by the Hdf writer.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigure
-
Method Details
-
setupHdfWriter
Set the filename and directory in the Hdf writer- Parameters:
directory-filename-- Throws:
DeviceException
-
setHdfCapture
Set the capture state on the Hdf writer and wait for completion- Parameters:
state- 1 to arm, 0 to disarm- Returns:
- True if capture state was set successfully within timeout, False otherwise
- Throws:
DeviceException
-
getHdfCapture
- Returns:
- Current capture state of the hdf writer (0 for disarmed, 1 for armed).
- Throws:
DeviceException
-
getHdfFileFullPath
Get the full path the hdf file- Throws:
DeviceException
-
getHdfNumCaptured
Return number of points captured by the Hdf writer- Throws:
DeviceException
-
waitForHdfNumCaptured
Wait until >= expectedFrame points have been captured by the Hdf writer.- Parameters:
expectedFrame-- Returns:
- True if frame number was reached within timeout, False otherwise
- Throws:
DeviceException
-
setSeqTableRows
Setup the sequence table using the list of tableRows- Parameters:
tableRows-- Throws:
DeviceException
-
setSeqTablePrescale
void setSeqTablePrescale(PandaController.SequenceTableTimeUnits unit, double value) throws DeviceException Set the sequence table time units and prescale values- Parameters:
unit-value-- Throws:
DeviceException
-
setSeqBitA
Set Sequence BitA value- Parameters:
value-- Throws:
DeviceException
-
getSeqTableLine
- Returns:
- Number of the sequence table line currently being processed
- Throws:
DeviceException
-
getSeqTableLineRepeat
- Returns:
- the repetition number of the sequence table line being run
- Throws:
DeviceException
-
getSeqTableState
- Returns:
- state of the sequence table - one states in
PandaController.SeqTableState - Throws:
DeviceException
-
setPCapArm
Set the capture state on Position capture block and wait for completion- Parameters:
state- Use 1 to arm, 0 to disarm- Returns:
- True if capture state was set successfully within timeout, False otherwise
- Throws:
DeviceException
-
getPCapArm
- Returns:
- capture state on Position capture block (0 = disarmed, 1 = armed)
- Throws:
DeviceException
-
readData
Return data from Panda (e.g. scaler counts, adc values) for the given frame number- Parameters:
frameIndex-- Returns:
- array of data values
- Throws:
DeviceException
-
readData
Return several frames of data from Panda (e.g. scaler counts, adc values) for the given frame number- Parameters:
startFrame-endFrame-- Returns:
- arrays of data values
- Throws:
DeviceException
-
getOutputFormat
String[] getOutputFormat()Formats to use when printing data returned byreadData(int). (used in Jython console, Ascii output files).- Returns:
- array of format strings
-
getOutputNames
String[] getOutputNames()- Returns:
- Names of the data returned by call to
readData(int).
-
putPvValue
Set a value on Panda PV. This can be used to set arbitrary values that are not accessible via 'set' methods on the controller.- Parameters:
pvName- name of pv to be set (e.g. 'PCAP:ARM')value-- Throws:
DeviceException
-