LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wavy water shape

i am having problems with the last object named as system XY graph.. I have just a normal XY graph and when i connect it, wire shows error

0 Kudos
Message 11 of 26
(1,683 Views)

@Abdullah98 wrote:

One more thing please!.
that shape with SINE graph in it, is it a sin waveform generator?
if yes, than i have to give the input in OFFSET?


The Sine function just takes an argument in radians and outputs the sine. The Auto-Indexing tunnel on the For Loop collects them all into an array. If you add a numeric to an array, it will apply to every element, giving the offset.

0 Kudos
Message 12 of 26
(1,680 Views)

@Abdullah98 wrote:

i am having problems with the last object named as system XY graph.. I have just a normal XY graph and when i connect it, wire shows error


The standard XY graph is fine as well. I installed the System 2.0 suite through VIPM but it is not necessary. If your wire shows an error with the standard XY graph that means you have connected something wrong, probably the "bundle" function. Feel free to post your code and we can fix it.

0 Kudos
Message 13 of 26
(1,677 Views)

Thanks i did it myself and it's working.
i used Express XY graph and skipped the bundle, now it's good.
Now i'll just try to make this fill and drain automatically.

0 Kudos
Message 14 of 26
(1,674 Views)

Slight variation to the original question. Is it possible to do this by creating a custom control to show the wavy lines. I tried editing the "Tank" control located in the Numeric Palette without any success.

0 Kudos
Message 15 of 26
(1,654 Views)

I need help in this again 

i manged to do that and also the auto filling and draining

but i need to show a continuous waveform

like the water is flowing or Moving

kindly help

0 Kudos
Message 16 of 26
(1,604 Views)

Are you familiar with the phase of a sine wave? You can create the sine wave in a loop but keep adding an offset to the argument in order to give it some motion. In this example I added 0.25 (radians) to the phase with a loop wait time of 50ms.

 

0 Kudos
Message 17 of 26
(1,584 Views)

Since x-values are spaced equally, a plain 1D array and waveform graph are sufficient. Don't overcomplicate things! It is also sufficient to only create the basic sine function exactly once. You can always add an offset later or rotate the array for animation.

 

(Posting by phone, cannot look at your code)

0 Kudos
Message 18 of 26
(1,579 Views)

@gregoryj

this seems very helpful

can i have a look at it's block diagram please

0 Kudos
Message 19 of 26
(1,561 Views)

Try something like this:

 

WavyTank.png

 

Message 20 of 26
(1,547 Views)