LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to show the two waveforms on waveform graph

 I have get the stereo sound file waveform ,i want to show the left  track and right track on the same graph which is waveform graph ,but I d`ont know how to do it ,i hope some one can help  you!
thanks a lot
0 Kudos
Message 1 of 7
(3,660 Views)
To put multiple plots on the same graph combine the data into a 2D array.

Mike...



Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(3,654 Views)

thanks mikeporter

     i put the two waveform into the build array.vi ,and can see the result ,but the result is not good!

    because the two waveform overlap together.i  want  to see the right trakc on the top of the waveform graph and see the left track below the right track,how can to do it !

thanks a lot

0 Kudos
Message 3 of 7
(3,648 Views)
You can add a second y axis using the axes legend. Put one axis to the
right one to the left.
Right track then must use right axis, left track the left one. Change
scaling of both axes so one track appears above the other.
That should do it.

Stefan

0 Kudos
Message 4 of 7
(3,643 Views)
thanks Milchbilch
     I try to do as you say ,unfortunately  i can find the axis legend ,my laview`s vision is labview7.0 evaluation.so counld say is more detail or give me an example.
 thanks a lot
0 Kudos
Message 5 of 7
(3,641 Views)
Assuming that you are starting with a waveform graph to which you have made no other changes:

1. Right click on the y-axis itself. In the menu that pops up, select the item "Duplicate Scale". You should see a second y-axis scale appear next to the first one.
2. Right click on the second y-axis and in the pop-up menu select the item "Swap Sides". The graph will now have y-axis markings on each side.
3. Go to the plot legend (the default location for the legend is sitting right above the upper right-hand corner of the graph) and resize it so that you can see to plot labels: Plot 0 and Plot 1.
4. Right click where it says Plot 1 and in the pop-up menu go down to "Y Scale" afrom the secondard menu select "Amplitude 2". This assigns the second trace to be plotted against the right-hand axis.

Not when you run your VI the traces will still appear overlapped at first, but you can change the ranges of the two scales to make the plots appear stacked one over the other.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 7
(3,629 Views)

thank you mikeporter :

  the problem is solved,it is great!!!

thank you very much

0 Kudos
Message 7 of 7
(3,617 Views)