Samraksh eMote .NOW
ConfigureBatchModeWithThresholding Method (AnalogInput)



Buffer for samples
Channel to use
Number of samples to read before callback
Sampling time interval in microseconds
Threshold to apply
Method to call when numSamples collected
Configure ADC batch mode with threshold
Syntax
'Declaration
 
Public Shared Function ConfigureBatchModeWithThresholding( _
   ByVal sampleBuff() As UShort, _
   ByVal channel As Cpu.AnalogChannel, _
   ByVal numSamples As UInteger, _
   ByVal samplingTime As UInteger, _
   ByVal threshold As UInteger, _
   ByVal callback As AdcCallBack _
) As Boolean
'Usage
 
Dim sampleBuff() As UShort
Dim channel As Cpu.AnalogChannel
Dim numSamples As UInteger
Dim samplingTime As UInteger
Dim threshold As UInteger
Dim callback As AdcCallBack
Dim value As Boolean
 
value = AnalogInput.ConfigureBatchModeWithThresholding(sampleBuff, channel, numSamples, samplingTime, threshold, callback)
public static bool ConfigureBatchModeWithThresholding( 
   ushort[] sampleBuff,
   Cpu.AnalogChannel channel,
   uint numSamples,
   uint samplingTime,
   uint threshold,
   AdcCallBack callback
)

Parameters

sampleBuff
Buffer for samples
channel
Channel to use
numSamples
Number of samples to read before callback
samplingTime
Sampling time interval in microseconds
threshold
Threshold to apply
callback
Method to call when numSamples collected

Return Value

True iff operation success
Requirements

Target Platforms: eMote .NOW

See Also

Reference

AnalogInput Class
AnalogInput Members

Send Feedback