I designed a signal generation program using LabVIEW and NI 9263 signal output card as the generating device. Whether I use it to generate a DC or AC signal, at the end of the program, if I don't zero the output, the output card will continue to output the last value passed to the DAQmx write module (a DC signal), so I wanted to implement the ability to zero the output at the end of the loop so as not to cause a continuous power loss to my load. I would appreciate your help on how the program should be designed.
Solved! Go to Solution.
I don't know whether I am misunderstanding what you are asking, but I don't see any problem writing an array of 100 zeros after your loop has finished and before you close the DAQmx channel, just like you do before the loop starts.
As you mentioned "I designed a signal generation program using LabVIEW and NI 9263 signal output card as the generating device" ,so your objective seems like you want to simulate one waveform generator.
As i see in your code that you set the 'Regeneration mode' for the AO Write.As per the definition of the regeneration 'https://www.ni.com/en-in/support/documentation/supplemental/06/analog-output-regeneration-in-ni-daqm...' ,the samples which you write to the AO Write vi will be regenerated as a continuous waveform.
Then in that case, the while is not required for that and just wire the output of Sine wave generator vi to the AO write and signal will be generated continuously.