LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview

Hi, I am rightnow making a project in Labview 8.2.1 One hardware is connected to PC by visa serial configuration,

which gives continuously two values viz., load and deflection. I want to plot a graph between them. I tried a lot but 

the XY graph gives just instantenous point instead of continuous line. Can you tell me how to store data before 

displaying it to XY graph. Please also tell me the data types which XY graph takes. Can you also explain the 

properties of XY graph?  

0 Kudos
Message 1 of 19
(4,249 Views)

(Please use a descriptive title for your post. Since this is a LabVIEW forum, a title of "LabVIEW" is not specific enough.)

 

Anyway, it seems you want an xy chart. There are many ways to do this, simplest would be to use the xy graph from the express palette as e.g. described here.

 

An xy graph takes a multitude of other inputs, e.g.:

 

  1. A cluster of an x-array and a y-array.
  2. an array of such clusters. (for multiple plots)
  3. An array of clusters containing two scalars for each point
  4. A cluster array, each element containing and array of clusters as in (3)
  5. A complex array (graphing RE vs. IM).
  6. An array of clusters, each containing a complex array (multiple plots).
  7. etc.

 

Open the example finder and search for "xy graph" for some examples.

 

An xy graph has tons of properties (size, background color, axis mapping, axis range, plot color, cursor style, point style, etc.etc.). Do you have anything specific in mind that is not clear to you? Have you looked at the online help?

 

If you get stuck, attach a simplified version of your code and tell us what the problem is. 🙂

 

 

 

Message 2 of 19
(4,246 Views)

Also check the examples shipped with labVIEW regarding the XY Graph, open the Example finder , and search for XY Graph , double click on the XY Graph.vi which will be listed in the results..

here is a screenshot from the VI which describes the various data types for single and multi graphs using the XY Graph

 

Message Edited by MAshraf on 12-21-2008 09:08 AM
Eng. Mohammed Ashraf
Certified LabVIEW Associated Developer
InnoVision Systems Founder, RF Test Development Engineer
www.ivsystems-eg.com
Message 3 of 19
(4,220 Views)
Notice that the xy graph example is almost prehistorical and many things can be dome more efficiently today. For example we have a simgle primitive that combines "bundle+built array". For details, see my old post here.
Message 4 of 19
(4,208 Views)
Thanks alot alten, this is really interesting 🙂
Eng. Mohammed Ashraf
Certified LabVIEW Associated Developer
InnoVision Systems Founder, RF Test Development Engineer
www.ivsystems-eg.com
0 Kudos
Message 5 of 19
(4,183 Views)
Hi, I have done as indicated. I am sending the vi. The last step is not getting correct. I am not able to connect the output of bundle to waveform graph. I don't need properties of graph that i mentioned in last post. My main concern is to display the continuous graph..
0 Kudos
Message 6 of 19
(4,162 Views)
And please explain or suggest  some vi for connection of shift register in while loop.
0 Kudos
Message 7 of 19
(4,161 Views)
Please post your vi instead of an image so that it will be ease to help you out
0 Kudos
Message 8 of 19
(4,148 Views)

Since you are dealing with dynamic data, you need to use the express xy graph.

 

If you place it on the front panel from the palette, you'll also get the "built xy graph" express VI on the block diagram. It has connectors for the x and y data. Configure it to NOT to "clear data on each call" and you don't need any shift registers.

0 Kudos
Message 9 of 19
(4,127 Views)
Ok. I am sending a vi with the message. I have also tried express xy graph.vi but after buid array, it can't be fed to particular x or y input even after converting to dynamic data. So how to connect the build array output to xy graph. Please suggest.
0 Kudos
Message 10 of 19
(4,096 Views)