10-22-2024 03:43 AM
I want to put 2 plots in 1 graph, but why doesnt this work, and how do i fix this?
10-22-2024 03:56 AM - edited 10-22-2024 03:58 AM
Hi corned,
@corned wrote:
why doesnt this work
The "why" is explained in the context help window when you move the mouse pointer over the broken wire… (Basic LabVIEW knowledge!)
@corned wrote:
how do i fix this?
By using the correct function to build an array of plots.
(Right now you create a cluster of plots. Did you read the context help for the XY graph? There are also example VIs in the example finder that explain how to create plots in graphs!)
On your VI image:
10-22-2024 01:36 PM
@GerdW wrote:
- Why do you use a shift register to create a counter when there is a "i" terminal in each FOR loop?
- Why do you add the offset in one loop and multiply in the other loop?
- Why do you need two loops when both run the same (fixed) number of iterations?
also:
10-22-2024 02:29 PM
In order to combine your 2 graphs into 1, you need to use the function build an array
11-05-2024 02:58 AM
Hello, first of all, if my vi pains you, im sorry im kinda new to labview.
I am making a vi where i can plot multiple f=ax+b graphs in 1 display. Starting with 2 of course. I also want the lines to be like infinitely long like a linear graph should be. Now i have tried a couple of things but this is where im stuck, can anyone help me? Thanks a lot 🙂
11-05-2024 03:03 AM
I believe the word for what i want to do in english is regression? Also if it is not possible to make the lines infinitly long it doesn't really matter but would be nice.
11-05-2024 03:24 AM - edited 11-05-2024 03:26 AM
No need to make them infinitely long, just longer than your graph domain:
If you want multiple XY graphs, make a and b an array and place a for loop
11-05-2024 03:28 AM
Hi corned,
please keep related questions in the same thread…
@corned wrote:
I am making a vi where i can plot multiple f=ax+b graphs in 1 display. Starting with 2 of course. I also want the lines to be like infinitely long like a linear graph should be.
We already discussed the "infinitely long lines", so why insist on this?
@corned wrote:
Now i have tried a couple of things but this is where im stuck, can anyone help me?
Help with what? What exactly are you trying to solve?
It's nice to attach real code, but wouldbe even nicer when you would downconvert to some older LabVIEW versions before attaching. (I prefer LV2019, most are happy with LV2021 or older.)
Use File->"Save for previous"!
11-05-2024 03:34 AM
How did you make your graph look so clean?
11-05-2024 03:36 AM
@corned ha scritto:
How did you make your graph look so clean?
It's just the default XY Graph (NXG style) with autoscaling turned off. I only added a cursor at (0,0).