LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array problem

Small question about arrays:
 
See attatched problem.vi. How can I add the values to the array, not only change the value at index 0 each time I press the button.
0 Kudos
Message 1 of 8
(3,366 Views)

Plz attach in LabVIEW 7.1 version or paste a pic of block diagram

regards

Dev

 

Message 2 of 8
(3,359 Views)

Hi,

I have only Lv 7.1 version, can you resend that code plz?

0 Kudos
Message 3 of 8
(3,358 Views)
Sorry, my LV8 is not installed by now....
 
To attach one value at index 0 you can use the build array function. Top input is your new value, second your array.
 
BUT try to avoid the build array function if you don't do once in a while since it will allocate new memory and costs system performance on big arrays.
 
 
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 8
(3,358 Views)
Here is 7.1. Sorry about that 😉
0 Kudos
Message 5 of 8
(3,357 Views)
Hi Christian,
here u are!
 
In the attached VI, just see how i am insertig new elements into an array
Use either Build array or insert into array
Use build arrays for large arrays with care,  as it will load ur memory
 
Regards
Dev
 

Message Edited by devchander on 12-16-2005 03:24 AM

Message Edited by devchander on 12-16-2005 03:27 AM

Message 6 of 8
(3,352 Views)
here you go
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 7 of 8
(3,347 Views)
Thanx. That was quick Smiley Happy
0 Kudos
Message 8 of 8
(3,338 Views)