The influence of sinusoidal (trigonometric cosine [TC]) and nonsinusoidal waveforms (square, sawtooth, and triangular) of internal heat source modulation on triple diffusive convection in viscoelastic liquids is investigated. An Oldroyd-B type model is taken into account for viscoelastic liquids. Nonlinear analysis is carried out using a truncated representation of the Fourier series. To analyze the heat and mass transfer over a triply diffusive liquid layer, expressions for average Nusselt and average Sherwood numbers are derived using 8-mode generalized Lorenz equations. The transient behavior of Nusselt and Sherwood numbers is analyzed on different parameters of the problem. From the results, it is found that the internal heat source enhances the heat transfer and diminishes the mass transfer while the heat sink diminishes the heat transfer and enhances the mass transfer. The results for respective waveforms are obtained for each parameter and it is found that the maximum heat and mass transfer occurs due to TC waveform. The limiting cases of viscoelastic liquids (Newtonian, Oldroyd-B, Maxwell, and Rivlin-Ericksen) have been tabulated and corresponding results for each of the waveforms on heat and mass transfer have been shown.