05-18-2020 03:31 AM - last edited on 05-18-2020 01:41 PM by altenbach
Hey guys! Can someone help a brother in need? Artesian fountain that works all year round based on a program. If it rains outside it stops for 2 hours. If the temperature has dropped below 10 degrees the operation stops. After 11 pm the fountain stops and starts the next day at 8 am. In the evening, for 5 hours the fountain is lit. If the concentration of pollutants is higher than a certain level, the fountain stops and alerts the administrator. One hour corresponds to a running time of 3 seconds.
Solved! Go to Solution.
05-18-2020 03:40 AM
Hi Student,
I don't think we are brothers…
Which help do you need - and what kind of help do you expect from posting that description?
In case of a LabVIEW-related problem: what have you tried so far? Why don't you attach your VI?
05-18-2020 05:10 AM
Sorry for misunderstanding.
I can't figure out how to make the light turn off if an numeric control show a certain number and after a period of time the light turn back on
05-18-2020 05:15 AM
Hi Student,
@TheStudent47 wrote:
I can't figure out how to make the light turn off if an numeric control show a certain number
You need a comparison function to compare with this "certain number".
@TheStudent47 wrote:
and after a period of time the light turn back on
Use ElapsedTime ExpressVI to know when this "period of time" has elapsed. Then "turn on" the LED again…
Again:
Why don't you attach your VI(s)?
Where are you stuck? Do you get any errors?
05-18-2020 06:23 AM
Here is the vi
05-18-2020 06:40 AM
05-18-2020 06:51 AM
I started this class three months ago and the university closed after one month because of covid19. All I know is from youtube tutorials and documentation from NI
05-18-2020 11:10 AM
These classes are available online, free at least through the end of the month:
05-18-2020 01:28 PM - edited 05-18-2020 01:49 PM
As others have said, your code makes no sense. It will run for up to two seconds really doing nothing useful at all. I doubt you learned for one months. This looks more like code somebody would do with absolutely no LabVIEW experience.
You need a toplevel while loop with a small wait that repeats the code at regular intervals polling the inputs and calculating the outputs, and maybe keep track of elapsed time.. Do you know the difference between orange and blue numerics?
Is this a real system or a simulation?
I would start with a simulation, so you need at least the following on the front panel:
Controls:
Indicators:
Have you done that? Make it pretty and intuitive!
05-18-2020 03:52 PM
With one month you should have learned something, but your code does not reflect that. Please do take advantage of the free online courses that NI is offering. They will be much better than what you are going to get from YouTube videos (some of those people making the YouTube videos know about as much about coding in LabVIEW as you do). You should learn about state machines in the training. This should work nicely for your application.