Jump to content
  • 0

Data Acquisition Without Blocking


JH123

Question

Hello, I need to be able to get data off of the analog discovery 3 (using the waveforms sdk) in a non blocking way. The idea is that I start the data acquisition, it runs indefinitely, non-blocking, adding samples to a buffer until I stop the data acquisition myself. I need the processor to be free so that I can control GPIO pins with software. There don't seem to be any examples in the sdk that do this. Is this possible?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @JH123

The functions are non blocking.
You can do anything before, during, or instead of waiting for the software to capture finish.

while True:
    dwf.FDwfAnalogInStatus(hdwf, 1, byref(sts))
    if sts.value == DwfStateDone.value :
        break
print("Acquisition done")

 

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...