12-15-2016 01:03 PM
Firstly thanks for your reply and sorry the demo temp was included in an earlier post and I was having trouble attaching the vi's so once it added that time I just uploaded the new vi. I used the loop count to simulate a trend either positive or negative as the demo temp vi just sends out a random temp reading. I just averaged the readings and to simulate a negative I subtracted the loop count after a bit of maths to slow the rate. Conversely added to create the positive trend. I'm not sure I can see how to create the logic you're suggesting but I know what you're getting at. I was trying to use that exact situation to trigger the heater on or off. I just think I'm too close to it and have become too tunnel visioned. I used an or statement so that the heater will be on if it's less than the max or less than the lower limit.
12-15-2016 01:47 PM
I did end up downloading the vi from the other post.
Set your upper to 50 and your lower to 30 and watch what happens over time. Probe the number that you are adding and subtracting from the temp. See anything strange?
Think of the heating logic as a case structure. If the heater is off is the temp below the min? If yes turn on. The heater is on and is the temp above the max? If yes turn off. Break it down into simple steps. Create a new vi with a slider that represents temperature and create the logic to turn the heater on and off. That way you can test how the logic reacts to the temperature and not worry about the rest of the program. You might be trying to do too many things at once right now.
Is it a requirement to use the demo temp vi? I am still really confused with it. You read it in and do your average on it, but when you add or subtract for heating on/off you put the number into a shift register that goes nowhere. And then use the demo temp again that does not contain the number you just modified for the heating on/off, so it just wanders around.
You need a better way to simulate the temperature you are tying to control. But that is just me.
12-15-2016 02:14 PM
Its not a requirement but it is a recommendation. I'll take another look at it tomorrow in work to see whats going on. I think the point your refering to teh number your adding and subtracting is that the number is ever increasing. Thanks again Bryan.
12-15-2016 02:33 PM
Just a question about AC. Are you sure that is electric power and not Air Conditioning?
If you are only doing the heating circuit for thermal control you could assume that the temperature is only going to get colder. So you could start with a constant temperature of say 20 and slowly decrease it over time until it hits the min temp. Then as long as you add more heat the temp will rise to the max setpoint and then slowly come back down to the min temp. It really depends on how realistic the temperature model is supposed to be.
And yes, the point was exactly that the number was ever increasing and would do very strange things to your temp reading when the heater turned on or off.
12-22-2018 11:42 AM
hi there scoobie was this an assignment for it sligo by any chance
12-22-2018 03:19 PM
Yes it most definitely was
12-22-2018 03:29 PM
Reading through that I thought as much it's pure torture. How did u fair out in the end
12-22-2018 03:47 PM
Got it done in the end. Managed to get 76% so was happy enough.
@johnnybravo. wrote:
Reading through that I thought as much it's pure torture. How did u fair out in the end
@johnnybravo. wrote:
Reading through that I thought as much it's pure torture. How did u fair out in the end
08-24-2023 12:31 PM
Kindly, share the stimulation diagram