LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

differents image and plot

Solved!
Go to solution

Hello everyone,

I am contacting you today because I have a weird 'bug' in labview 2010 and I would like to know if any of you could help me to solve it out. I believe it's not a real bug but probably because of my lack of knowledge in labview.

Here is the problem. (you can see on screenshots too). I have a mathscript function which is working and inside the mathscript I have this : "imagesc(img1)" and "imagesc(img2)"

The output of the script are img2 and img1 .

The problem is that if I link that outputs (either with a double 2D or a Real matrix) to an image script, the screen shows something completly different than what the plot shows (the good result).

I really don't get it, I am sorry I can't link to you the VI I use because am not allowed to 😞

 

Thanks a lot for your understanding and I hope you can help me out with this !

Cheers

Download All
0 Kudos
Message 1 of 6
(2,499 Views)

still haven't found what am looking for

 

0 Kudos
Message 2 of 6
(2,476 Views)

Hello Mael_Lam,

 

Can you just give a snap shot of the part of your code use to plot these picture?

We need more information on your project to go forward.

 

 

Best regards 

 

Sabri JATLAOUI.

0 Kudos
Message 3 of 6
(2,466 Views)

this is the interesting part I believe :

img1=slope1(round(yc(1)-R(1))-1:round(yc(1)+R(1))+1,round(xc(1)-R(1))-1:round(xc(1)+R(1))+1);
img2=slope2(round(yc(1)-R(1))-1:round(yc(1)+R(1))+1,round(xc(1)-R(1))-1:round(xc(1)+R(1))+1);
imagesc(img1)
imagesc(img2)

 

"Slope" is a 2d array from a picture.

0 Kudos
Message 4 of 6
(2,446 Views)

Mael-lam

 

Is there a way for you to recreate a simple VI with the same portion of code concern ,and send it to me?

 

I need somethind to wrok on.

 

Sabri

Sabri JATLAOUI - Certified LabVIEW Architect - Certified LabVIEW Developer
0 Kudos
Message 5 of 6
(2,430 Views)
Solution
Accepted by mael_lam

hé sabri !

Thanks for your concern, I finally found the solution.

It was a problem with the z axis. I have set an intensity graph then corrected to the right intensity range. Now it works !!

0 Kudos
Message 6 of 6
(2,408 Views)