LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Three charts on one XY garph

Solved!
Go to solution

Hello!

I have to place three charts on one XY Graph:

1) random number function F(x)

2) exp(x) in interval [0;pi] from 1024 separate points

3) function (1-F(x))*exp(x)

 

First two functions are working fine and are displayed. The problem is my third function because LabView won't allow me to connect the wires to X and Y inputs. So my question is - how can I put the third function on the Graph.

It would be great if someone could help me!

 

Thanks 🙂

0 Kudos
Message 1 of 6
(3,454 Views)
Solution
Accepted by topic author kukonens

Hi,

 

check if this VI is what you're looking for.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 6
(3,447 Views)

Hi, if you're specifically looking the reason of broken wire in your code, its here:

 

Reason of broken wire..PNG


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 6
(3,441 Views)

Thanks! Solution.vi is a nicer way to plot graphs

0 Kudos
Message 4 of 6
(3,422 Views)

I always recommend to use complex data for XY. See how much simpler the code gets (LabVIEW XY graphs plot complex arrays as IM vs RE). 😄

 

 

(See bottom alternative of image)

 

(Especially in newer LabVIEW versions, the compiler is often smart enough to recognize loop invariant code. Still, You should put the division by 1024 outside the loop because it only needs to be calculated once.)

0 Kudos
Message 5 of 6
(3,411 Views)

good point about division.

0 Kudos
Message 6 of 6
(3,403 Views)