How are you outputting this function? which vi are you using ?
You probably are using the basic AO function in a while loop, and for each iteration you output the next value of f(t).
In this while loop, you can monitor the fault condition at the same time (may be a digital-in of a relay switch). When the fault is detected, just exit the loop and output a zero(safe value) voltage.
Hardware implementaion will also work. It is going to be faster, probably more reliable, and may be more costly.
No I am not using the AO function in a while loop. I am using a modified vi from the All Functions >> Waveforms >> Analog Waveforms >> Waveform Generation Palette similar to the Triangle Waveform.vi to generate a waveform that is used by the DAQmx Timing.vi and the DAQmx Write.vi. I tried the looping a incrementing DC level and the output was distincly not what I wanted . . .
Perhaps it would be better to break my waveform up and do fault checking at strategic intervals and dealing with the discontinuity with some code that will bring my waveform back into shape. There will be discontinuities, but it would save me hardware development and test time. Hm, . . . time to experiment.
I'm still open to ideas . . . 🙂
Rick