Package gda.device
Interface Adc
- All Superinterfaces:
Configurable,Device,Findable,gda.observable.IObservable
Interface to control ADCs, for example EpicsADC.
-
Method Summary
Modifier and TypeMethodDescriptionintgetRange(int channel) Get the current voltage Range for the specified channel.int[]Get the supported ranges for a particular ADC.doublegetVoltage(int channel) Get the current voltage for the specified channel.double[]Get the current voltage from all open channels.booleanGet the polarity capability of the ADC.voidsetRange(int channel, int range) Set the voltage Range for the specified channel.voidsetSampleCount(int count) Set the sample count for the ADC monitoring.voidsetUniPolar(int channel, boolean polarity) Set the unipolar or bipolar mode for a specified channel.Methods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
getVoltage
Get the current voltage for the specified channel.- Parameters:
channel- the ADC channel to read- Returns:
- the current voltage (units are implementation specific)
- Throws:
DeviceException
-
getVoltages
Get the current voltage from all open channels.- Returns:
- the current voltages (units are implementation specific)
- Throws:
DeviceException
-
setRange
Set the voltage Range for the specified channel.- Parameters:
channel- the ADC channel to setrange- the range to set (units are implementation specific)- Throws:
DeviceException- See Also:
-
getRange
Get the current voltage Range for the specified channel.- Parameters:
channel- the ADC channel to get- Returns:
- the range (units are implementation specific)
- Throws:
DeviceException- See Also:
-
setUniPolar
Set the unipolar or bipolar mode for a specified channel.- Parameters:
channel- the ADC channel to setpolarity- unipolar mode either true or false- Throws:
DeviceException- See Also:
-
getRanges
Get the supported ranges for a particular ADC.- Returns:
- the supported voltage ranges (units are implementation specific)
- Throws:
DeviceException
-
isUniPolarSettable
Get the polarity capability of the ADC.- Returns:
- true if UNIPOLAR is supported else assume BIPOLAR
- Throws:
DeviceException
-
setSampleCount
Set the sample count for the ADC monitoring.- Parameters:
count- the number of samples to read- Throws:
DeviceException
-