01-16-2008 08:55 AM
01-17-2008 07:37 AM
@dki55 wrote:
Hi,
we are using a PCI-6518 for digital I/O to handle in a C# program. With DigitalChangeDetection ist works so far. But one problem is to get the initial values after starting the Task. In this case we do not expect a change, we only want to know the actual state of all input ports. We tryed to use the method ReadSingleSampleMultiLine( ) but it seems that the buffer is initial empty and this methodà  comes in a timeout.
Is there a method to get the initial values from this I/O card?
01-17-2008 08:12 AM
01-17-2008 08:17 AM
01-17-2008 09:41 AM
I don't know that particular hardware, but do you have any extra change-sensitive DI bits available and perhaps a spare DO bit somewhere? If so, you could fire off an initial change yourself with the spare DO wired directly to the spare DI.
(I faced this problem before, needing to know the initial state prior to the first detected change. In my case, I had control of the environment enough that I could do a static port read, then stop and reconfigure for change detection without missing anything. Your case sounds different.)
-Kevin P.
01-18-2008 08:16 AM
@dki55 wrote:
Thanks Sebastian! Meanwhile I'm trying to do so. But You'r right: The Time between initial read and starting changedetection task is lost. May be the gap ist very small but there is a gap. I'm afraid that we must live with this looseness.
Or ... ist there anybody with a better solution without a gap?