07-06-2006 11:20 AM
And for my second question:
Random detection was observed.
My method was:
I used these to examples:
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\Digital\Read\Values\ReadDigChan_ChangeDetection_Events
I wired Port0/line0:5 to Port2/line0:5. And used Port0 as an input and port2 as an outputport. The readport was first configured to react on both rising and falling edge and later line0:5 rising and line6:7as falling. Then I tried to count binaray from 000 to 111 using only line 0:2. At around line0:2="100" the reciever UI started to react. But suddently also line4 that I hadn't been touching this line. I was able to do this many times with the same strange result. Sometimes data was not latch and sometimes it were. Then I applied only rising on the lines0:5. and falling on line6:7 But it just goteven worse and finally I got a - 200088 error. Please can anyone tell me what I am doing wrong?
07-21-2006 06:57 AM
Hi,
Regarding your first question:
The method that you mention is the correct one. Configuring the change detection timing in step 2 is required, as the drivers need to know how to read data on the port.
Regarding your second question:
There is a better way to see digital changes at port0/line0:7.
Use the same setup as you described in the thread.
Run the example from "C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Events\Signal\Change Detection\Read Dig Chan-Change Detection Event" and using MAX to control your digital outputs at port2/line0:7.
Try to control only one line at the time in MAX, then you will be able to see the line changes at port0. At the same time you can see the where the changes have been made(Changed Lines), and the digital values of port0(Data read).
The example reacts every 4. input at port2/line0:7.
Regards
07-25-2006 09:48 AM