Error -1074126845: Maximum Time Exceeded Before the Operation completed.

Updated May 1, 2018

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

When running my LabVIEW code, I receive the following error when executing a NiScope Read or NiScope Fetch:

Solution

This error was returned because the timeout occurred before any samples were received. Below are some possible reasons for this error:

 

Adjust the timeout value:

If your sampling rate is low and/or your samples to read is high this may allow the time to elapse, returning an error. To correct this increase the timeout to accommodate the rate and the samples to read. The timeout value should be larger than the number of samples to read divided by the sample rate.
 

Verify that the start trigger is configured correctly:

With the digitizers, there are three different types of triggers that can cause this error:
  • Software Trigger
  • Analog Trigger 
  • Digital Trigger.
Depending upon the trigger, there are different solutions to this error.

NiScope Configure Digital Trigger:
A digital trigger will be coming through on PFI/RTSI/Trig line. Verify that the trigger is operational and sending its signal properly through the hardware. Verify that the hardware can support the line on which the trigger is being sent. Then, verify that the software session is looking for that trigger on the proper line.

NiScope Configure Analog Trigger:
With an analog trigger, it starts when the acquired signal has performed a certain action. Verify the signal is being acquired correctly without the trigger. For example, if the analog edge trigger is configured, make sure the signal passes the voltage value set in the task. Then, verify that the software task is looking for that trigger on the proper line.

NiScope Configure Software Trigger:
With a software trigger, the session will not begin to acquire the data until the NiScope Send Software Trigger Edge has been executed. Verify this is being executed before the NiScope Read or NiScope Fetch. If this isn't possible, change your code to remove this error when it is returned. For information on this, please see DeveloperZone Example: Clear Specific Error.

Additional Information

There is a timeout input for the NiScope Read or NiScope Fetch VI. Timeout specifies the amount of time in seconds to wait for samples to become available. If the time elapses, the VI returns an error as well as any of the samples read before the timeout elapses. If the input is not wired it is set to the default value of 5 seconds. If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0, the VI tries once to read the requested samples and returns an error if it is unable.

WAS THIS ARTICLE HELPFUL?

Not Helpful