Hi,
The first problem that I see with your block diagram is that you have two Analog Output tasks. You can only have one of these open/running at a time. If you were to close the first one, and then run the second one, that would work. Or, just combine both channels into one.
This should help. Have a Great Day!
George