04-10-2013 02:12 PM
I'm in this same class (Don't know who you are but HI!)
I've copied the assignment sheet word for word below, if this helps you guys. Like the OP said we really really don't know how to do this and need it as dumbed down as possible.
1. Floodwall is controlled by Labvieiw program. Create a VI to close the flood gate when:
a. the flood level (water) is higher than 250" or
b. Each night after 10 pm
The flood gate will remain closed until the water level receeds below 250" or until 7 am. In this phase of your program you will simulate the time.
2. In phase two of your program you will use the actual (real time) time to operate the flodo gate. So the flood gate will be closed from 10:00 pm to 7:00 am and will be kept open otherwise unless there is higher than 250" of water in the river (Extra Credit 10 points will be added to your final grade)
04-10-2013 02:14 PM
@JonCurry wrote:
Crossrulz, I really appreciate the help thus far. Does this Seconds to Date/Time function determine the time by itself? Also, I connected the Range to another Boolean that will turn on if the time is in between 22:00 and 07:00, will this suffice?
There's no need for the case structure. There's no need for the format time string. Change your Greater or Equal to a Less Than. You also need to AND the two booleans together to get a single output of whether the flood gate should be open or not. And as a final nit-pick, change your 250 constant into a double (right-click, representation->double) to maintain common data types with your input.
04-10-2013 02:16 PM
@Imgonnafailthisclass wrote:
2. In phase two of your program you will use the actual (real time) time to operate the flodo gate. So the flood gate will be closed from 10:00 pm to 7:00 am and will be kept open otherwise unless there is higher than 250" of water in the river (Extra Credit 10 points will be added to your final grade)
Shouldn't that be CLOSED!
04-10-2013 02:19 PM
Like I said I just copied our assignment sheet exactly as it is written. We're in this class right now and I'm looking at the assignment sheet.
I believe the flood gates are open, as in, you can get through them and such, between the hours of 7:00 am and 9:59 pm. The gates then CLOSE and prevent any exit from 10:00 pm until 7:00 am rolls around again, but they can also close if the water level rises above 250".
04-10-2013 02:22 PM
Imgonnafailthisclass wrote:but they can also close if the water level rises above 250".
No, the gates should OPEN in order to let the water level go down. It is a safety mechanism. Plus, if the gates are closed, how can they remain open? I'm telling you that that is a typo on the assignment.
04-10-2013 02:25 PM - edited 04-10-2013 02:30 PM
@crossrulz wrote:
No, the gates should OPEN in order to let the water level go down. It is a safety mechanism. Plus, if the gates are closed, how can they remain open? I'm telling you that that is a typo on the assignment.
This assignment is supposed to be based on a flood wall that surrounds our city. They close the gates if the water level gets too high, protecting the city. It's not a flood wall on the water.
Or is it.
Do you see why we're having trouble with this? Typos on the assignment don't exactly help, if it IS one.
And it's kinda funny because our actual City floodwall, while it DOES surround the city, never closes in real life and it's water level closing level is 600", not 250", and this entire assignment is based around it.
We're college kids. Sorry if we're giving you any trouble.
04-10-2013 04:11 PM
I should also remind you that our professor is foreign.
04-10-2013 04:29 PM
@JonCurry wrote:
I should also remind you that our professor is foreign.
That really doesn't matter. How are you coming with our suggestions?
04-10-2013 04:35 PM
Well, what I meant by that was that he usually always has some sort of typos in his directions. What the other student said was what he wants though, from the time of 10 pm through 7 am (which is 22:00 and 07:00 in 24 hour time). I've managed to get Part 1 done successfully, he is somewhat lenient on our results with it. Part 2 is still confusing me to some degree. I have removed the case structure as you suggested. I currently have a numerical control linked to a greater than or equal to as X, and the numerical constant of 250 as the Y variable. The output of that then links to an OR function (X), and now I am trying to add your method to obtain the current time to the Y input of the OR statement, and the output of the OR statement wired to a Boolean. So, ultimately, we need this Boolean to light up with the Numerical Control is 250 or higher, OR the current time is anywhere between 22:00 and 07:00. I'll send you what I have so far, it's 5:34 PM right now where I am, and it is lighting up even with the numeric control being under 250. Am I going to have to change my system clock to 10PM?
04-10-2013 04:39 PM