03-27-2010 06:38 PM
I have a 1-D array of a type definition with a cluster of 5 elements. One of the elements is an array that I want to replace. Can anyone help me understand how to do that?
Thank you.
Solved! Go to Solution.
03-27-2010 07:00 PM
Hi,
So you have a 5 elements cluster, and one of the element is an array, which is what you would like to replaced?
Feed that cluster into bundle by name and feed in the new array.
Yik
03-27-2010 08:05 PM
03-27-2010 09:19 PM
03-27-2010 09:25 PM - edited 03-27-2010 09:27 PM
You're missing a lot of VI's and controls. So it is difficult to tell exactly what you are doing.
Are you getting an error? I see an error due to mismatched datatypes where you are trying to feed an array of strings into an array of U8's.
You are also going through a song and dance of converting your 1-D array of clusters into a cluster, then later converting that cluster back into an array.
You need to index out an element of your 1-D array of clusters, replace the cluster element that is a 1-D array of U8's with another 1-D array of U8's using the bundle by name, then use the replace array subset to get that element back into your array.
Are you sure you really need as complicated of a data structure as your are trying to use?
03-27-2010 09:27 PM
03-27-2010 09:32 PM