LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Surface Plot Help

Hello,

 

I've been trying to replicatedthe 3D Surface Plot that is found in the ImageJ program with LabVIEW.

 

I can open the image in ImageJ and obtain the x & y coordinates of each pixel in a image with the current value of the picture and the program stores the image in a xls file.

 

Using this forum I've managed to create a program to to open the excel file, put the required data into an array.

 

Again, looking at examples on this forum I've managed to create some code using the Surface Plot vi in Labview. I get a 3D image that sorta looks similar to the one in ImageJ, but something isn't quite right and I'm not sure what I'm doing wrong.

 

Can someone please help.

 

The image (attached) is 167 by 208.

 

Also attached is the ImageJ surface plot 3D and my Labview CODE.

 

Any help would be great.

 

Cheers

 

K

0 Kudos
Message 1 of 2
(3,003 Views)

Hi,

 

First, may I ask, are you trying to simply duplicate the ImageJ image into LabVIEW?  If so, why is this a 2D image that you are trying to create into a 3D plot?

 

Secondly, why is your entire program in a while loop--are you looking to do this entire operation a few times?

 

Third- you might be having a data flow/race condition issue.  There is nothing that guarantees that the case structure that creates the 3D surface graph runs before or after any of your excel active X code.  You should implement something to ensure that the case structure, with all of you data, runs last.

 

I hope this helps, 

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 2 of 2
(2,963 Views)