05-20-2010 09:09 PM
I want to control light intensity using PWM. I want the light intensity to vary with a profile that I have generated, so this profile would be used control the duty cycle. I have attached two printscreens of the VI's i'm working with right now. one with PWM and one with the intensity profile. How would I connect the two to have the light intensity follow my profile?
Thanks!
05-24-2010 08:46 AM
Hi Bonnie,
Your PWM is being generated and outputted to your counter, which means you would need to route it back in and read it, to use it elsewhere in your code. You may want to consider generating a waveform using the signal processing (waveform generation) palette. This way it is directly generated in software and you don't need to route anything back from your hardware.
For example, in your case you could generate a square wave, where you can also set a duty cycle.
Also, I'm not sure what VI's you are using in your lightprofile.jpg. Are those custom VI's or did you change the graphics of your icons?