12-18-2011 11:45 AM
Hello,
I'm using Labview 2010 and I'm a bit of a novice at it, unfortunately.
So I'm currently trying to get mean values of three plots I have on a multiplot XY graph. I thought the best way of doing this would be to use the Statistics express VI, however when I try to wire the data I need to this I can only get the statistics for one data set, and not the other two.
I'm not sure how the separate out the data sets, as it is not an array.
If anyone can help me, it would be much appreciated. Sorry for the probable simplicity of the question.
(The programme is basically an ODE solver, which then displays pressures at different locations in a bioreactor).
Solved! Go to Solution.
12-18-2011 11:58 AM - edited 12-18-2011 12:09 PM
In the small FOR loop where you have the y data for each plot as a 1D array, add a "mean.vi" from the math:statistics palette. Autoindex the output at the loop boundary to get a 1D array containing the three means.
(Also, a lot of your code could be simplfified dramatically. You can wire [i] directly to the case structure and make one case "0" and the other the default. Better would be simply to initialize the shift register, no case needed. Index array is resizeable, so you only need one instance on the lower right. Wouldn't it be easier to simpley get the entire last column and wire it back to the input inside the case structure via the feedback node? No need for "replace array subset".)
You forgot to attach a subVI, so we cannot really test.
Hre's a quick draft:
12-18-2011 12:21 PM
Thank you so much, it all seems so easy now! I'll get back on learning more Labview. Thanks again ![]()