05-02-2013 01:12 PM
hello
how can i implement this code in labview. i am new to labview, so plz if u design a vi of this code.
for i=1:m
c = (i-m/2);
for j=1:n
d = (j-n/2);
N1(i,j)=exp(-(c^2+d^2)/c1^2);
end
end
wher m is num of rows and n is number of column and c1 is a constant
thnx
kitty
05-02-2013 01:21 PM
05-02-2013 01:35 PM - edited 05-02-2013 01:38 PM
Here's a quick framework for you to start with. I left out most of the math.
Some things to notice:
Since you claim to be new, you might want to check out some of the online tutorials.
05-02-2013 04:40 PM
thnx dears.
i think i get confuse in no time .:)
but after posting question i tried and designed a vi that is giving me correct result.
here is it.
thnx 🙂
is it correct?
05-02-2013 04:47 PM
now plz tell me one thing that how can i find a*b and a.*b.
the aXb vi inlinear algebra is producing wrong result 😞
05-02-2013 05:27 PM - edited 05-02-2013 05:28 PM
The results are correct for the inputs given and the current code 😉
What is the purpose of the empty matrix you have wired to the FOR loop? Since it is empty, it will force zero iterations and your loop does not produce any data. remove it!
Why are your diagram and front panels maximised to the screen??? That's just annoying...
05-07-2013 01:12 PM
sorry. i dont understand what do u mean by block daiagram maximised to screen?
05-07-2013 01:50 PM - edited 05-07-2013 01:54 PM
My monitor is 2560x1440 pixels and your code on the diagram is about the size of a postcard. If I open your VI, the front panel and diagram windows are maximised to the screen, filling every single pixel with mostly white or grey non-information.
As a labview programmer, my brain operates in parallel and I typically would like to look at more than one window at a time. The windows should not be larger than needed to display the relevant information.
Thanks!
(This same issue is the most annoying feature of the new windows 8 optimized programs that now open fullscreen (skype, document viewer, player, etc.) I use the windows 7 version of skype and similar tools (acrobat viewer, mediaplayer, etc.) for the other programs)
05-08-2013 12:47 AM