This error means that the task had to wait too long for the samples you requested to be acquired and timed out. Try the following:
(1) Verify that one or more of the digital signals you are reading is changing and that the lines with the changing signals are entered in one or both of the input controls asking for change detection channels (there is one for detecting rising edges and one for falling edges) (2) Reduce the number of samples you are reading so that they will all occur within 10 seconds. (3) Increase the timeout. By default it is 10 seconds. This will require editing the program and adding the line "myTask.Stream.Timeout = 100000;" before any calls to BeginRead (you specify the timeout in milliseconds, so here 100000 means 100 seconds).
I have tried, but now I get the message about 100 seconds after start instead of 10 seconds (makes sense).
I need to be notified when a value changes. The other approach is to poll the port constantly. I do not want to do this since the program has to do other things...
Changes can occurs 10 times a seconds or have several hours between any changes...