Jump to content
  • 0

API Lock Time error when using Analog Discovery2


nott1999

Question

Hi,

    I am using puthon scripts to control analog discovery2 as a scope to gather data from oys input. I would use the device to  conduct several pieces of 3-hour data repeatedly. Everything works well for the first recording. But when the second recording starts, the error "API Lock Timeout" appears. The script works well on other computers but only have such errors on one computer. I wonder what may be the cause of such errors.

   I found that the Analog discovery 2 would automatically disconnected to the computer after three hours recording. And it wouldn't automatically reconnected. I have to plug it out and re-plug it to make it connected the computer.

   I only use the analog discovyer 2 as a scope to gather data using two analog input port. So I don't think there are power supply from other sources that would break the hardware.

Edited by nott1999
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hi, 

    I tried different ports of the computer. It would all work for a few hours but disconnected from the computer after a few hours. But the same cable works on other compuers' cable. Since it can work a few hours, do you think it's the computers' port isuues. Thanks

Edited by nott1999
Link to comment
Share on other sites

  • 0

Hi, when I downgrade the waveform software to 3.20. During a four-hour recording, after the recording has ended, we wouldn't find the discovery 2 disconnected to the computer. But during the recording process, there would error "DptiIO failed ERC:10 out:8 in:20\ Analog In status Failed". And then it would start gathering data again. I wonder does it means that the discovery 2 is disconnected to the computer and then connect it back after some time. Or are there any other reasons

The measurement I am conducting is to gather 4 piece of 3-hour data at different scheduled time. I uses Python script to control it. So gathering each piece of data  is an independent scheduled task. They operate independently. The schedule time of different tasks are consecutive time whose gap is 15 mintues. In my case, some of the task works well. But one of the tasks would meet previous mentioned DptiIO errors. I wonder what may be the cause of such errors.

Edited by nott1999
Link to comment
Share on other sites

  • 0

HI,

Actually, I have disabled computer sleep, change the power plan and disable the usb suspend as you have shown. But after a certain time, the error still happens. It seems that it's always happen after a certain time. I wonder what else I can do to solve it

Edited by nott1999
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...