05-15-2015 04:15 AM
hi all, my first problem is that i'm trying to generate and plot a bivariate normal gauss function on a 3d plot, i spent much time on this vi and i can't get it to work fine
my second problem is that i want to plot 2 3D normal Gaussians on the same plot, and i don't understand 3D plots very well
any help will be appreciated
05-15-2015 07:46 AM
The array manipulations at the beginning of your code "look wrong", and are certainly written in a much more complicated manner than necessary. For example, you use the construct
and, in some cases, reverse this array (all of whose elements are identical). With the new possibilities for output tunnels introduced (I think) in LabVIEW 2012, there is often no need for building arrays by appending elements to an empty array.
Bob Schor
05-15-2015 09:02 AM
thanks, i agree with you, but can you help make it work... the result plot is not what i expect
@Bob_Schor wrote:
The array manipulations at the beginning of your code "look wrong", and are certainly written in a much more complicated manner than necessary. For example, you use the construct
and, in some cases, reverse this array (all of whose elements are identical). With the new possibilities for output tunnels introduced (I think) in LabVIEW 2012, there is often no need for building arrays by appending elements to an empty array.
Bob Schor
05-15-2015 10:26 AM
this is what i expect
but instead i get this
05-15-2015 12:29 PM
Maybe you need to interpolate the points? Please look at this shipping example to see how you can do that:
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Mathematics\Interpolation\Scattered 2D Interpolation.vi
05-15-2015 12:36 PM
i tried all the examples 🙂 .. didn't help much
05-15-2015 01:56 PM
Did you look carefully at Barp's example? Do you see that there are two plots, neither of which is the plot you used? Have you tried doing what Barp did?
BS
05-15-2015 05:07 PM - edited 05-15-2015 07:16 PM
As a fist step, search the forum (e.g. this thread)
But before you go any further, learn some LabVIEW basics. It will make everything much easier. Here are some glaring mistakes:
05-18-2015 10:17 AM
I think also part of the problem you are running into is because your are not configuring your graph properly.
The example shows how you can generate a 'cloud' of points' (not connected to each other) that will show how you can evaluate the bivariate gauss function and plot it. The second graph shows how you can fit a function into points and that would generate probably the graph above.
But, the important part is learning how to setup the graphs to show this way and how you code in LV for that. Altenbach gave you several tips in how to do this too...
Hopefully the example can be useful now...