11-10-2008 09:28 AM
I am trying to use the 3d plots in LabView 7.1. After I run the program (while trying to get correct plots) a few times I get error 1, "plot number is out of range" and then the 3d plot becomes useless. Even if I remove any inputs to the 3d graph, the error keeps coming up. Even if I delete the 3d graph from the front panel of my app and create a new one - without any inputs attached, then error comes up. The only time the error goes away is when I create a brand new VI and place a new 3d graph on it. Is this a bug with 3d graphs in LabView 7.1?
Thanks,
TommyHelter
11-11-2008 10:13 AM
Tommy,
If you wire nothing to the 3d plot, then that error is expected to happen. I have an example vi that I will attach for you that I would reccomend looking at. It should give you a good feel for how to set up the 3d plots. Hope this helps some.
11-11-2008 11:04 AM
Actually, the error occurs even when I have a 2d array wired to the 'z' terminal as in most of the examples. I tried nothing wired to it just for comparison. Thank you for the example. I will review, but I don't think it answers the question completely.
Thanks for your time on this.
Tom Held
11-11-2008 11:08 AM
Just guessing now...
I have nver seen that message but I will venture a guess that your 3d graph (which by default has one plot) had the default plot deleted. Goto the CW3d plot properties, slect the plot tab and check if it has at least one plot. BTW: 3d plots start at "1" not "0".
Ben
11-11-2008 11:32 AM
Ben,
Its an error that can be produced by just adding a 3D surface to the block diagram then adding a control and an indicator. The control just needs to be an ActiveX container with the 3d plot inside, which is seen in the example.
As a side note, you might have to browse for that example when trying to open it. It looks like the file path leads to the llb even though I saved it outside of that. I apologize for that inconvenience.
09-16-2015 10:04 AM
This happens if you add more plots (plot 1, plot 2...) on the block diagram without changing the allocated plots.
On the front panel right click on the plot, select the graph (e.g. CWGraph3D) and edit the properties by adding a plot (plots -> add).
Good luck
10-24-2021 02:07 AM
I also had this error, and the error was still not fixed even I tried to add more plots in properties. could you please give some more advices?
here in below, I attached my diagram picture, normal like other examples..
thank you.
10-24-2021 02:53 AM
okay... so I fixed the problem when I looked at examples seriously.... the problem was in my subvi, which always close the reference in the while loop..
fixed the problem when I just let it be....