LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi do I multiplot an XY Graph?

Please take a look at the attached vi. I would like to compare actual data with the generated regression line, but cannot see how to get the mulitple plots into the single XY graph. Obviously I'm using v7.0. This is using Win2000 Prof. What am I doing wrong? Thanks, Dave
0 Kudos
Message 1 of 4
(3,206 Views)
Bundle the X1 and the Y1 array (X first), bundle X2 and Y2 array, wire the two resulting clusters into a build array function. There's a multiplot example shipping with LV7 that shows you all the different ways to build plots.

You can skip the build XY express VIs. It also seems like you use locals a lot; use wires where you can, that way you secure the execution order and avoid copying the data.
Message 2 of 4
(3,206 Views)
Hello all,

Please take a look at the attached, modified VI that implements some of Mads' suggestions. I changed the XY plot and replaced the local variable use with a shift register.

To easily see how to correctly wire multiplot graphs, bring up Context Help (Ctrl + H) and hold the cursor over the graph icon. Context help will give a quick remonder of how to program single- and multi-plots.

I hope this helps! Please let me know if I can be of further assistance.

Liz F
National Instruments
0 Kudos
Message 3 of 4
(3,206 Views)
Hi Liz, thank you for your comments. The shift registers have been incorporated. I used to think shift registers were used for sending data between control loops. I can see the value of reducing variables. Learning something every day...
Dave J.
0 Kudos
Message 4 of 4
(3,206 Views)