With it, I create two pulses on Channel 1 and Channel 2 respectively. With the WaveForms GUI, I am able to set a trigger for channel 2 and include a wait and run time. Next I would like to reproduce this with the SDK in Python for easier integration into my existing measurement procedure. This mostly works but two things are not clear to me.
1. Do I need to set the two channels to "Independent" (as opposed to "No synchronization" or "Synchronized")? Or is this done automatically as soon as I configure a wait time or run time of the signal ? For instance, a small part of my code includes:
2. How do I set the trigger to "Scope"? In the reference manual, I have found what I believe to be the correct command (FDwfAnalogOutTriggerSourceSet), but I am confused as to which of the arguments is the correct one to achieve this (trigsrcDetectorAnalogIn, trigsrcAnalogIn, etc).
Any help would be greatly appreciated :)
Edited by Hansi Not all words were written correctly
Question
Hansi
I use an Analog Discovery 2 device.
With it, I create two pulses on Channel 1 and Channel 2 respectively. With the WaveForms GUI, I am able to set a trigger for channel 2 and include a wait and run time. Next I would like to reproduce this with the SDK in Python for easier integration into my existing measurement procedure. This mostly works but two things are not clear to me.
1. Do I need to set the two channels to "Independent" (as opposed to "No synchronization" or "Synchronized")? Or is this done automatically as soon as I configure a wait time or run time of the signal ? For instance, a small part of my code includes:
dwf.FDwfAnalogOutWaitSet(hdwf, c_int(1), c_double(67e-6)) # wait length
dwf.FDwfAnalogOutRunSet(hdwf, c_int(1), c_double(2e-6)) # pulse length
Is this enough to have them be "independent"?
2. How do I set the trigger to "Scope"? In the reference manual, I have found what I believe to be the correct command (FDwfAnalogOutTriggerSourceSet), but I am confused as to which of the arguments is the correct one to achieve this (trigsrcDetectorAnalogIn, trigsrcAnalogIn, etc).
Any help would be greatly appreciated :)
Not all words were written correctly
Link to comment
Share on other sites
6 answers 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