Go to Post Now if MTV had an episode of "Made" where the school's top jock wanted to drive a FIRST's teams robot to victory...now that would be a good one. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-12-2014, 11:36
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Labview help needed

Really struggling and need help with the below project.
using a case structure how do i monitor a heating system manually and automatically using temperatures from a demo VI?

In automatic mode the system will monitor the ambient temp and depending on the value will switch the heater on or not. the heater is switched on when the temp falls below the low temp setpoint. When the heater is switched on the system will add a value to the measured temp to show the temp rising, when the temp reaches the high temp setpoint the heater switches off.

In manual mode the heater will be on whenever the heater on/off switch is on. The system will monitor the heater on/off condition at all times.

The front panel should include:

- Indicators
AC on/off
Heater on/off
Manual or Automatic operation
current temperature reading
Historical temperature reading (Chart)

- Controls
AC on/off
Heater on/off
Manual or Automatic
Temperature setpoint control low- to switch heater on
Temperature setpoint control high- to switch heater off
-Coding

Use a case structure to control manual and automatic operation.
Use a case structure in decision making e.g. when deciding to switch heater on or off.
  #2   Spotlight this post!  
Unread 15-12-2014, 11:57
JamesBrown JamesBrown is offline
Back after 4 years off
FRC #5279
Team Role: Engineer
 
Join Date: Nov 2004
Rookie Year: 2005
Location: Lynchburg VA
Posts: 1,262
JamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond reputeJamesBrown has a reputation beyond repute
Re: Labview help needed

Quote:
Originally Posted by cunnie85 View Post
really struggling with this project
using a case structure how do i monitor a heating system manually and automatically using temperatures from a demo VI?
As a disclaimer, this site was created for the FIRST Robotics Competition, and most people in these forums are here for that reason. That said there are many experienced LabView programmers on here and someone may be willing and able to help.

Post what you have so far, a screenshot of your code is often easiest for LabView.

If you have not started try to sketch it out on paper or describe the functionality with psuedocode. No one here will hand you the right answer, the majority of us are teachers and engineering mentors, so we aren't in the business of doing someone's homework for them, however we are happy to teach.
__________________
I'm Back


5279 (2015-Present)
3594 (2011)
3280 (2010)
1665 (2009)
1350 (2008-2009)
1493 (2007-2008)
1568 (2005-2007)
  #3   Spotlight this post!  
Unread 15-12-2014, 13:35
Tungrus Tungrus is offline
Registered User
no team
 
Join Date: Mar 2013
Location: Somewhere
Posts: 329
Tungrus is just really niceTungrus is just really niceTungrus is just really niceTungrus is just really nice
Re: Labview help needed

I believe the temperature control project is one of the NI training project.

Anyways, FRC teams would be more than happy to guide you, even if you are not in FIRST family!
  #4   Spotlight this post!  
Unread 16-12-2014, 05:42
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Re: Labview help needed

Hi guys,
Thanks for the reply here s what I have done so far I know I have to add case structures but Im not sure where to go from here. Program and screenshot attached
Attached Files
File Type: vi Temperature monitor.vi (12.1 KB, 31 views)
File Type: docx screenshot.docx (181.3 KB, 32 views)

Last edited by cunnie85 : 16-12-2014 at 05:49.
  #5   Spotlight this post!  
Unread 16-12-2014, 09:20
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Labview help needed

I forgot, and am not 100% sure, but I think that you need to put all the switches and indicators inside the while loop. That is, if you want them to update while the while loop is running.

To switch from automatic to manual, I would put a case block/loop, plug the "manual mode" switch into the t/f statement. In there you could do the manual and automatic functions (there are 2 cases in this case, true and false, true being manual mode and false being automatic).

Inside the manual, you would put some sort of code that would increment/decrement system that would increase or decrease the temperature over time based on whether AC is on or heat is on (maybe another case statement?). For the false (Automatic case) you would make a comparator (less than or greater than... that sort of stuff) that would check to see if you need to turn the AC or heater on. You would then turn either the AC on or the Heater on based on the comparator (again, maybe another case structure here).

I am not really good with graphing stuff in labview, I would assume you could just create a graph and push the results to the graph every iteration of the while loop, but it is probably more complicated for that.

I am assuming that this is for a class, so I am not giving you the detailed answer, I wouldn't want to spoil the fun

Also, as an added bonus, you can create property blocks that let you change the properties of certain things (like text color on an indicator). If you explore those properties, you can find the disable property. You can disable manual controls in automatic mode, for example.

Hope this helps get you started! If you need any more help, just ask!
  #6   Spotlight this post!  
Unread 17-12-2014, 10:26
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Re: Labview help needed

Thanks Chad,

I have added a case structure, when true(manual mode) the program runs constantly, when false(automatic mode) it also runs constantly however when the temp drops below 28 deg it turns off an LED on my front panel. Im having problems getting the heater to turn on automatically when the temp falls below a certain value. program attached
Attached Files
File Type: vi Temperature monitor.vi (13.5 KB, 28 views)
  #7   Spotlight this post!  
Unread 17-12-2014, 12:16
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Labview help needed

You could put a "less than" or "less than or equal to" comparison block and put a constant of 28 and hook it to the top and the temperature to the bottom, then you could do an "or" logic block and hook that up to however you have it set up. I don't have labview at work, so it when I get home, if you need me to, I will look at it some more and help
  #8   Spotlight this post!  
Unread 17-12-2014, 12:25
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Re: Labview help needed

Yes please that would be great.
  #9   Spotlight this post!  
Unread 21-12-2014, 01:37
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Labview help needed

I sent you a message a couple of days ago, let me know what you think
  #10   Spotlight this post!  
Unread 22-12-2014, 02:55
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Re: Labview help needed

Hi Chad can you take a check out my program from the previous mail on Labview, I have a comparison block added and set to 28 but I'm a bit confused now so if you could have a more detailed look that would be great.
  #11   Spotlight this post!  
Unread 23-12-2014, 02:55
cunnie85 cunnie85 is offline
Registered User
no team
 
Join Date: Dec 2014
Location: Ireland
Posts: 7
cunnie85 is an unknown quantity at this point
Re: Labview help needed

Demo temp
Attached Files
File Type: vi Demo_Temperature_VI.vi (9.8 KB, 28 views)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi