LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Offsetting

Hello everyone. I am trying to plot the accuracy of an instrument and I want to plot his accuracy range. I already plotted the accuracy characteristic line in a X-Y graph so I was wandering if there was a way to just plot the range only by offsetting the line that I already have on top and bottom but keeping the first one plotted. The only way I was capable of is in the attached VI but I was wondering if there was a simpler way so the VI can be smaller and more understandable. Data on VI are random so I can try this VI later on the instrument. Thank you for your help!

0 Kudos
Message 1 of 2
(1,184 Views)

Your VI has two xy graphs and a waveform graph and some crazy spaghetti code. Can you point out the xy graph under discussion? There is no top-level while loop, so the entire VI is one shot and you need to produce all data to be plotted right there.

 

Can you take a step back and explain what the code is supposed to do? What values do you enter, and what results you expect after running it.

 

You forgot to attach your subVI, so please attach it. What does it do? If it just create a linear ramp, there are probably better ways. Also place typical default values in all controls, for example a value of 0 for (Campioni) is probably not reasonable.

 

  • Please don't maximize the diagram and front panel to the screen.
  • Autoindexing on two arrays as well as wiring N of a FOR loop is not typical. I doubt you need a formula node at all. You could probably do all operations directly on arrays. Since the random number generator only creates 6 values, the max number of iteration will be 6, no matter how big the ramp or the value wired to N. 
  • Because your FOR loop executes in nanoseconds, all the LED will indicate is the comparison from the last iteration. Seems lossy and uninformative.
0 Kudos
Message 2 of 2
(1,141 Views)