LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Signal Hardware

I have a program in Labview that finds the temperature in my room. I want to run a signal to a fan in my vert that tells it to turn on/off. For example if the temp reaches 80 in my rooom the fan goes on. if it reaches under 65 the fan turns off. Or i want to stabalize the temperature at 72. any help?

Message Edited by nicholas03 on 10-06-2007 09:39 AM

0 Kudos
Message 1 of 7
(3,229 Views)

Hardware-wise, you will need something to read the temperature and get it into Labview, and a digital output to drive a  relay to turn the fan on or off.

Your description of the control is a little confusing.  You say you want to turn the fan on at 80 and off 65.  But also say you want to stablize the room temperature at 72.  A fan control really won't change the temperature of the room, it will just circulate the air around, it really won't make things cooler or warmer, unless the circulation is bring in air from a source that is less than the temperature you want to achieve.  And and On-off control scheme will just have the temperature bounce between 80 and 65, it won't be able to stabilize it had 72, unless you tighten up the control range, and the circulation of air actually does affect the temperature.

All that said, going back to your original on/off scheme is doable in software.  You will just need a loop that tracks the state of the digital output using a shift register.  Also a case structure.  Case 1, fan is off and temp >80, turn on fan, feed true value  to right side shift register.  Case 2, fan is on and temp< 65, turn off fan and feed false value to right side of shift register.  Case 3, the default case when neither condition 1 nor 2 is true, do nothing just feed the wire through from the left to right side shift register.

0 Kudos
Message 2 of 7
(3,210 Views)
you are right my question was poor.  what i want to do is when the temp. is over 80, i want the fan to turn on.
0 Kudos
Message 3 of 7
(3,201 Views)
Thanks for your help i'll try the loop system tomorrow.
0 Kudos
Message 4 of 7
(3,200 Views)
http://forums.ni.com/attachments/ni/170/276613/1/case%20system.vi
Would this work?

Message Edited by nicholas03 on 10-07-2007 10:09 AM

Message Edited by nicholas03 on 10-07-2007 10:11 AM

0 Kudos
Message 5 of 7
(3,197 Views)
I don't know.  It was missing a bunch of sub-VI's that I'm not sure what they would all do.  It seems like you have a lot of code for analysis functions, but I don't see anything that really leads to control of a fan.
0 Kudos
Message 6 of 7
(3,175 Views)
Don't know why you took a shipping example and renamed it. Also, the mods you did were purely cosmetic and have nothing to do with your stated goal. It's a place to start if all you want to do is simulate a temperature acquisition and fan control. You would get rid of the whole analysis case and rename the 'OVER TEMP' to 'FAN ON'. Delete the 'UNDER TEMP' indicator and you are done.
0 Kudos
Message 7 of 7
(3,174 Views)