04-29-2013 09:28 AM
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
Solved! Go to Solution.
04-30-2013 02:30 AM - edited 04-30-2013 02:30 AM
still haven't found what am looking for
04-30-2013 04:34 AM
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.
04-30-2013 08:25 AM
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.
04-30-2013 10:46 AM
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
05-03-2013 03:00 AM
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 !!