LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display multiple waveforms (more than 2) with current time on x axis

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. 

0 Kudos
Message 1 of 16
(3,958 Views)

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.

0 Kudos
Message 2 of 16
(3,941 Views)

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?

0 Kudos
Message 3 of 16
(3,936 Views)

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. 

0 Kudos
Message 4 of 16
(3,913 Views)

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. 

0 Kudos
Message 5 of 16
(3,912 Views)

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.

0 Kudos
Message 6 of 16
(3,885 Views)

it still doesnt work. shows the same mis match of data types of wires 😞

0 Kudos
Message 7 of 16
(3,873 Views)

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.

0 Kudos
Message 8 of 16
(3,862 Views)

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.

 

 

 

 

0 Kudos
Message 9 of 16
(3,840 Views)

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.

 

 

0 Kudos
Message 10 of 16
(3,839 Views)