For the demonstration, we used PXIe-8862, PXIe-1095, PXIe-5413, and PXI-5422. The performance of the VI and hardware is restricted by the OS and controller. Therefore, we do not guarantee the behavior of the hardware/software as explained in this document.
You can start with the Fgen Arbitrary Waveform.vi available in the NI Example Finder. You need to add the digital gain property as shown below.

By using the digital gain property, you can rapidly change the amplitude of the signal between -1 and +1. This method is much faster than changing the waveform data itself because the digital gain is applied just before the DAC.
