From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 .net example, digital change detection get error

Hi,
 
  I am using the USB 6008 with C#.net and I am trying to run the the ReadDigChan-ChangeDetect example but I get an exception that says:
Requested value is not a supported value of this property
Property: NI....SampleTimingType
Request:  ...ChangeDetection
Can Select ...OnDemand
Sample Code: -200077
 
  I haven't altered the code so I'm not sure why it wouldn't work.  Thanks
 
Paul
0 Kudos
Message 1 of 3
(3,120 Views)
You get the not supported property error because change detection is not supported with the USB 6008. The digital I/O on the USB 6008 only has the on-demand timing mode. That means all digital I/O is software timed. If you need to detect the change of state of one of the inputs, you have to do it in software by doing a continous read and analyzing the results in your code.
Message 2 of 3
(3,116 Views)
Thanks for your response!
0 Kudos
Message 3 of 3
(3,111 Views)