08-03-2008 04:24 AM - edited 08-03-2008 04:30 AM
Hi all,
I am trying to set a timeout (if possible) to the async reading of digital input for the PICe
6537 card and by timeout I mean how long it waits when there is no changes before an exception is
thrown. Currently my setup is that I have a client which creates a graph out of
the information sent to it by the .NET app which is on the pc where the card is
connected. I would like to know if it’s possible to set a timeout when
you start a digital async read (i.e. how long it should wait with no activity before throwing an exception). Currently it is about 10 seconds before it
throws an exception (i.e. no lines have changed) however I would like to
change that to a value which is given to me like 5 seconds or 2 seconds when
the win32 app is started.
I have tried to change the amount of samples it takes per channels and even the
sampling mode to Finite Samples within the ConfigureChangeDetection method but I
have had no luck (it still times out after 10 seconds of no activity).
In case it isn't clear i am only doing digital IO. Any ideas?
Thanks David
Edit: I have found the thread for this (The timeout method was in the task's stream)08-04-2008 08:28 AM
08-04-2008 08:47 AM
08-05-2008 09:04 AM