I have an Analog Discovery 2 and trying to create a sonar simulator response echo signal. Let me explain the sequence of what I‘m trying to do. Use the AD2 ch1 analog scope input to receive an external burst (sonar transmission) which the AD2 can trigger on. I’ll call this time “T0” which should be near the rising edge of the first cycle of the sinewave. Once triggered, I want the WG #1 to output a echo burst signal at a DELAYED time from the trigger that occurred on the scope input. This simulated echo pulse sonar transmission can be 10kHz with a pulse length of 50msec (N cycles = 500). It will start at the DELAYED time which I’ll call “Techo” which is a variable. The range of Techo can be between 11 msec to 3 sec or there about from the initial T0 time. The external signal is manually generated by pressing a button to start the sequence.
So using the SDK, able to trigger on the external burst signal. But need help in setting the echo time Techo . I’m thinking of using the AnalogOutTriggerSourceSet as ch1 and then use the AnalogOutWaitSet as the Techo time. Would this work? Trying to understand what AnalogOutWaitSet does? Would this call give me an accurate Techo time of when the WG#1 would output a burst?? I’m looking for an accuracy of 5% for the Techo time when measuring between T0 and Techo.
Question
RichSCorp
Looking for some help.
I have an Analog Discovery 2 and trying to create a sonar simulator response echo signal. Let me explain the sequence of what I‘m trying to do. Use the AD2 ch1 analog scope input to receive an external burst (sonar transmission) which the AD2 can trigger on. I’ll call this time “T0” which should be near the rising edge of the first cycle of the sinewave. Once triggered, I want the WG #1 to output a echo burst signal at a DELAYED time from the trigger that occurred on the scope input. This simulated echo pulse sonar transmission can be 10kHz with a pulse length of 50msec (N cycles = 500). It will start at the DELAYED time which I’ll call “Techo” which is a variable. The range of Techo can be between 11 msec to 3 sec or there about from the initial T0 time. The external signal is manually generated by pressing a button to start the sequence.
So using the SDK, able to trigger on the external burst signal. But need help in setting the echo time Techo . I’m thinking of using the AnalogOutTriggerSourceSet as ch1 and then use the AnalogOutWaitSet as the Techo time. Would this work? Trying to understand what AnalogOutWaitSet does? Would this call give me an accurate Techo time of when the WG#1 would output a burst?? I’m looking for an accuracy of 5% for the Techo time when measuring between T0 and Techo.
Thanks for any help is setting this up.
Link to comment
Share on other sites
7 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