キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/5
3,196件の閲覧回数
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 件の賞賛
メッセージ2/5
3,186件の閲覧回数
Try something like the attached (and get rid of all these sequences! ;))
0 件の賞賛
メッセージ3/5
3,184件の閲覧回数
Thank you for your reply.
How to realize the multi-Y axis in the graph?

Lee
0 件の賞賛
メッセージ4/5
3,172件の閲覧回数
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 件の賞賛
メッセージ5/5
3,160件の閲覧回数