dahum,
Let me see if I completely understand your application. Basically from what I understand you would like to generate a DC value followed by some dynamic signal. You have attempted to do this by creating one task for the DC output and another task for the dynamic signal. However, when you stop the DC output and start the dynamic signal you see a 5 ms glitch to 0V? Is this correct? What would be ideal behavior, that the channel remains at the DC value until the dynamic signal begins, or that the channel goes to some specific voltage between the DC output and the dynamic signal output? How are you initiating the change between the DC value output and the dynamic output? Do you use a software button on your front panel, or do you use some external digital signal, or is the timing set beforehand?
If know beforehand how long you need to generate the static 2.5 V signal you can create a buffer in software that contains this DC value for some specific number of samples and then contains the dynamic signal. The DC signal could be generated using the same update rate as the dynamic signal you just write a number of samples that have the same value (for example 2.5, 2.5, 2.5, 2.5, etc.).
If you need to dynamically set when the waveform changes from DC value to the dynamic signal you can simply write new values to the buffer instead of stopping and restarting the task but the new values will not show up until the old values are finished generating (to clear out the FIFO).
I look forward to further understanding your application
Regards,
Neil S.
Multifunction DAQ
Product Support Engineer
National Instruments