ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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 4
(4,778 Views)
I just got the same problem, same error message! The example provided by NI doesnt work. Im working in C# with a USB-6212 card. Is there a solution?
0 Kudos
Message 2 of 4
(4,501 Views)

Have anybody solved this problem? Just ran into it myself...

 

-J- 

0 Kudos
Message 3 of 4
(4,101 Views)

Never mind. It seems that my board does not have hardware timed digital I/O lines so I have to poll the line value in software and compare it to the previous value and check whether it's a rising or falling edge.

 

-J- 

Message 4 of 4
(4,094 Views)