For diodes, this is generally the way you do it: How do I turn on my diode at low power to focus it or frame a job?