Jump to content

RichSCorp

Members
  • Posts

    4
  • Joined

  • Last visited

RichSCorp's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Thanks for getting back to Will_SC. I think he was asking why his C++ code was not working. He followed all the SDK API calls that were in your script. Is there some differences that we're missing when using C++?? Could it be the Type Def? Or ... what? We're able to get it working in the Waveforms App. But we want it running in C++ code using the SDK.
  2. 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.
×
×
  • Create New...