Phosfor
2006-12-18 10:10:09 UTC
Hi,
I want to detect the falling edges of the digital I/O's of my DAQ-card (PCI-6013).
When I write the code, I use the following command:
DigitalTask.Timing.ConfigureChangeDetection("", Channels, SampleQuantityMode.ContinuousSamples, 1000);
The string Channels has the value: "Dev1/port0/line0:7"
When this command is run, the compiler (C#) gives an error, with the following comment:
Requested value is not a supported value for this property.
Property: National Instruments.DAQmx.Timing.SampleTimingType
You Have Requested: NationalInstruments.DAQmx.SampleTimingType.ChangeDetection
You Can Select:
NationalInstruments.DAQmx.SampleTimingType.OnDemand
Task Name: _unnamedTask<5>
Status Code: -200077
How is this possible. The same line of code is used in the examples from NI. These exampples give the same error!
The exapmle is:
C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmx\Digital\Read Values\
ReadDigChan_ChangeDetection\Cs\ReadDigChan_ChangeDetection.2005.sln
Please advise!
Kind regards...
I want to detect the falling edges of the digital I/O's of my DAQ-card (PCI-6013).
When I write the code, I use the following command:
DigitalTask.Timing.ConfigureChangeDetection("", Channels, SampleQuantityMode.ContinuousSamples, 1000);
The string Channels has the value: "Dev1/port0/line0:7"
When this command is run, the compiler (C#) gives an error, with the following comment:
Requested value is not a supported value for this property.
Property: National Instruments.DAQmx.Timing.SampleTimingType
You Have Requested: NationalInstruments.DAQmx.SampleTimingType.ChangeDetection
You Can Select:
NationalInstruments.DAQmx.SampleTimingType.OnDemand
Task Name: _unnamedTask<5>
Status Code: -200077
How is this possible. The same line of code is used in the examples from NI. These exampples give the same error!
The exapmle is:
C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\DAQmx\Digital\Read Values\
ReadDigChan_ChangeDetection\Cs\ReadDigChan_ChangeDetection.2005.sln
Please advise!
Kind regards...