LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control light intensity with desired profile using PWM

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!

Download All
0 Kudos
Message 1 of 2
(2,764 Views)

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?

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 2 of 2
(2,706 Views)