logicmax Posted July 17, 2021 Share Posted July 17, 2021 I am trying to get a C++ program to compile that matches this waveforms output. I am having trouble with using the Trigger 1 input to trigger the analog output. Any help would be very much appreciated. Link to comment Share on other sites More sharing options...
0 attila Posted July 19, 2021 Share Posted July 19, 2021 Hi @logicmax if(!FDwfAnalogOutNodeEnableSet(hdwf, i, 0, 1)) return false; if(!FDwfAnalogOutIdleSet(hdwf, i, DwfAnalogOutIdleInitial)) return false; if(!FDwfAnalogOutTriggerSourceSet(hdwf, i, trigsrcExternal1)) return false; if(!FDwfAnalogOutTriggerSlopeSet(hdwf, i, DwfTriggerSlopeFall)) return false; if(!FDwfAnalogOutWaitSet(hdwf, i, 1e-6)) return false; if(!FDwfAnalogOutRunSet(hdwf, i, 2e-6)) return false; if(!FDwfAnalogOutRepeatSet(hdwf, i, 0)) return false; if(!FDwfAnalogOutRepeatTriggerSet(hdwf, i, 1)) return false; if(!FDwfAnalogOutNodeFunctionSet(hdwf,i, 0, funcPulse)) return false; if(!FDwfAnalogOutNodeFrequencySet(hdwf, i, 0, 500e3)) return false; if(!FDwfAnalogOutNodeAmplitudeSet(hdwf, i, 0, 1.0)) return false; if(!FDwfAnalogOutNodeOffsetSet(hdwf, i, 0, 0.0)) return false; if(!FDwfAnalogOutNodeSymmetrySet(hdwf, i, 0, 0.05)) return false; if(!FDwfAnalogOutNodePhaseSet(hdwf, i, 0, 0.0)) return false; Link to comment Share on other sites More sharing options...
0 logicmax Posted July 20, 2021 Author Share Posted July 20, 2021 This is super helpful thanks attila 1 Link to comment Share on other sites More sharing options...
Question
logicmax
I am trying to get a C++ program to compile that matches this waveforms output. I am having trouble with using the Trigger 1 input to trigger the analog output. Any help would be very much appreciated.
Link to comment
Share on other sites
2 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