LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple XY Graphs

What i'm doing wrong? Why i have these graphs in such strange colors???

 

0 Kudos
Message 1 of 6
(5,477 Views)

Kriziz wrote:

What i'm doing wrong? Why i have these graphs in such strange colors???

 


 

Answer to first question: nearly everything??  SCNR

 

Question: What do want to do?

 

How many graphs do you expected to create? 

Without commenting the style I did a small modification (shifted x each interation )  ...

 

 

 problem2+.png

 

 and here a mod to get the same result without the over(under)drawing the plots

 

problem2same result.png

 

Maybe you didn't want to create 30 plots?   

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 6
(5,467 Views)

I want to create 3 different plots on same graph, each plot has got 10 points. Every point should be displayed in "real time". Of course, example is simplified.

0 Kudos
Message 3 of 6
(5,462 Views)

Hi Kriziz,

 

In general I agree with Henrik. He didn't comment, but I have to - especially if you are asking for help from other people and you are providing the code, be sure your code is not one mess. In the least use Block Diagram Cleanup, so your code is not so messy! (sorry, but readable diagram it will help all of us).

 

In general what you want to do is very simple - check XY graph topic in LabVIEW help (Types of Graphs and Charts). If you open this help from LabVIEW, you can directly open examples showing how to plot multiplot graphs.

 

XYgraphs.png

 

 And to answer yor question on what you do wrong - you build and keep Multiplot XY Data too rearly (too nested). Instead of having feedback node inside with Multiplot XY Data in inner, loop move it out. I preffer shift registers, so you can have a look on implementation with them:

 

XY graph.png

 

Regards,

Stefo

Certified-LabVIEW-Developer_rgb.jpg

Message 4 of 6
(5,425 Views)

problem2solution.png

here is one way...

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 5 of 6
(5,419 Views)

Yes, that's the more proper code with considering the memory (mostly on RT).

 

 

Greetings to Germany   Smiley Wink

Stefo

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 6 of 6
(5,408 Views)