Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ReadDigChan_ChangeDetection_Events VB example...

Following is based on the ReadDigChan_ChangeDetection_Events VB.NET example (with hard-coded channel strings)...
 
myTask = New Task()

myTask.DIChannels.CreateChannel("Dev1/Port1/Line0", "myChannel", ChannelLineGrouping.OneChannelForAllLines)

myTask.Timing.ConfigureChangeDetection("Dev1/Port1/Line0",  "Dev1/Port1/Line0", SampleQuantityMode.ContinuousSamples, 1000)

...but ConfigureChangeDetection throws an exception:

  Requested value is not a supported value for this property.

Property: NationalInstruments.DAQmx.Timing.SampleTimingType
You Have Requested: NationalInstruments.DAQmx.SampleTimingType.ChangeDetection
You Can Select: NationalInstruments.DAQmx.SampleTimingType.OnDemand

Task Name: _unnamedTask<0>

Status Code: -200077" String

 

0 Kudos
Message 1 of 1
(3,017 Views)