Go to Help Menu and click on "Find Examples...". Then under "Control and Simulation", find "PID". There you have several examples of how to do PID control.
Then, look at the 'Simulation - Lead-Lag.vi". This examples shows how to create a sinewave and apply to the controller (in this case, a lead-lag controller).
The trick to feed signals to PID is to think as how you can feed the controller with one point after another. You can also look at the point-by-point palette under signal processing. And if you profile is based on steps and ramps, look at the setpoint profile.vi in the PID palette.
Hope this helps...
Barp - Control, Simulation, RTT and HIL - National Instruments