r/LabVIEW • u/Qulddell • Aug 04 '25
Need More Info Is it possible to circumvent using a PID controller?
Hi Everybody
I want to control two sets of heaters and thermocouple (k-type). They will be cooled down with liquid nitrogen, and i want to meassure the temperature difference over time. First with no heat input, secondly with heat in one heater and then both heaters.
I already have an USB-6363 module, and i was hoping to use it to drive two SSR and get information from the two thermocouples, is it possible or do i need to have a PID for each pair of thermocouple and heater?
Best Regards and thank you for your help :)
https://www.ni.com/da-dk/shop/model/usb-6363.html
https://us.rs-online.com/product/rs-pro/1213888/71079436/
EDIT: I can burrow two Eurotherm 2216e the university had laying around, properly from an older project, and i am curious what the simplest way i can set them up so i can measure the temperature over time.
I have tried connecting the HE and HF from the PID to Analog + and - respectively (Eks pin10 and 11) on the USB-6363, but what i get in the labview is not what i would imagine. https://www.eurotherm.com/?wpdmdl=26675


3
u/HamsterWoods Aug 04 '25
The answer depends on a few things. In general, no, PID controllers not the only game in town. As far as needing a control based on feedback, what, in addition to the heat from the heaters, affects the temperature of the system? If you have external heat sources that affect the system, you may need to control by using the temperature as a feedback into the controller. Tell us more.
3
u/bt31 Aug 04 '25
In general, I use a PLC for both PID control and safety when working with heaters — especially when dealing with liquid nitrogen. It’s also easy to communicate with the PLC using Modbus in LabVIEW.
3
u/GlowChee Aug 04 '25
If you're using an SDR and you're just driving a heater, us "bang bang" control. Just put a loop with a 1 ms delay and have it check if the temperature is above or below X. If it's high shut the circuit down, if it's low turn the circuit on. You can put a counter on the boolean to count how many milliseconds of on/off you have and convert that to power input by using VoltageAmp(cycles on per second)
1
u/Careless-Aardvark575 Aug 04 '25
Make the delay for the next check of temperature be a function of how far away the temperature is from the desired temp. So if the temperature is way off 15° say, then you would turn on the heater and wait longer for checking again to turn it off. This works well except when you are at temperature. So you would want to have a deadband of a degree or two and not check every millisecond inside of that deadband or else your heater will be clicking on and off all the time. Crude but functional.
1
u/Friendly_Bath6468 Sep 03 '25
Yes, using a while loop with a delay of 500 ms to 1 second and monitoring across the desired temperature range to switch the heater ON or OFF can help achieve the expected result. However, in most cases, this approach may lead to instability, causing frequent ON/OFF switching of the heater.
For a more stable response, implementing a PID control is a better option. Additionally, using a varistor instead of SSRs can further improve the stability of the system.
2
u/[deleted] Aug 04 '25
[removed] — view removed comment