FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiplot xy graph

Hello,

I am writing an application with 2-channel XY Graph plot, using while-loop and Insert Into Array function. One-channel version works perfectly, but with two I am in trouble. In the attachment you can find the trial version with Rundom numbers plotting. Could you please help me to find a right way?

Thank you in advance,
Armen
0 Kudos
Message 1 of 3
(4,010 Views)

It appears that you are combining your 2 points, 1 for each plot, and then adding them to the end of a single array that makes up the x-y graph.  Each iteration of your loop, 2 points are added to a single plot, 1 point from the larger random number and 1 point from the smaller random number.

You may want to consider a shift register for each array where you append the new points to their respective arrays, then combine the 2 arrays into 1 larger multi-dimensional array that gets fed into the XY graph.

0 Kudos
Message 2 of 3
(3,994 Views)

Could I get an example of such a vi.

0 Kudos
Message 3 of 3
(3,340 Views)