User | Kudos |
---|---|
11 | |
9 | |
3 | |
3 | |
2 |
Currently when replacing an element/subarray using Replace Array Subset, you are only able to replace an element that is of lower dimensionality where one dimension is unity.
For example, given an array of size 100x3, it is only possible to replace one row at a time 1x3.
It would be helpful for me to avoid using a loop and be able to replace a subarray of dimension Nx3 where 100 > N > 1.
I may still have to use a loop to completely fill an array, but the loop could potentially run many less iterations.
This comes up for me because I read the FIFO buffer from a device and generate a chunk of data at once.
I then need to insert this data into a preallocated array (avoiding buildarray or similar due to the time critical nature of VI).
If I have a 1E5x3 array that I want to place into a 1E8x3 array, why waste time with a loop to do each row at a time (remembering that the loop is still much faster than buildarray)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
See comment from altenbach in the idea thread on how to implement this with the Replace Array Subset function with both row and column indices wired.