LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tank Filling

Hi,
 
I need to creat an application where I can have a wave form VI and a Tank fill indicator on the same screen. As I increase the frequency of the sine wave the tank will fill faster. Can an application like this be done. I just need a very simple application.
 
Many thanks,
Ray
0 Kudos
Message 1 of 6
(3,372 Views)
Hi Ray,
yes it can be done, you can place the controls/indicators on the front panel. Where do you get the frequency from? Do you want to use a control for it, or do you read it from a hardware.
Where do you have problems til now?

Mike
0 Kudos
Message 2 of 6
(3,343 Views)
The question is where you get your sine-wave from. If you generate it yourself, that shouldn't be a problem as you know the frequency. To get control over the speed of the filling of the tank, you can use the wait-function. For example, set your tank-range to 0 to 10. Generate a while-loop which adds - lets say - 0.1 to the tank in each iteration. By using the wait in the while-loop, you can set the speed of the filling.
To get the frequency out of a measured signal, you can do a fft-transform or use a fit-algorithm to fit your data to a sine-like model...

Good luck

Christian

THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 3 of 6
(3,340 Views)

Hello Mike,

I am using a SIMULATE SIGNAL from the Funtions pallate. I've been trying everything with no luck. I'm a new user of the system, so I'm not very good at it yet. Many thanks for the response.

Ray.

0 Kudos
Message 4 of 6
(3,307 Views)

Hi Ray,

you can set the value of your tank in a loop. With the change of the frequency you can either change the delay of the loop or you change the value which you add up or subtract to the tank value.

Hope it helps.
Mike

0 Kudos
Message 5 of 6
(3,298 Views)
Here is the Generate and display tutorial:

From the Create New list, select VI » From Template » Tutorial (Getting Started) » Generate and Display.

It will display a sine wave that you can wire a control into to change the frequency.  Then like they mentioned you can probably use a shift register on the while loop to store the value in the tank.  (there is a tank indicator, if you look under numeric)
0 Kudos
Message 6 of 6
(3,290 Views)