Samraksh eMote .NOW
ConfigureBatchMode 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 : ConfigureBatchMode Method

Sample buffer
Channel to read
Number of samples to read before callback
Sampling time interval in microseconds
Method to call when numSamples collected
Configure ADC batch mode
Syntax

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

    'Declaration

    Public Shared Function ConfigureBatchMode( _
       ByVal sampleBuff() As UShort, _
       ByVal channel As Cpu.AnalogChannel, _
       ByVal numSamples As UInteger, _
       ByVal samplingTime As UInteger, _
       ByVal callback As AdcCallBack _
    ) As Integer

    'Usage

    Dim sampleBuff() As UShort
    Dim channel As Cpu.AnalogChannel
    Dim numSamples As UInteger
    Dim samplingTime As UInteger
    Dim callback As AdcCallBack
    Dim value As Integer

    value = AnalogInput.ConfigureBatchMode(sampleBuff, channel, numSamples, samplingTime, callback)

    public static int ConfigureBatchMode(
       ushort[] sampleBuff,
       Cpu.AnalogChannel channel,
       uint numSamples,
       uint samplingTime,
       AdcCallBack callback
    )

    public:
    static int ConfigureBatchMode(
       array<ushort>^ sampleBuff,
       Cpu.AnalogChannel channel,
       uint numSamples,
       uint samplingTime,
       AdcCallBack^ callback
    )

#### Parameters

sampleBuff
  Sample buffer
channel
  Channel to read
numSamples
  Number of samples to read before callback
samplingTime
  Sampling time interval in microseconds
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