LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

refrigerator temperature control

Hi, I have set up at VI (attached) that makes use of a DAQ. The project that I am working on is to control the temperature of both the refrigerator and freezer compartments. This is done by turning the output of the appropriate channel on whenever the temperature in either compartment rises above the set level.

 

I am having no problem turning the ports on and off, so this portion of the project works. But I am having a problem coming up with logic that allows me to turn on and off the unit's compressor (for the freezer) and fan (to pull freezer air into the refrigerator compartment). The goal is to allow a buffer region around the set temperature, so that the compressor or fan are not always being cycled on and off as the temperature rises above the set temperature and falls below it.

 

So, the goal is to keep the compartments set at the temperature that the user sets by turning the compressor and fan on and off, but in addition, the compressor and fan cannot constantly be turning on and off because this will damage the devices, most importantly the compressor. If anyone has any ideas, or has experience with this, I would greatly appreciate your help. Thank you.

0 Kudos
Message 1 of 6
(4,489 Views)

RyanB87

 

I made an example of what I think you are after.  Hope this helps.

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 2 of 6
(4,467 Views)

You need to design in a hysteresis algorthim.  Instead of turning on or off depdending on a setpoint, you look at a setpoint with a band.

 

If temp > then the setpoint + band, then turn on refrigerator.  If temp < setpoint - band, then turn off refrigerator.  If temp is < SP + band and is > SP - band, then leave the refrigerator in whatever state it is in (on or off).

 

You will use a shift register to keep track of the current state of the refrigerator.

 

Attached is a subVI in LV2009 I called Deadband.vi which I use for such a purpose.

Message 3 of 6
(4,466 Views)
I am running Labview Version 8.2. Could you possibly resend what you sent me so that I can open it with 8.2?
0 Kudos
Message 4 of 6
(4,461 Views)

RyanB87 wrote:
I am running Labview Version 8.2. Could you possibly resend what you sent me so that I can open it with 8.2?

 

Herrlin

Just trying to spread the LabVIEW love.
0 Kudos
Message 5 of 6
(4,459 Views)
Mine as LV8.2
0 Kudos
Message 6 of 6
(4,454 Views)