From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY vs Waveform & X-scaling

Hi there,

I have a problem with graphs and their X-scaling.

In general, I always try to use XY-graphs, because of their exact control
over scalings, and so also in this program.

But, at the end of my progran, I must do a number of plots and I don't know
how many. I did not find a way to get a XY-graph to plot an unknown number
of plots (is there a way to do it, please tell me!), so I chosed for this
purpose the Waveform Graph into which -via bundle -I put my unknown number
of plots as a 2-dim array. Convenient.

But, I can't get the X-scaling in this Waveform graph to equal the former
(XY) graphs in my program.

To 2 other inputs in the bundle I wire the start of X, and the scale spacing
(delta X).

I have tried to solve this b
y making 2 attribute nodes of the XY graph; one
with Delta X and one with X0, and wire them into the bundle
before my Waveform graph. And, this works sometimes, and sometimes not. In
some cases the X-scaling is very strange.

Anyone know anything?

Thanx in advance / Per
0 Kudos
Message 1 of 6
(3,485 Views)
> In general, I always try to use XY-graphs, because of their exact control
> over scalings, and so also in this program.
>
> But, at the end of my progran, I must do a number of plots and I don't know
> how many. I did not find a way to get a XY-graph to plot an unknown number
> of plots (is there a way to do it, please tell me!), so I chosed for this
> purpose the Waveform Graph into which -via bundle -I put my unknown number
> of plots as a 2-dim array. Convenient.
>
> But, I can't get the X-scaling in this Waveform graph to equal the former
> (XY) graphs in my program.
>
> To 2 other inputs in the bundle I wire the start of X, and the scale spacing
> (delta X).
>
> I have tried to solve this by making 2 attribute nodes of the XY graph; one
> with Delta X and one
with X0, and wire them into the bundle
> before my Waveform graph. And, this works sometimes, and sometimes not. In
> some cases the X-scaling is very strange.
>
> Anyone know anything?

I know a few things -- about graphs. There are lots of datatypes for
graphs and
they are listed in the examples. XY graphs that support multiple plots
can either
be an array of cluster of two arrays (X array and Y array), or it can
accept an
array of cluster of array of cluster of two numbers (X and Y value).
Using the
notation [] for arrays and {} for clusters, it accepts [{[X],[Y]}], and [{[{X,Y}]}].

The waveform graph with multiple plots accepts [{[Y]}] or [[Y]] where
[[]] is a 2D
array. It also allows X0 and dX for different amounts of generality.
{X0, dX, [[Y]]},
allows one X specification for all of the Y rows or columns. {X0, dX,
[{[Y]}]} allows
for a single X spec with different sizes of plot Y values. [{X0, dX,
[Y]}] allows for
different X specs per plot and different plot lengths per
plot and is
the most general.

As I said, all of these are demonstrated in the examples/general/graphs.llb.

Greg McKaskle
Message 2 of 6
(3,484 Views)
Hi hurricane@swipnet.se (PJ), hope you are having a nice day

26-May-99 22:16:18, hurricane@swipnet.se (PJ) wrote to All
Subject: XY vs Waveform & X-scaling

h(> But, at the end of my progran, I must do a number of plots and I
h(> don't know how many. I did not find a way to get a XY-graph to
h(> plot an unknown number of plots (is there a way to do it, please
h(> tell me!), so I chosed for this purpose the Waveform Graph into

It's in the online help. You can have a plot defined by two arrays
(Xa,Ya), and this arrays bundled. If you need another plot (Xb, Yb), you
only need to bundle these arrays, and build an array with the two
bundles (and connected to the XY graph). And so on with more plots.


Best regards Inet: pprieg
o@arrakis.es
Paco ¡¡P!! http://www.arrakis.es/~ppriego
ICQ: 2922145

--- Terminate 5.00/Pro
* Origin: Regreso al punk (2:341/136.53)
0 Kudos
Message 3 of 6
(3,484 Views)
hi, im new in labview. Btw, i have a problem to calculate numerical data, save it, show it to table and plot it into XY graph.
Coz, i have to calculate using different value (rpm), and each result from calculating the value I must save it into tabel (spreadsheet) and plot it to more than one graph x-y.

Thx
0 Kudos
Message 4 of 6
(3,009 Views)
Did you notice that you just replied to a thread that is about 8 years old? 😮 It might be better to start a new thread with your question!
 
It also seems you have problems with everything: (calculate, save, show in table, plot on graphs), so maybe you should start with a LabVIEW tutorial to learn the basics. Also have a look at the example finder.
0 Kudos
Message 5 of 6
(3,008 Views)
ya, i know it. But i could'nt find icon to make a new thread.Smiley Happy
Actually i 've learned a view tutorials. And i 've make a single simple program to calculate a rpm using a loop. Could you help me ti find a tutorials for beginner. Coz, this is my lesson to pass my degree. I have to make a software to read a sensor in a machine and connected to machine. But firstable i have to make a software (not executable). It will running at LV. All oprerate such as input data and calulated will be manually.
0 Kudos
Message 6 of 6
(2,991 Views)