Labview shaping waveform
I made a program according to your request. The time unit of LabVIEW program is milliseconds.

If your version of LabVIEW is above 2009, you can directly pull the picture to the program block diagram to generate the program.

If you have any questions, please contact me directly.