10-18-2010 03:22 AM
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 🙂
Solved! Go to Solution.
10-18-2010 04:07 AM
Hi,
check if this VI is what you're looking for.
10-18-2010 04:24 AM
Hi, if you're specifically looking the reason of broken wire in your code, its here:
10-18-2010 10:47 AM
Thanks! Solution.vi is a nicer way to plot graphs
10-18-2010 11:12 AM - edited 10-18-2010 11:13 AM
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.)
10-18-2010 12:05 PM
good point about division.