LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Air Conditioning Simulation

Solved!
Go to solution

Hey there, I wanted to know if anyone could help me design an air conditioning control.

 

So, it should have three controls, one numeric control where you enter the current temperature (before the a/c kicks in), another one is a numeric control in which you enter the desired temperature, and a button to turn on the a/c. Then there should be two indicators, one thermometer and a boolean LED which indicates when the desired temperature is met. I've been trying to do it with a while loop and a case structure within, actually two case structures, one where it would be the decrement and another one with the increment but I just can't quite grasp the whole design and can't really achieve this. The current initial temperature should be shown in the thermometer when you run the VI but have not yet turned on the a/c, so the temperature should increase/decrease from its initial state according to the desired temperature. Can anyone give me at least an idea of how it could be done?? Thanks in advance.

0 Kudos
Message 1 of 6
(6,605 Views)
Solution
Accepted by topic author samuelaguilar990

here is a hint or start....

Message 2 of 6
(6,573 Views)

Thank you very much, it's even more than I needed and it represents an improvement of the thermostat control, just one question, how did you go about saving the initial room temperature? Could that be controlled like the desired temperature??

0 Kudos
Message 3 of 6
(6,564 Views)

@samuelaguilar990 wrote:

Thank you very much, it's even more than I needed and it represents an improvement of the thermostat control, just one question, how did you go about saving the initial room temperature? Could that be controlled like the desired temperature??


if you look in the initialized state case, you will notice a random number function connected to a DBL 100 constant. This will generate numbers DBL ( 0 -100). you can change that and just put whatever constant you want to start room temp. at, for example this code will always set room temp to 75 ....

Spoiler
thermostat_BD.png

 

0 Kudos
Message 4 of 6
(6,548 Views)

sorry for the bad code....exchange the wait case for this

 

Spoiler
thermostat_BD.png

 

0 Kudos
Message 5 of 6
(6,530 Views)

Good day! Thank you for this system, it's really good. Is it possible if you could explain what you've done here briefly? Especially in the wait section with the select section (referring to the updated version). I'm very new to this software and still getting around the workings. 

A brief explanation as to how this system works would be really appreciated!

0 Kudos
Message 6 of 6
(4,535 Views)