11-29-2010 06:27 PM
I want to implement a closed-loop ON/OFF control with bang-bang (hysteresis) control, such as room temperature. The loop could use NI9219 (cDAQ) device to measure the feedback temperature signal of the room and use NI9401 (cDAQ) device as a digital output (DO) control. The control output turns the heating unit ON if the room is too cold(17 degrees) or OFF if the room is too warm(23 degrees). The hysteresis determines at what point the heating unit turns ON or OFF. For instance, if the hysteresis is set to 5, and the set temperature to 21 degrees, the heating unit turns ON at 17 degrees and OFF at 23 degrees.
A example is found as follows
http://zone.ni.com/devzone/cda/epd/p/id/505
Do I need to have LabVIEW PID and Fuzzy Logic Control Toolkit and is it coming free with the Labview2009 licence? Can I do this without this toolkit?
All help is appreciated.
Regards
Bing
Solved! Go to Solution.
11-30-2010 01:57 AM
here is one way
the loop just store the heater status ... no big deal.
the symsee attachement gives a curve like this:
I'm shure it can be solved even more simple, however I go for my first coffee now.....
11-30-2010 03:55 AM
Thank you fror your quick reply Henrik.
I need a 2 set values THIGH and TLOW. The hysteresis area is between these 2 boundaries.
For example
40degreeC, heater OFF untill termperature drop to 20degreeC
20degreeC, heater ON untill temperature rise to 40 degreeC
Any ideas? Thank you.
11-30-2010 04:20 AM
Set temp=30 , Hyst=10 will do the job, however, why you should be able to find out by yourself 😉
11-30-2010 05:48 AM
Here is the frontpanel of the 'new type' of 2 point control. The code is even simpler (select and less?) , however no more homework assistance until you post your code 😉
11-30-2010 06:09 AM
Thanks Henrik.
That is a very clever way to do. I do need to work on the programming with Labview, which I think is quite different from C programing.
What is the best point to start please?
I have read the book <<Labview for Everyone>> and tried some demo VIs from the forum.
Regards
Bing
11-30-2010 08:23 AM
Hi Bing,
I have a number of suggestions for you in terms of successfully getting up and running with LabVIEW. Firstly and foremostly I can not emphasise enough how great the LabVIEW Customer Education courses that we offer at NI UK are. The LabVIEW Core 1 and Core 2 courses provide a fantastic grounding in LV programming. These courses are also available in a self-paced format whereby all of the course material is sent to you for you to work through at your own pace. For more information on such courses, refer to the following ink.
The other option if you have an active support contract with NI is that there is a whole host of On Demand training material available at the Service Resource Centre. I have linked this below for you convenience.
If neither of the above suggestions are an option, then I would recommend the Getting Started with LabVIEW guide which I have also linked below for you.
I hope this helps.
Best Regards,
Christian Hartshorne
NIUK
07-15-2014 12:58 PM
Hi,
May I have your new code?
05-04-2015 06:56 AM - edited 05-04-2015 06:57 AM
Hey,
I would be also interested.
Thanks in advance!
05-04-2015 03:09 PM