LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

basic quesiton about plotting

Dear, all:

I would like to draw two independent wave functions in a display.
(I made two Y axis scale to do this.)
The waves should be accumulated in the display, as time goes on, to watch the history of data.

Only one I know is that I have to make 2D data array.

Could you please open my trial file and then give a comment?

Thank you in advance.

Lee
*)The file was modified from LabView(v7) example code.
0 Kudos
Message 1 of 5
(2,394 Views)
The way you're doing it, you are adding two rows to the 2D array with each iteration. In frame 1, you're taking the existing 2D array and concantanating 2 1D arrays. Instead, just use the build array with two inputs and do not concantanate. You could also use a chart like in the attached example.

Also, you said you created a second Y axis scale but the posted example doesn't have this.
0 Kudos
Message 2 of 5
(2,384 Views)
Try something like the attached (and get rid of all these sequences! ;))
0 Kudos
Message 3 of 5
(2,382 Views)
Thank you for your reply.
How to realize the multi-Y axis in the graph?

Lee
0 Kudos
Message 4 of 5
(2,370 Views)
Hi labmaster,

To duplicate the X or Y-scale, all you have to do is right-click on it and choose "Duplicate Scale". You can then "Swap Sides" so the scale gets moved to the opposite side of the plot area. Remember to assign the different plots to the right scales by right-clicking each plot in the "Plot Legend" and select the correct "X Scale" and "Y Scale".

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 5 of 5
(2,358 Views)