11-19-2024 04:48 AM - edited 11-19-2024 04:57 AM
;
11-19-2024 09:08 AM
@somelabguy wrote:
Hey, could you do this to my vi? I would really apreciate that. TYSM you found what i was looking for!
You will have to upload your VI first and preferably saved for a previous version (I only have LabVIEW 2015).
The code in your first post is not very useful I'm afraid. What kind of functions do you need to plot (linear, polynomial)?
11-19-2024 09:15 AM
A line is always defined by two points and the LabVIEW graph knows how to map an interpolated line to a small set of pixels. No infinite amount of points (sic) is ever needed. (That said, the graph might have problems if you zoom in by a near infinite large number due to numerical issues.).
Can you explain the purpose of all this? For example if you want to find e.g. an intersection with very high precision, pure math would be much better at it.
11-24-2024 08:22 AM
So basically, this VI is what i want, but can you make it like the VI you sent here in a previous answer? I don't know where to find the options for it. TY.
11-24-2024 02:03 PM
(Please do not maximize the front panel to the screen!)
So you have two sets of 11 points (e.g. generated with some Rube Goldberg FOR loop. Why would nee need to generate the same X values twice???).
You are not graphing the data, just the best fit for the same x-values.
What's the point of the the graph with a single point at 0,0? A single point will not show unless you set the plot to show points.
A value change event for the XY graph is pointless, because it is an indicator. You want a "scale range change" event for it.
Why do all your line parameters default to zero. I am sure that are better default values.
As I said already, to define a line all you need is two points, one for xmin and one for xmax. No need for FOR loops!
See if this can give you some ideas. You can change the x-range to anything you want and the data will adjust.
11-24-2024 02:26 PM
hey ty for this, but where would i find the thing in the foto? If i want to make the program myself now?
11-24-2024 02:51 PM
@somelabguy wrote:
hey ty for this, but where would i find the thing in the foto? If i want to make the program myself now?
Please see attached screen recording video.