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.
Question
diodo93
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.
Edited by diodo93Edit: I found this https://forum.digilent.com/topic/28180-sdk-python-pwm-duty-cycle-and-frequency-measurement/#comment-85246
add new info
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