LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot question

So I have two one-dimensional arrays which have the same length. One contains the frequencies -I want this array to be my  x axis. The other contains the values that I want to be in the y -axis. How can I plot this in a xy plot? Thanks.

0 Kudos
Message 1 of 11
(3,093 Views)

Hi there:

One of the ways that you can make your XY graph is to bundle it to cluster and wire it to the XY graph.

Best,

Santiago

0 Kudos
Message 2 of 11
(3,083 Views)

An XY graph accepts quite a collection of data topologies

  1. Make a cluster of your two arrays.
  2. Mak an array of xy clusters
  3. Make a 1D complex array.

Here is a picture of some possibilites. (For multiple plots, create arrays of single plots.)

Have a look at the examples that ship with LabVIEW or check the context help.

 



Message Edited by altenbach on 07-01-2008 06:34 PM
Message 3 of 11
(3,080 Views)
Thanks for you response but I was not able to open your code since I have the LV 8.0 edition.
Is it possible to implement my question using the Waveform graph?  The reason why I am asking is that my GUI does not have any space left for one additional plot, so I would like to use the existing waveform  graph.
Thanks.




Message Edited by RSibagatullin on 07-01-2008 08:37 PM

Message Edited by RSibagatullin on 07-01-2008 08:42 PM
0 Kudos
Message 4 of 11
(3,077 Views)
Here is the LabVIEW 8.0 version.
I am not sure I follow  your question. So you want to superimpose an XY plot to your existing waveform?
 
Fight On!
Message 5 of 11
(3,068 Views)

For waveforms....you usually need to specify x0, delta x and y....if you do not specify it, x0 is assume to be zero, delta x =1 (one unit increments). So unless your data follows in that linear patterns, I am not sure you can do it without jumping through hoops.

See, I learned never say no in LabVIEw Smiley Happy

Message 6 of 11
(3,063 Views)


RSibagatullin wrote:
... so I would like to use the existing waveform  graph.

Waveform graphs require that the x values are equally spaced. So if this is the case, you can do it.
 
If the offset/multiplier are different for the two plots, you can use two x-axes.
Message 7 of 11
(3,061 Views)

Altenbach:

Are you a CLD or CLA? What type of work do you do?

I thank you for the many insights that you provide to this forum.

Santiago

 

0 Kudos
Message 8 of 11
(3,056 Views)


FightOnSCTrojan wrote:
Are you a CLD or CLA? What type of work do you do?
I am an LC! 😄
 
I do all kind of things. Here's my latest paper as an example (most figures were done in LabVIEW) and here are a few more.... 🙂
0 Kudos
Message 9 of 11
(3,018 Views)

LC Champion sounds like those mythical figures on the top of mountains somewhere where there is a lot of clouds.

 

Well recently I moved back to the LV-NI paradise after a 5 year hiatus (from engineering to education field, now back to engineering). I am a biomedical engineer by training, now serving as a Test Engineer for a Fiber Optic Sensor company. Recently got certified as a CLAD, and currently I am preparing for CLD exam.

 

Well, I bet I will see you in NI events around town. Recently I went to LabVIEW Developer day and Medical Devices seminar in SD. Where you there?

 

Anyway, nice to "meet you" and hopefully you will continue your wonderful contribution to this forum.

 

Best,

 

Santiago

0 Kudos
Message 10 of 11
(3,015 Views)