arduino - LabVIEW case structure and PWM -


i facing trouble labview; working on simple program part of bigger school project. reason, part of isn't being executed properly. put, green led should turn on when temperature below 20, whilst red led should turn on when on 30 (it works until part), tricky part is, fan should turn on when temperature on 35, while using pwm increase fan speed long temperature rising. thing is, fan doesn't turn on whatsoever! used scaling , mapping inside case structure that, have set 0 when temperature 35, , 255 when 45 degrees.

enter image description here

things may want change:

  1. put set digital pin mode.vi in front of while loop because not changing pin mode during execution of code
  2. you need 1 close.vi since closing 1 arduino resource
  3. use shift registers preserve content error wire between iterations of loop
  4. if possible avoid express vis (vis blue frame)

an example pwm (tested mega 2560):

i think reason why version works , yours not there wrong scaling. have not used scaling , mapping instead have scaled signal basic math operations.

front panel block diagram


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -