12-21-2008 01:44 AM
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?
12-21-2008 02:04 AM
(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.:
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. 🙂
12-21-2008 09:07 AM - edited 12-21-2008 09:08 AM
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
12-21-2008 11:16 AM
12-22-2008 12:04 AM
12-22-2008 03:53 AM
12-22-2008 03:55 AM
12-22-2008 04:30 AM
12-22-2008 07:09 AM
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.
12-22-2008 09:35 PM