Samraksh eMote .NOW
ConfigureBatchModeWithThresholding Method (AnalogInput)
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C# Language Filter: C++/CLI
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI

Samraksh.eMote.DotNow Namespace > AnalogInput Class : ConfigureBatchModeWithThresholding Method

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

- Visual Basic
- C#
- C++/CLI

    '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
    )

    public:
    static bool ConfigureBatchModeWithThresholding(
       array<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