LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store interpolated values from a while loop into and array and then create a graph

Hi AJ,

 

why do you need to start a new thread for an already answered question?

Christian Altenbach provided a nice solution!

 

Please cleanup your code to make it more readable and try to incorporate Christians suggestion…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 21 of 23
(212 Views)

Hey

I asked another questions because no one answered the second question I has asked and I needed help.

The initial solution works but not for the more complex VI which is where I need more help as it is different from the initial model I had attached. 

 

Any help for the more complex model would be appreciated

0 Kudos
Message 22 of 23
(182 Views)

Hi AJ,

 


@AJcpt wrote:

The initial solution works but not for the more complex VI which is where I need more help as it is different from the initial model I had attached. 

 

Any help for the more complex model would be appreciated


You need to apply the very same procedure/algorithm to your "more complex" VI than you should have done with your "simpler" VI.

Build a XY graph needs the very same functions as before! (You should have learned by now how to create a XY plot.)

 

On your "complex" VI:

  • You only need one IndexArray to get the subarrays of your "data" 2D array.
  • You can bundle all those clusters once before the While loop!
  • Why are there so many indicators with missing labels? NEVER delete the label of a frontpanel element!!!
  • Why don't you use the digital display of all those gauges? No need for another terminal in the block diagram! (To make it "less complex"!)
  • Why do you need Formula ExpressVIs for simple calculations like "a/b/c"? Use a CompoundArithmetic instead…
  • Why don't you place all those calculations into a subVI to make the main VI "less complex"? (Use typedef clusters to output all those individual values from that subVI…)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 23 of 23
(174 Views)