public static class WireHarp.DaqConfig extends ParameterSet implements ProfileDevice.IProfileDomain
WireHarp.DaqConfig
. A data structure containing fields
that indicate the status of the data acquisition capabilities. In particular,
there are status records for the operation of each wire within each
measurement plane (eg., horizontal, vertical, diagonal).
DaqConfig.cntWires
. The value is hard coded with the constant
DaqConfig.CNT_WIRES
since there is no way to dynamically
acquire this value.ScadaRecord.IFieldDescriptor
Modifier and Type | Field and Description |
---|---|
double[] |
arrPosDia
Array of wire positions on the beam axis for the diagonal projection plane.
|
double[] |
arrPosHor
Array of wire positions on the beam axis for the horizontal projection plane.
|
double[] |
arrPosVer
Array of wire positions on the beam axis for the vertical projection plane.
|
int |
cntWires
The number of wires within the harp.
|
int |
fitTypeCode
Type code of the current fitting profile
0 = Super Gaussian 1 = Super Gaussian × Gaussian 2 = Super Gaussian + Gaussian 3 = Super Gaussian × Parabola |
static ScadaFieldMap |
FLD_MAP
Map of field names to field SCADA descriptors for this structure
|
int |
recWiresDia
Bit record indicating operation status for each wire
of the diagonal wire set.
|
int |
recWiresHor
Bit record indicating operation status for each wire of the
horizontal wire set.
|
int |
recWiresVer
Bit record indicating operation status for each wire
of the vertical wire set.
|
Constructor and Description |
---|
DaqConfig()
Create a new, uninitialized
DaqConfig object. |
DaqConfig(WireHarp smfHarp)
Create a new
DaqConfig object containing the status
information of the given device. |
Modifier and Type | Method and Description |
---|---|
static WireHarp.DaqConfig |
acquire(WireHarp smfHarp)
Convenience method for retrieving a new initialized data structure
populated from the given device state.
|
double |
getInitialPosition(ProfileDevice.ANGLE angle)
Return the left-most position of the projection interval, that is,
the minimum valued endpoint.
|
double |
getIntervalLength(ProfileDevice.ANGLE angle)
Return the length of the real interval containing the projection data.
|
int |
getSampleCount(ProfileDevice.ANGLE angle)
Returns the number of signal samples in the profile data, that is,
the number of data points in the domain.
|
double[] |
getSamplePositions(ProfileDevice.ANGLE angle)
Returns the array of sampling positions for the profile data
|
boolean |
validWire(ProfileDevice.ANGLE ang,
int index)
Check if the indicated wire is valid, that is, producing valid data.
|
int |
validWireCount(ProfileDevice.ANGLE ang)
Returns the number of valid harp wires for the given projection
plane.
|
boolean[] |
validWires(ProfileDevice.ANGLE ang)
Creates an array of status flags for each harp wire for the given transverse
plane.
|
dataLabel
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
public static final ScadaFieldMap FLD_MAP
public int cntWires
@AScada.Field(type=double[].class, ctrl=false, hndRb="DatHorRawPositions") public double[] arrPosHor
@AScada.Field(type=double[].class, ctrl=false, hndRb="DatVerRawPositions") public double[] arrPosVer
@AScada.Field(type=double[].class, ctrl=false, hndRb="DatDiaRawPositions") public double[] arrPosDia
@AScada.Field(type=int.class, ctrl=false, hndRb="StatRecHorWires") public int recWiresHor
@AScada.Field(type=long.class, ctrl=false, hndRb="StatRecVerWires") public int recWiresVer
@AScada.Field(type=int.class, ctrl=false, hndRb="StatRecDiaWires") public int recWiresDia
@AScada.Field(type=int.class, ctrl=false, hndRb="StatFitType") public int fitTypeCode
public DaqConfig()
DaqConfig
object.public DaqConfig(WireHarp smfHarp) throws ConnectionException, GetException
DaqConfig
object containing the status
information of the given device.smfHarp
- wire harp device under queryConnectionException
- unable to connect parameter read back channelGetException
- general field initialization exceptionpublic static WireHarp.DaqConfig acquire(WireHarp smfHarp) throws ConnectionException, GetException
smfHarp
- data acquisition deviceConnectionException
- unable to connect parameter read back channelGetException
- general field initialization exceptionpublic int validWireCount(ProfileDevice.ANGLE ang)
ang
- projection angle for the harppublic boolean validWire(ProfileDevice.ANGLE ang, int index) throws java.lang.IllegalArgumentException
ang
- the transverse plane of the profile (i.e., wire set)index
- the index of the wire within the harptrue
if the indicated wire is working correctly,
false
otherwisejava.lang.IllegalArgumentException
- the index provided was not in the correct rangepublic boolean[] validWires(ProfileDevice.ANGLE ang)
cntWires
),
the index into the array is the index of the harp wire.ang
- transverse plane of the profilepublic int getSampleCount(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getSampleCount
in interface ProfileDevice.IProfileDomain
gov.sns.xal.smf.impl.profile.ProfileDevice.IProfileDomain#getSampleCount(gov.sns.xal.smf.impl.profile.ProfileDevice.ANGLE)
public double[] getSamplePositions(ProfileDevice.ANGLE angle)
getSamplePositions
in interface ProfileDevice.IProfileDomain
angle
- the projection angle of the data setgov.sns.xal.smf.impl.profile.ProfileDevice.IProfileDomain#getSamplePositions(gov.sns.xal.smf.impl.profile.ProfileDevice.ANGLE)
public double getInitialPosition(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getInitialPosition
in interface ProfileDevice.IProfileDomain
gov.sns.xal.smf.impl.profile.ProfileDevice.IProfileDomain#getInitialPosition(gov.sns.xal.smf.impl.profile.ProfileDevice.ANGLE)
public double getIntervalLength(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getIntervalLength
in interface ProfileDevice.IProfileDomain
angle
- the projection angle of the data setgov.sns.xal.smf.impl.profile.ProfileDevice.IProfileDomain#getIntervalLength(gov.sns.xal.smf.impl.profile.ProfileDevice.ANGLE)