01-29-2021 04:17 PM - edited 01-29-2021 04:20 PM
I would like to plot the cluster data on the plot. Cluster is connected to dqueue element. Whenever the queue has data avaiable at that time is dequeue, and change the data in cluster.
I would like to represent that data on graph.
Here the sanp of vi.
From the cluster-parameter, one parameter use for X axis, and another one use for Y axis.
any one can give me suggestion or example vis.
Solved! Go to Solution.
01-30-2021 05:34 PM
You only get a scalar with each iteration, so you need to built it into a growing array, typically in a shift register initialized with an empty array.
Since you want xy data, use an xy graph (not a waveform graph!). I recommend to built it into a complex array, xy graph understand that directly and will graph IM vs. RE.
We can typically give more specific help if you would attach your VI.
02-01-2021 12:11 PM - edited 02-01-2021 12:51 PM
Thank you for your reply. As I know if I am gone use the array then i can keep the history of the data. I found another plot which is wave form chart. It is has in built functionality to keep the history of the data, and update on arriaval of new data point. I want the same funcationality, But wave form chart povide the apmplitude, and time paramater by it self.
So, I don't want use and scalre factor or axis parameter which are default from wave form chart. I do have my own timestamp, and volatge parameter. So, is it possible to give timestamp on X axis, and any another patameter on Y axis. I would like give access to the user which parameter they want to plot for X and Y axis.
02-02-2021 07:37 AM
You will need to store your data in an array for easy plotting.
Y@sh001 wrote:
So, is it possible to give timestamp on X axis, and any another patameter on Y axis. I would like give access to the user which parameter they want to plot for X and Y axis.
Not sure if you want to plot one parameter against another or just against the timestamp, so here's an example of both. Edit the enumerators to reflect your parameters (better yet make them both from a single typedef).