the goal is to have a sync operation on producing custom waveform output, and capture two channel analog scope measurement.
I provided my definition of pattern_data to the wavegen, it works. But being produced repeatedly, instead of a one shot output, even after providing function argument repeat=1, and repeat=1, run_time = wavegen_pointCnt/wavegen_freq
The oscilloscope capture seems to indicate the frequency setting in wavegen.generate didn't take effect either, if we checkout the frequency setting in the attached script.
Any idea what I might have done wrongly?
Is it possible to use this SDK to implement sync between oscilloscope and pattern gen? The scope class has a trigger method to call, but wavegen doesn't. The simplest trigsrcPC would be good enough. Many thanks in advance for suggestions.
Question
peiqing
Based on test_scope-wavegen.py in https://github.com/Digilent/WaveForms-SDK-Getting-Started-PY.git
the goal is to have a sync operation on producing custom waveform output, and capture two channel analog scope measurement.
I provided my definition of pattern_data to the wavegen, it works. But being produced repeatedly, instead of a one shot output, even after providing function argument repeat=1, and repeat=1, run_time = wavegen_pointCnt/wavegen_freq
wavegen.generate(device_data, channel=1, function=wavegen.function.custom, offset=0, frequency=wavegen_freq, amplitude=2, repeat=1, run_time = wavegen_pointCnt/wavegen_freq, data=pattern_data)
commit 009b7cce1e71b24c6d02c3ad8321e12df3d19c3b (HEAD -> master, origin/master, origin/HEAD)
The oscilloscope capture seems to indicate the frequency setting in wavegen.generate didn't take effect either, if we checkout the frequency setting in the attached script.
Any idea what I might have done wrongly?
Is it possible to use this SDK to implement sync between oscilloscope and pattern gen? The scope class has a trigger method to call, but wavegen doesn't. The simplest trigsrcPC would be good enough. Many thanks in advance for suggestions.
helloworld_test.py
Edited by peiqingLink 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