LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple xy graphs and multiple buffers

In my vi I have two xy graphs, Graph1 and Graph2, and I can plot multiple lines on each graph. The graphing part of the code is as follows for Graph1, and something similar for Graph2.

girish53_0-1678457534349.png

where grbuf is an array of n (time,value) clusters, n is the number of lines in that graph. Each graph is updated in a flat sequence, and grbuf is generated for each graph separately.

When I send data to only one graph, either Graph1 or Graph2, it works fine. But when I plot data on both graphs, it is messed up. I don't know how to keep the buffers used by the XY Chart Buffers subvi separate from each other. The XY Chart Butter.vi is one of Labview's vis (I can attach it if necessary) 

 

0 Kudos
Message 1 of 3
(798 Views)

Hi girish,

 

why do you need a "Chart buffer" subVI for graphs?

Why do you need so many local variables?

Why don't you attach your code when you have problems in the code?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(780 Views)

At this stage of your LabVIEW learning, you should never use a Flat Sequence!  [What, never?  No, Never!  What, never??  Well, hardly ever -- only if you need to connect a "Wait" function to the Error Line and you don't have the "Stall" vim handy ...].

 

Bob "HMS" Schor

0 Kudos
Message 3 of 3
(738 Views)