12-17-2014 03:34 PM
Does anyone know how I can successfully plot Four 1D Array of Doubles, and a plot of Constant Double on a Waveform Chart?
I used the Bundle Function trying to combine before sending them to Waveform Chart, but I have the broken wire as shown on the attached image.
Regards,
Tebefia
12-17-2014 10:18 PM
-Data type mismatch is the error.
-The help shows for "Displaying Multiple Plots on Waveform Charts
To pass data for multiple plots to a waveform chart, you can bundle the data together into a cluster of scalar numeric values, where each numeric represents a single point for each of the plots."
-So, if you want to have multiple plots, you have bundle each element in the plot together and then pass it to chart.
-there might be other ways also,i've just provided how to clear error in one way.
12-18-2014 07:02 AM
Try just adding a Build Array on your scaler before going into the Bundle. I think the chart needs a cluster of all arrays.
12-18-2014 08:07 AM
Crossrulz, thanks. I realized that immediately after posting the question. I have fixed it immediately after I posted the question.
12-18-2014 11:28 AM
Are you sure about the Waveform Chart accepting a Cluster of Arrays. I played with this a bit and the Chart will accept a array of arrays or array of clusters but not a cluster of arrays.
To pass data for multiple plots to a waveform chart, you can bundle the data together into a cluster of scalar numeric values, where each numeric represents a single point for each of the plots.
If you want to pass multiple points per plot in a single update, wire an array of clusters of numeric values to the chart. Each numeric represents a single y value point for each of the plots.