Hello, I have a simple question.
I try to read a port with NIDaq Ni9421 after starting the corresponding task:
// Create the task.myTask = new Task();
// Create channelmyTask.DIChannels.CreateChannel(physicalChannelComboBox.Text, "",
// Configure digital change detection timing
// Add the digital change detection event handler
myTask.SynchronizeCallbacks = true;
myTask.DigitalChangeDetection += new DigitalChangeDetectionEventHandler(myTask_DigitalChangeDetection);
// Create the readermyDigitalReader = new DigitalSingleChannelReader(myTask.Stream);
// Start the task
bool data = myDigitalReader.ReadSingleSampleMultiLine();
After reading the port I get the Exception Error -200284
Some or all of the samples requested have not yet been acquired. To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger, make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.
What do I have to change to get my code running. I there a method to wait until all samples are acquired.
Thanks for your help