05-14-2012 10:04 AM
Hi all,
I am currently building a turbocharger model in the control design & simulation module, named turbocharger model v3.4. So far I have implemented code to vary three inputs:
- demand speed
- compressor pressure ratio
- turbine in temperature.
The main outputs from the model are turbocharger actual speed and compressor mass flow, all of which are highlighted in frames on the front panel.
I now want to run predefined test sequences on the model, for example
Set demand speed = 50,000
when turbocharger actual speed = 50,000, vary compressor pressure ratio from 1.05 to 1.2, and measure and record compresor mass flow
I believe I can achieve this test sequence using text based programming loops but the problem I am having is programmatically setting the initial values and waiting for feedback from the model outputs to execute the next runs.
Any help would be very much appreciated.
Labnewb
05-15-2012 10:43 AM
Hello,
If you want your VI to follow a certain dataflow sequence with various subVIs, a simple way to do so is by passing error wires or a sequence structure (i wouldn't normally recommend this one unless you have various loops and local variables to deal with). As a question of parameters with loops, using shift registers in for loop or while loop structure can help you alot with passing values that you need for a follow up cycle (as well as setting initial values). If I could also recommend using the smaller version of controls and indicators when posting pictures as it makes it easier to read the diagram 😉 For information on any of the above topics you can find a lot of tutorials and samples on the ni developer zone for labview.
Kind Regards,