From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-08-2010 01:56 AM
Gurus of Labview,
I have a Project to complete and i am new to labview, I have student version 2009. and want to build an initial vi of a Municipal water trteatment plant TO FILL AND EMPTY TANKS. I am using the DSC module to help and I can get my tanks to complete a sequence, however it uses local variables. They cannot be shared on the network when I create my libraries. Need help urgently..
Casey74
Solved! Go to Solution.
05-08-2010 07:08 AM
05-08-2010 08:56 AM
Thx altenbach,
Will have to wait till later to show what i have achieved as i am at work presently, vi is on my home PC.
I have used a flat sequence with a tank on a for loop of 100 adding very crude I know but it worked, so my tank will always go to a hundred, then in the next frame use the local variable of the tank to count down from hundred. I have tried to create the project but as you know feedback nodes, local variables etc will not publish correctly or at all. I have several tanks in the vi all performing the same type of function all in the flat sequence. Booleans switch on/off in relation to the fill/empty sequence.
New to this type of programming all help welcome......
Casey74
05-08-2010 05:57 PM
05-08-2010 07:51 PM
Casey74 wrote:
Here is the block diagram for your enjoyment.......
Sorry, I cannot "enjoy" an image. It would help much more to see the actual VI.
05-08-2010 08:08 PM
05-09-2010 06:07 AM
Hi Altenbach,
I appreciate your patience, here is the original vi.
My problem is to have tanks emptying and feeding into each other without the use of local variables.
From the vi design you can see that as one tank is emptying another is filling. I have used local variables to help all within a flat sequence.
Your help has been appreciated.
Casey74
05-10-2010 06:50 AM
Here's a quick attempt at a state machine. See if it makes sense.
(It can be simplified quite a bit more!)
05-10-2010 09:18 AM
Thx again Altenbach,
You have hit it more or less hit it on the head, time has run out for me though and I have to use what i have. Your previous tank fill/empty sequence has given me so many possiblities, however i couldnt figure how to make my boolean pipework switch off during the empty sequence. I am currently rebuilding the VI and creating several other HMI for my project report due in 3 day, 2 of which i am at work......
Expect to hear more from me in the future until i get to grips with this package
05-10-2010 09:47 AM
Casey74 wrote:Thx again Altenbach,
You have hit it more or less hit it on the head, time has run out for me though and I have to use what i have. Your previous tank fill/empty sequence has given me so many possiblities, however i couldnt figure how to make my boolean pipework switch off during the empty sequence. I am currently rebuilding the VI and creating several other HMI for my project report due in 3 day, 2 of which i am at work......
Expect to hear more from me in the future until i get to grips with this package
So WHY have you marked your post as the solution not Altenbach's? You may have not been able to use his due to time constraints, but you've just said that he provided you with exactly what you wanted!!
Mark his post as the solution please.
James