Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

updating duty cycle pwm

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

0 Kudos
Message 1 of 2
(3,019 Views)

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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 2
(3,010 Views)