Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

myRio Heater ON and OFF control with PID

Hi, I am trying to control the heater OFF when the temperature is over certain value and ON again when the temperature drops with SSR switch. Temperature is measured with K-type thermocouple by using UART with arduino. Now I am in stuck connecting PID VI block. Please give some advice to complete...

0 Kudos
Message 1 of 3
(3,563 Views)

PID gives you an analogue signal(we can said) usually you will variate the power in the heater and not just off/on, if you want on/off you had to decide your upper and lower limit at the output of your PID. 

the connection of the pid is very easy you had your wanted value, you had your actual value(thermocouple) the different between them is the error(e) you had to set your P I and D values.

 

0 Kudos
Message 2 of 3
(3,477 Views)

If you need to maintain the temperature you can use the PWM and give the SSR a duty cycle. There is a PWM block for the myriio. Set your output on the PID for 0-1 (units would represent %) and use that as your dutter cycle. Depending on your clock speed you'll have to play around with the ON/OFF cycle. 

0 Kudos
Message 3 of 3
(3,398 Views)