From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,584 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,498 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,419 Views)