04-17-2012 09:16 AM
Dear All,
I am trying to plot more than 2 waveforms on a graph/chart with current absolute time on the x-axis.
It works if I plot two waveforms on XY graph but shows broken wires (mismatching of data types) for more than 2 waveforms.
Now, I have tried waveform charts and graphs, and ti doesnt work there too.
I have attached my VI below.
Can someone please help me out with this.
04-17-2012 11:41 AM
I can't see your vi because the version is newest, but I attached some examples. Is important generate signal with time information and then modify the display format of the graph in the properties.
04-17-2012 12:06 PM
If you want to display multiple plots, you need to consider the following:
1. Are they in the same scale
2. Do you want to split the parts up, e.g.1 for pressure 1 for temperature
Did you change the property in your graph to to show more than 1 plot?
04-18-2012 06:17 AM
Dear Mahu,
I have attached a snapshot of my VI. This snapshot shows a VI which works perfectly but as soon as you will extend the bundle and add another random number generator, it will show data mismatching.
The reason why I am not using a chart, although it works perfectly for this, is beacuse I want to control the x axis (start and end time) to see data at time as specified by user.
Waiting for your reply.
04-18-2012 06:19 AM
I have tried that too but it doesnt seems to work. Please look at this picture of my VI I have posted in my previous coment.
04-18-2012 08:38 AM
Your statement is not quite true. You can use chart to set the time when you start and end.
The cluster that is going into the graph, try making the 2nd component, y into an array of multiple elements.
04-18-2012 10:28 AM
it still doesnt work. shows the same mis match of data types of wires 😞
04-18-2012 11:21 AM
Your graph input needs work. You need to create something similiar within the loop to make it work properly. See example one that is out of the loop.
04-23-2012 06:15 AM
I have tried everything after looking at your provided VI and I still can't solve the problem. Thanks for trying to solve it for me though. Either timing goes crazy or wires go unmatched.
04-23-2012 06:35 AM
Hey. Thanks to you. It works !!!
But I am having another problem here. If you look at the attached picture, you will see that for some reason the new data points that come on the graph are linked to the 1st data points when the program was ran at first time.
Now how can I get rid of this??
Also how can I have different colors for each input signal?
Thanks again.