LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Charts and graph shown as --array and cluster datatype in block diagram

Hi friends,

I new user...
I have a basic doubt...
In many examples the graph and charts are shown as "array data type and cluster data type "------in the block diagram panel...
Please tell me, how these data types are shown as graph and charts in the front panel window.....


regards
raja
0 Kudos
Message 1 of 3
(2,876 Views)
Hi raja,

charts and graphs are just numeric indicators! So they accept array and cluster datatypes.

Please read the online help (or the manual) for them, it's providing informations on what kind of arrays/clusters they will accept and how to create them.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,868 Views)

These are very basic issues and it should be clear once you study the online help and examples for a while.

Waveform Graphs

  • Plain waveform graphs assume equally spaced data. The x-values are implicit from x0 and dx of the x-axis. By default x0=0 and dx=1, meaning the x-values are the array indices. You can change the offset and multiplier from the properties dialog or programmatically via property nodes.
  • If you give a 2D array, there will be multiple graphs. Transpose if needed.
  • Alternatively, you can give a cluster of [x0, dx, y-array] and the x-axis will adjust accordingly.
  • As another alternative, you can built a waveform datatype and feed it to the graph.
  • You can also graph dynamic data.

XY graphs

  • xy graphs are needed if the x-vlaues are not regularly spaced.They take a variety of data formats, so pick what is most approriate for the data
    • A cluster of an x-array and a y-array
    • An array of clusters, each containing an xy pair
    • A complex datatype (it will graph imaginary vs. real or similar).
    • ...

Charts

Charts are different, because they maintain a data history buffer an retain a certain amount of data. Some examples of data inputs:

  • A single scalar: it wil be appended to the existing chart data, possibly throwing out the oldest existing point.
  • An array: The array data will be appended to the existing chart data.
  • A cluster of e.g. 5 points: The chart will have 5 dividual plots, one point gets appended to each plot.
  • etc.
  • The express xy-graph can be configured as xy chart, etc.

Sure, it is a bit complicated at the beginning, but the complexity also gives you flexibility to do exactly what you want. Just play around with various scenarios and look at the outcome. The best way to learn! 🙂

0 Kudos
Message 3 of 3
(2,866 Views)