Jump to content
  • 0

Digital Discovery using SDK


mmmm

Question

Hi.

I'm using digitai discovery.
I want to generate a pattern using SDK (python).

What I want to do can be done in Waveforms by following the steps below.
 Select:Patterns --> Add:Signals --> Select:DIO24 --> Type:clock, Output:PP, Idle:Initial, Freq:1kHz, Duty:50% --> Run!

But I don't know how to do it using SDK(python).

Could you tell me a sample program?

Thanks.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Thank you for the response. 

I had a hard time understanding that DIO 24 is idxChannel 0, but I was able to solve it.

I have one more question.

I want to check the generated pattern with a logic analyzer. So, I'm trying a sample program of DigitalIn_Acquisition.py.

But the y-axis value of the graph is always 0.

Is this correct?

How can I display the generated square wave(1kHz,50%duty)?

Thanks.

code.jpg

pyplot.jpg

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