01-28-2019 03:22 PM
Hello all,
I have two analog output signals(that I produce using a custom python script and spitting them out as a 2xN array). The first signal is just a pulse train that goes at some frequency. The other is an analog signal that is normally a constant value, but at predetermined moments it changes to a different value during the time the other AO is sending a pulse (+/- some overhead). Then both values go to zero intensity for ~40ms. I would like to have it where, instead, the second AO signal changes based off of a digital falling edge trigger. I picture of the desired waveform is below.
I am seriously struggling on figuring out how to do this. I've considered having the AO be retriggerable, and then having the higher intensity waveform sections premade, and spitting them out relatively soon after the trigger. I assume there will be some timing issues with ending/restarting a new output, but so long as the timing of my waveforms is correct around the time of the higher intensity pulse (and not too long after the trigger +/- 100ms at absolute worst) then I would be fine with that.
I've tried attempting to make the analog outputs retriggerable, with no clear indication on how to do so. I have tried using a method where a counter is used as the clock signal for the AO signals, and that is supposedly retriggerable, but I am not having luck with the counters.
Any advice on how I should go about this?
01-28-2019 05:59 PM
Your USB-6003 is not well-suited for what you are trying to do.
If you know your signal timing in advance, you can probably get this done another way. Put both AO channels into a single AO task, predefine the two channels' distinct waveforms, write them into the task buffer and start the task.
-Kevin P