Jump to content
  • 0

From Waveforms configuration to SDK configuration, high sample number


mms14

Question

Hello,

I'm working in Raspberry Pi with AD3, I would like to configure my device in SDK like this configuration from Waveforms :

image.thumb.png.5937e7d884117e08707c1154a7775fb3.png

I managed to configure the sampling frequency, I'm stuck when trying to configure the sample number (the 10M top right).

When I configure the 10M samples, the allocated RAM to the script increases until the Pi dies while in Waveforms, it stays constant (15%).

I set the sampling frequency using this :

dwf.FDwfDigitalInInternalClockInfo(device_handle, byref(internal_frequency))
dwf.FDwfDigitalInDividerSet(device_handle, c_int(int(internal_frequency.value / self.sampling_frequency)))

I set the sample number with :

dwf.FDwfDigitalInBufferSizeSet(device_handle, c_int(self.buffer_size))

I attached my script if you need more context (SDK_sample_configuration.py)

Thank you,

SDK_sample_configuration.py

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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