My original example was not very clear as to the separation of source data and preparation of the data for the XY graph. In addition the preparation for the graph includes a small 'workaround' to make the data appear properly on the bar graph.
Workaround: I'm using 3 plots on the XY graph (one for each of your data values), but LabVIEW does not like to plot just one data point on a plot configured for a bar graph. So I add a second data point with value 0 to each of the three data values to generate 3 plots with two data points each.
The attached example separates the data source (in the red box - replace with your code) from the preparation of the data for the XY graph. You can see how each of your three values
is converted to a plot with 2 data points, each data point consisting of an X and Y value. The X value is the index counter of the loop and determines the location of the bar on the X axis.
Christian
authored byChristian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX

