LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HiInitialise Array - same size as the original image

Hi,
 
Can anyone help me .. I want to initialise an array so that the element is equal to 0. The size of the array should be the same as the original image. I'm unable to wire the size of the array to the size of the image. Please refer to my attachment.
 
Can anyone help me..Please, it is very urgent!!!
 
Thanks!!!!!!
0 Kudos
Message 1 of 9
(6,603 Views)
Hi Aaz,
   I suppose the problem is that the array you put as input of "array size" function is a 2 dimension array (let's call it a Matrix, m x n ), and as  output of "array size" you get a one-dimension array, of two elements, the first is m, the second is n (or viceversa, I didn't check...).

   I build a simple example, without bmp functions, to show it...

   Please report if you experience further problems!

   Have a nice day

Graziano
Message 2 of 9
(6,590 Views)

In ur example 2D  array size gives 1D of Row & column size , u Connect index array to the array size the index array returns Row size in index 0 & column size in index 1. U drag the initialize Array it shows two terminals for dimension Size. Connect index array 0 to array dimension 0 & index array 1 to array dimension 1 u get required result.

-See attachement

-Kumar B.

Download All
Message 3 of 9
(6,588 Views)

Hi Kumar and Graziano ,

thanks for your answer.

Kumar,
Can u save the vi in 7.0, as I couldn't open it.

Graziano,
I'm trying to do as what you suggest. Will let u know the result soon.

Thank you very much to both of you.

 

 

 

 

 

 

0 Kudos
Message 4 of 9
(6,579 Views)

Hi Graziano,

 

It works. thanks!

0 Kudos
Message 5 of 9
(6,570 Views)
Nice Smiley Very Happy
0 Kudos
Message 6 of 9
(6,560 Views)
Here in LV 7.0...
- Partha ( CLD until Oct 2027 🙂 )
Message 7 of 9
(6,555 Views)
Come on! Why so complicated???
 
All you need to do is multiply the original array by zero. 😄
 
 

Message Edited by altenbach on 05-28-2007 10:50 AM

Message 8 of 9
(6,545 Views)

Hi Altebach,

I didnt open & see the VI. I simply saved it in 7.0 & sent back... Smiley Surprised

- Partha ( CLD until Oct 2027 🙂 )
Message 9 of 9
(6,514 Views)