12-04-2017 12:02 PM
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
12-04-2017 12:10 PM
@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.
12-04-2017 12:11 PM
@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.
12-04-2017 12:15 PM
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.
12-04-2017 12:45 PM
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.
12-17-2017 10:53 PM
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
12-18-2017 12:10 PM - edited 12-18-2017 12:11 PM
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.
12-18-2017 12:22 PM
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)
12-19-2017 08:45 AM
@gregoryj
this seems very helpful
can i have a look at it's block diagram please
12-19-2017 10:30 AM - edited 12-19-2017 10:34 AM