08-14-2008 01:43 PM
08-15-2008 05:04 PM - edited 08-15-2008 05:05 PM
Hello Jane,
From what you've detailed here it sounds like the change detection clock that you're exporting and importing on RTSI2 is either generating the 2 pulses fast enough that the counter input can't register both pulses or it is only sending a single pulse. If you have an oscilloscope available I would recommend exporting this clock to a PFI line so that you can scope the trigger to see if both pulses are being generated or if only a single pulse is being generated.
Also, rather than using the first counter to generate a 20 MHz clock you can just specify the 20MHz time base and the source for your count events task and achieve the same result (a 20 MHz count) with a single counter. Let me know what you find and then we can work on a solution for this issue.
If this is a hardware limitation it may be difficult to determine exactly what order and when each change happens since all events are registered without regard for the specific line, but we'll see what we can do. If you don't have an oscilloscope available let me know--I should be able to try this out sometime Monday.
Cheers,
08-17-2008 01:54 PM
Hello Brooks,
I exported the change detection clock to a PFI line and looked at it on a scope. I can only see one pulse, and it is about 150 nano seconds wide. (It looks the same as a signal that is created when I put a square wave into only 1 of the DI lines.) The M series user manual says that the DAQ devices synchronize each DI input signal to the 80 MHz sample clock and sends it to the change detectors. At 80 MHz, that is only 12.5 nanoseconds per clock cycle. Maybe there were sometimes 2 pulses but they
overlapped. I don't really know how the change detection sorts out the signals. I mean, how does it actually process the
changes when the data are 9,0,9,0,9,0, etc, as in my example above?
For my purposes, it would not matter if it stored simultaneous changes of 2 DI lines as a single 32 bit word or as separate events that had slightly different time stamps. That is , if the time stamps are even a few microseconds apart that would be
good enough. But I need to have a timestamp for each change that is reported, otherwise the data can't be used at all.
If there were a way of detecting changes by using a slower clock than the 80 MHz timebase, that might resolve this for me.
Thanks,
Jane