Jump to content
  • 0

Waveforms SDK - SPI Baud rate calculation


Timotej Merklin

Question

Hi,

I am using the Analog Discovery 2 and the Waveforms SDK in python.

I want to create a function which gets/calculates the baudrate from the clock.

At the moment this in my config:

  • set trigger to CLK
  • Divider: -1
  • Sample format: 8
  • Trigger Position set: -1
  • Use the "FDwfDigitalInStatusTime" to get the device time
  • acqmodeRecord

I have also tried singleshot mode and to put the divider at 1

I am having problems as I see the function getting the devices time only gets the time from one trigger, even though the data pulled is from multiple triggers of the clock.

 

I would like to get the time of the first clock trigger and the second one. With this I could calculate the baudrate.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @attila

I tried doing a single capture but looks like I am getting some errors when capturing data.

Perhaps I am configuring something wrong, I am guessing I should just be able to configure the BufferSize, TriggerSet, start the capture and then get the data with DigitalInStatusData.

Could you point me in the right direction if I am missing something?

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