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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic process simulation

Solved!
Go to solution

Hi Forum members,

 

As a newbie to LabVIEW I'm in some need of basic guidance on best way to proceed in developing my process simulation in LabVIEW,  The following is basically what I want to implement:

 

1. A vessel is initially set at a certain level (I'm expressing the contents as volumetric cubic units).

2. Press a start button.

3. Open a valve at bottom of vessel (opening time is 2 seconds) - then the following steps 4. and 5. happen simultaneously

4. Material flows out of vessel (I have a volumetric flow rate expression in cubic units per second)

5. Material feeds into the top of vessel (I have the volumetric flow rate as XX cubic units per second)

 

I have attempted to implement the above using various methods (i.e. Simulation frame, timed sequence, etc.) however with all the various functions in LabVIEW I'm baffled which one to select considering that I have rates of flow, delays going on in my application.  I would also like to make some animations and show graphs of the discharge volume and vessel contents volume over time.

 

If anyone can suggest the best approach to this problem it would be appreciated.

 

Regards,

0 Kudos
Message 1 of 3
(2,369 Views)

Hi buddy,

                          It will be great if  you talk in general words. See we here may or may not worked in that environment so helping you in that context will be bit difficult.

 

Let us know the operation you want to perform.

 

Something like this ?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 3
(2,346 Views)
Solution
Accepted by topic author bunnykins

bunnykins,

 

I think your description of the process is fine.  I have received much worse from actual clients.

 

For applications such as yours, look at a state machine.  There are examples or Design Patterns available in LV to help you get started. The state machine architecture can be very flexible as requirements change and can alos allow robust handling of initial and final conditions and errors as well as routine operation of the process.

 

The best way to get help on the Forum is to post your attempt along with typical data. State as clearly as you can what you expect it to do and what it actually does that you did not expect.  Ask questions which are specific: Why does my delay at step 3 last 2 seconds when I expected 100 ms? is a much better question than Why does my VI not work?

 

Lynn

Message 3 of 3
(2,333 Views)