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

Sample buffer 1
Sample buffer 2
Number of samples to read before callback
Sampling time interval in microseconds
Method to call when numSamples collected
Configure ADC to read channels 1 and 2 in continuous mode
Syntax

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

    'Declaration

    Public Shared Function ConfigureContinuousModeDualChannel( _
       ByVal sampleBuff1() As UShort, _
       ByVal sampleBuff2() As UShort, _
       ByVal numSamples As UInteger, _
       ByVal samplingTime As UInteger, _
       ByVal callback As AdcCallBack _
    ) As Boolean

    'Usage

    Dim sampleBuff1() As UShort
    Dim sampleBuff2() As UShort
    Dim numSamples As UInteger
    Dim samplingTime As UInteger
    Dim callback As AdcCallBack
    Dim value As Boolean

    value = AnalogInput.ConfigureContinuousModeDualChannel(sampleBuff1, sampleBuff2, numSamples, samplingTime, callback)

    public static bool ConfigureContinuousModeDualChannel(
       ushort[] sampleBuff1,
       ushort[] sampleBuff2,
       uint numSamples,
       uint samplingTime,
       AdcCallBack callback
    )

    public:
    static bool ConfigureContinuousModeDualChannel(
       array<ushort>^ sampleBuff1,
       array<ushort>^ sampleBuff2,
       uint numSamples,
       uint samplingTime,
       AdcCallBack^ callback
    )

#### Parameters

sampleBuff1
  Sample buffer 1
sampleBuff2
  Sample buffer 2
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