LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Im a student having trouble with a Municipal Water Managment System Project......Help please !!!

What i meant was i've got a half assed program done up messing about with the tank simulators in LabView, enough to prob grab about 50% so it's cool if your busy, it's nearly for my own interest at this stage 🙂 , it'd be nice to learn some proper code writing right from the start....But i don't know where to begin!!  
Message Edited by Simone 27 on 05-26-2010 03:45 AM
0 Kudos
Message 71 of 77
(1,185 Views)

You had defined the requirements and we were considering the code architecture.

 

Since you have the Professional version, I suggest the Producer/Consumer Design Pattern with Events.  The events will be passed to the consumer loop to change the state when the operator makes a selection. You could use the explanations that I provide to document your code.

 

The code template, excluding the tanks and their associated code would look like this:

 

Message Edited by Ray.R on 05-26-2010 07:55 AM
0 Kudos
Message 72 of 77
(1,166 Views)
Ok, i get the idea....little lost, but am following 🙂
0 Kudos
Message 73 of 77
(1,157 Views)

Well, the step before this one should be to define the events; both user and automated-control.

So a state diagram would come in very handy.

 

The next step would be to create the Front Panel controls for each of the controls that you identified in your design.

 

I'll do an example using the original code that I posted.

0 Kudos
Message 74 of 77
(1,137 Views)
Thank you.....
0 Kudos
Message 75 of 77
(1,121 Views)
It's a very busy day today.  Hopefully, I will complete the example before the end of the day.
0 Kudos
Message 76 of 77
(1,113 Views)
No problem, thanks again 🙂 and really don't put yourself under pressure, like i said i've  got enough done to pass.... I'd just love to see my full idea developed, it was a good one if i do say so myself 🙂 Haha....self praise is the best kind....
0 Kudos
Message 77 of 77
(1,105 Views)