public static class WireScanner.ScanConfig extends ParameterSet implements ProfileDevice.IProfileDomain
ScadaRecord.IFieldDescriptor
Modifier and Type | Field and Description |
---|---|
static double |
DBL_INV_SQRT_2
the numeric value 1/2-1/2
|
int |
errScanRng
Error flag indicating that the scan parameters are inconsistent,
that is, they do not describe a viable scan.
|
static ScadaFieldMap |
FLD_MAP
The map between structure field names and there corresponding descriptors
|
double |
lngScan
The maximum position of the scan considering
the current values of
posInit , stepLength ,
and stepCount |
double |
lngStroke
The stroke length of the device actuator.
|
double |
posInit
The initial (actuator) position of the scan in mm.
|
int |
pulseCount
The number of beam pulses (traces) used to compute
a profile sample value.
|
int |
stepCount
The total number of profile data samples
in the scan data set.
|
double |
stepLength
The size of each scan step in mm.
|
Constructor and Description |
---|
ScanConfig()
Create a new, uninitialized
ScanConfig object. |
ScanConfig(DataAdaptor daptSrc)
Create a new
ScanConfig object initialized
from the given data source. |
ScanConfig(ProfileDevice ws)
Create a new
ScanConfig object initialize
with values fetched from the given device. |
Modifier and Type | Method and Description |
---|---|
static WireScanner.ScanConfig |
acquire(ProfileDevice ws)
Return the set of profile scan configuration parameters.
|
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 locations within the domain interval where the profile data
samples are taken.
|
dataLabel
clone, getFieldDescriptor, getFieldDescriptorMap, getFieldDescriptors, loadHardwareValues, setFieldFromPV, setHardwareValues, setPvFromField, toString, update, write
public static final double DBL_INV_SQRT_2
public static final ScadaFieldMap FLD_MAP
@AScada.Field(type=double.class, ctrl=true, hndRb="ScanCfgInitPosRb", hndSet="ScanCfgInitPosSet") public double posInit
compFinalPosition()
.@AScada.Field(type=int.class, ctrl=true, hndRb="ScanCfgStepCntRb", hndSet="ScanCfgStepCntSet") public int stepCount
@AScada.Field(type=double.class, ctrl=true, hndRb="ScanCfgStepLngRb", hndSet="ScanCfgStepLngSet") public double stepLength
@AScada.Field(type=int.class, ctrl=true, hndRb="ScanCfgStepPulsesRb", hndSet="ScanCfgStepPulsesSet") public int pulseCount
@AScada.Field(type=double.class, ctrl=false, hndRb="ScanCfgScanLngRb") public double lngScan
posInit
, stepLength
,
and stepCount
@AScada.Field(type=double.class, ctrl=false, hndRb="ScanCfgStrokeLngRb") public double lngStroke
stepLength
×
stepCount
must be less than this value.
This is a read-only quantity.@AScada.Field(type=int.class, ctrl=false, hndRb="ScanCfgScanOutOfRngRb") public int errScanRng
public ScanConfig()
ScanConfig
object.public ScanConfig(DataAdaptor daptSrc)
ScanConfig
object initialized
from the given data source.daptSrc
- data source containing data structure fieldspublic ScanConfig(ProfileDevice ws) throws ConnectionException, GetException
ScanConfig
object initialize
with values fetched from the given device.ws
- data acquisition deviceConnectionException
- unable to connect to a parameter read back channelGetException
- general field initialization exceptionpublic static WireScanner.ScanConfig acquire(ProfileDevice ws) throws ConnectionException, GetException
ws
- profile device under requestConnectionException
- unable to connect parameter read back channelGetException
- general channel access get exceptionpublic int getSampleCount(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getSampleCount
in interface ProfileDevice.IProfileDomain
ProfileDevice.IProfileDomain.getSampleCount(xal.smf.impl.profile.ProfileDevice.ANGLE)
public double[] getSamplePositions(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getSamplePositions
in interface ProfileDevice.IProfileDomain
angle
- the projection angle of the data setProfileDevice.IProfileDomain.getSamplePositions(xal.smf.impl.profile.ProfileDevice.ANGLE)
public double getInitialPosition(ProfileDevice.ANGLE angle)
ProfileDevice.IProfileDomain
getInitialPosition
in interface ProfileDevice.IProfileDomain
ProfileDevice.IProfileDomain.getInitialPosition(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 setProfileDevice.IProfileDomain.getIntervalLength(xal.smf.impl.profile.ProfileDevice.ANGLE)