02-13-2010 06:06 AM
Hi Folks,
I have built a vi for the pwm control of a solid state relay but dont know how to modify it so i can change the values while the vi is running.I am pretty new to labview.I must stop the vi each time i want to alter the values for frequency and duty cycle.
Thanks
02-13-2010 01:37 PM
Looking at the code you did post (some vi's are missing) I can see that each time you enter the Update state the period and duty cycle are read from the front panel terminals and put into their respective shift registers.
Therefore if you change the value in the controls the new value will be applied on the next low-High transition. Certainly not the cleanest code but workable.