03-07-2011 09:56 AM
Hi,
May I know what is the difference between Waveform Chart and Waveform Graph?
I try to connect the waveform graph with a simple DBL input and it can't works, but it works in the waveform chart, so how should the connection looks like in waveform graph?
03-07-2011 10:51 AM
Hi,
A graph basically displays single or multiple existing data all at once with evenly distributed points.
Be it from an array or a log file data.
So, u may have an array of a recorded temperature data and u plot it at one time on the graph, similar to the X_Y cartesian graph.
Whereas, for chart, it display single or multiple data that is acquired and update at a constant rate.
For instance, measuring a temperature in real time and plotting in on the chart.
So referring to your question, you are wiring a double integer input into a graph. this could not work because the graph only accept input of 1d array,
such that the output will be a plot of an array of data on the graph.
Why it works for the chart?
It is because chart accepts a single data or an array of data, and it plot the current input as it executes.
Thus, you will need a predefined or an existing array of double value data in order to plot on a graph.
03-07-2011 11:28 AM
Hi,
Thanks for your reply.
So I have to use the chart to display a real time data at a constant rate.
Is that possible to show 2 signal (or plot) in 1 single waveform chart?
03-07-2011 10:31 PM
Yes and it is possible to plot single or multiple signal in a single waveform chart.
03-08-2011 10:40 AM
thx Kelvin, I get it done by using array to cluster.
now I have another question, how do we update a set of array inside a while loop? I try to link the array to the output of "build array" but it shows mismatch.
03-08-2011 05:42 PM
Hi Jeffry, if you want to update the array inside the while loop as it executes, u may use a shift register or a variable depending on what value you are updating. Do you mean you are wiring an array constant to the input terminal of the build array vi?