Jump to content
  • 0

Measuring a PWM (500Hz) signal with python sdk


diodo93

Question

Hi!

I have a Discovery3 and I'm trying to measure a PWM signal (500 Hz) with python. I took a look at the examples but I didn't manage to do it (mainly DigitalDiscovery_RecordToFile.py).

Basically, I'm using the digital pin 0 (DIN 0) connect to my PCB which generates a PWM signal up to 1600Hz. 

I'm a little bit desperate because I can do it easily with the GUI, but with python I can't even record the signal in a bin or csv file and it seems to be a simple thing.

Thank you so much for your help.


image.thumb.png.1c9b35b48db1d117b750054131da7b2d.png



Edit: I found this https://forum.digilent.com/topic/28180-sdk-python-pwm-duty-cycle-and-frequency-measurement/#comment-85246

Edited by diodo93
add new info
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @diodo93

As the name should suggest the "DigitalDiscovery_RecordToFile.py" is an example for the Digital Discovery and not Analog Discovery.
See the DigitalIn_Acquisition.py DigitalIn_Trigger.py ... examples

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