LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pump test with repeated outputs (timed while) and changed inputs

Hello all, first post!

 

I am new to the whole LabView and G.

 

I wish to make a cavitation test of a pump setup, measuring flow rate, pressures, rotation and temperature repeatedly. This being quite simple (while loop, I guess), a problem occurs as I need gradually close a motorized valve between the data points.

 

I made a very simple flow chart of what I wish to do:

Flow chart

 

I wish to run each data point (grade of valve opening) for 10 seconds. When it is done measuring for the datapoint, I want it to change the valve opening, wait for a minute and then measure again. I then want the collected measurements to be written in a .xsl file.

 

I do not know the workings of anything but the pressure transmitters (slow department), but my question is rather related to recurring of data measurement while I change a parameter.

 

Below is attached my half-finished VI. Any suggestions?

 

Thanks, 

Catherine Johnson

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

Catherine,

What your flow chart represents, but your code doesn't, is a State Machine. There are samples (and templates) in LabVIEW and much discussion on the forums.

Richard






0 Kudos
Message 2 of 3
(2,316 Views)

Hi Catherine,

 

Welcome to the forums! I would agree with Broken Arrow, a state machine would be a great way of coding your application. Introduction to state machines can be found here.

 

This should give you a good starting point. Let me know if you have any other questions.

 

Best Regards,

Ben B.

Applications Engineer
National Instruments UK & Ireland

"I've looked into the reset button, the science is impossible!"
0 Kudos
Message 3 of 3
(2,301 Views)