LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically changing front panel controls for predefined test sequences

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

turbocharger model v3.4.pngturbocharger model v3.4 block diagram.png

0 Kudos
Message 1 of 2
(2,268 Views)

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,

Miguel V
National Instruments
Message 2 of 2
(2,225 Views)