LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

only autoscale x and y maximum values

Hey, so i want this graph to show the line from the (0,0) point to the point where it goes through y=0 again. So basically i want the x and y minimum to be set at 0, but the x and y maximum to change depending on the plot, so it shows it from the start until the end (where it goes through y=0 again). I hope this makes sense.

somelabguy_0-1733081037376.png

 

0 Kudos
Message 1 of 9
(257 Views)

You can set the scale range with property nodes. Turn off autoscale and set the min to zero and the max according to the max in the data whenever the max changes.

0 Kudos
Message 2 of 9
(254 Views)

forgot to add the file 🙂

0 Kudos
Message 3 of 9
(253 Views)

yeah, but isnt the problem with this, my program makes the plot using plynomial function, so it generates the plot between 2 given x values? And also, how would this work for the y value?

Could you maybe show me? 

0 Kudos
Message 4 of 9
(243 Views)

somelabguy_0-1733081695128.png

here is my block diagram

 

0 Kudos
Message 5 of 9
(242 Views)

@somelabguy wrote:

 

here is my block diagram


No, that's just a picture! If you want more people to look at your VI, use "save for previous (2020 or below)" before attaching. Many don't have LabVIEW 2024.

0 Kudos
Message 6 of 9
(238 Views)

im sorry didnt know. this should do it, can you take a look? hope it works

0 Kudos
Message 7 of 9
(235 Views)

Hello, how can i want to get the maximum y value out of my plot, to use for further calculations, how would i do this?

somelabguy_0-1733087695065.png

 

0 Kudos
Message 8 of 9
(234 Views)

See if this can give you some ideas...

 

altenbach_0-1733113513349.png

 

 

 

A few points:

  • Do not start duplicate threads for the same problem
  • Do not maximize the front panel and diagram. That's annoying.
  • Use a scale range change event, not mouse-up event for the graph
  • Use a timeout to update the output based on the current settings when the VI starts.
  • etc.
Message 9 of 9
(195 Views)