Start Analog Ouput with a Condition/Trigger
Dear Dewesoft,
I am generating a pulse signal with Function Generator, from a math channel I created. I would like to start the generation of this waveform as an ANAOG OUTPUT with a given trigger, which I can set with an event, for example.
How can I do this? It seems I can decide to start the output either on start acquisition or manually, but I need to do it automatically. Is there any way to do it? Can I use a different variable from "time" in the math channel do it it? Or start counting the time from using the same trigger too?
Please let me know how I can do it. I have tried for some time using the software, but could not manage yet to find a way.
Thanks for your advice,
Emanuele
Technical support
Dear Emanuel,
if we understand correctly, you created a math channel which you want to output via AO at a certain trigger.
For this functionality you can create a math formula with if statement. For example:
if(time<3,0,sine(1))
If you assign this math channel in AO it will start generating a sine wave after 3 seconds. For the first three seconds the AO will output value 0.
You also need to consider a delay between the actual math channel and an AO channel. You can configure the AO buffer length in setting/performance.
Regards