LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filling a 1D array with nulls

Hello,
 
    I want/need to completely fill a 1D array with nulls. Is there a easy way to do that? I have created a value property node for the array, changed it to write and have created a constant for it, but is will fill the array with zeroes, I want to fill the complete array with nulls so that the complete array will be empty.
 
Regards,
 
Kaspar
Regards,


Kaspar
0 Kudos
Message 1 of 4
(2,954 Views)
I interpret your question as wanting an empty array as opposed to an array filled with an object whose value is "null", which is different. To get an empty array, right click on your array constant and select "Data Operations -> Empty Array".
Message 2 of 4
(2,952 Views)

Hello,

 

   Thanks for the quick response and for clarifying the difference between a empy array and a array filled with nulls. It works for me! I am happy...I rated your reponse with a high 5Smiley Very Happy

Regards,


Kaspar
0 Kudos
Message 3 of 4
(2,941 Views)
What is the data type of the array?  An empty array contains no elements, nothing.  If you are trying to set up a buffer with a specified array size, you need to use the Initialize Array function.  Usually, \00 is considered a NULL character.  If this is what you want, create a string constant, right click on it and select \ codes, then type in "\00" without the quotes.  Wire this and the array size into the Initialize Array function.
- tbob

Inventor of the WORM Global
Message 4 of 4
(2,939 Views)