What am I doing differently between these two files? I want to plot two curves on the same plot in the file DecayingGaussian.vi, but when doing the same thing as in 2 curves in single plot-1.vi, I get an error. I'm at a loss.
Solved! Go to Solution.
Modify decaying Gaussian like below.
Your x-values are equally spaced (x0=0, dx=1), so a simple waveform graph is sufficient.
Also note that you are doing a lot of duplicate operations. For example the Gaussian only needs to be calculated once before the loop and not 500 times in a row. The outer FOR loop only applies scaling.
There are plenty of ways to rewrite that code more efficiently, here is one possibility.