Jump to content
  • 0

Python script to use Analog Discovery 3 as SPI slave


Aurelien

Question

Hello,

I am already using the new functionality of waveform to use the AD3 as an SPI slave, and it works great.

Can i use analog discovery 3 as a SPI slave? - Test and Measurement - Digilent Forum

But I would like to integrate this functionality into a separate application or script.

I started looking at the Python API, and I feel like all the pieces are there in the API and the examples to do it, but it does not look quite so easy, especially the timing due to the different SPI configurations possible.

Before I start going deeper in the implemenation, I wonder I someone has already done it ?

Or maybe has access to the source for the SPI slave tab of WaveForm ? (Maybe it is also in python)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Thanks you for the response.

By ROM logic, do you mean the pattern generator ?

Because I was thinking of using FDwfDigitalOutTypeSet, like in DigitalOut_SPI.py.

And mixing it maybe with ideas from Digital_Spi_Spy.py for the triggering.

 

But since it looks complicated, I will hold off for now.

The tab in waveform is enough. I will wait to see if it is really necessary for the project. 

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