12-12-2005 11:55 PM
12-13-2005 02:52 AM
12-14-2005 05:51 PM
12-14-2005 06:16 PM - edited 12-14-2005 06:16 PM
A reference is like a pointer. You just can't increment the reference like can increment a C pointer. Create your arrays, create a reference node for each one, and put these into an array of references. Then index the array to get reference to a regular array. Use properties to manipulate array data. See attached picture:
Message Edited by tbob on 12-14-2005 05:17 PM
12-15-2005 02:05 AM
12-15-2005 03:10 AM
12-15-2005 03:14 AM
12-15-2005 05:18 AM
12-15-2005 10:44 AM
@RichL wrote:
Hi tbob,
thanks for your suggestion! I did build it up with three arrays and a numeric control to select one of the arrays, which works fine. However, there are the following effects which I don't understand yet.
1. The RefArray can only be defined as Variant, showing a violet colour instead of a green/blue as in your example; I could not find a refnumber without giving me an error.
2. By changing the array selector, following array elements are being written into: 1,1 of array0; 0,0 of array1 and 1,0 of array2. I don't see why it is different for each array. Is there a possibility to select the array element being written into?
My VI is attached, LV7.1
Kind regards
Richard
12-16-2005 12:23 AM