08-15-2012 03:46 AM
Hi all,
I'm trying to add text lines programmatically,
what I'm tiring to implement is a simple text terminal for my software in order to show text messages.
My problem is that that I need to add text lines from different sub vi's.
Can any one recommend a good approach ?
Solved! Go to Solution.
08-15-2012 05:56 AM
The list box has a Strings[] property, just update that array of strings.
/Y
08-15-2012 06:00 AM - edited 08-15-2012 06:01 AM
08-15-2012 06:09 AM
Thank you guys for the replay ,
I know that but I'm having difficulty with changing the array in subvi
1. With the reference : how to change an array value in the subvi
2. With the process : if I'm updating a value in the array then the whole array inserts into the property of my list so basically it rewrite the entire array to the list on every change , isn't that a bit Wasteful ?
08-15-2012 07:25 AM
1. Get array, modify, write array
2. Yes and no, as you and the program dont know if the next byte of memory is free you'll need to allocate the full array worth of memory, thus a new array. For a single item you'll use Replace array and hopefully the compiler is smart enough to only change that memory. 🙂
/Y
08-15-2012 07:49 AM - edited 08-15-2012 07:50 AM
@kobi Kalif wrote:
1. With the reference : how to change an array value in the subvi
2. With the process : if I'm updating a value in the array then the whole array inserts into the property of my list so basically it rewrite the entire array to the list on every change , isn't that a bit Wasteful ?
1.
2. That's what you do for normal arrays as well.
08-16-2012 12:57 AM
Thank you all for the help ! the problem was solved.