mms14 Posted January 15 Share Posted January 15 Hello, I'm working in Raspberry Pi with AD3, I would like to configure my device in SDK like this configuration from Waveforms : 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 More sharing options...
1 attila Posted January 16 Share Posted January 16 Hi @mms14 See the WF SDK/ samples/ py/ DigitalIn_Acquisition.py example Link to comment Share on other sites More sharing options...
Question
mms14
Hello,
I'm working in Raspberry Pi with AD3, I would like to configure my device in SDK like this configuration from Waveforms :
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 accountSign in
Already have an account? Sign in here.
Sign In Now