11-02-2012 05:07 AM
Hi,
I have a large array (300+ elements) and want it to be filled with all -1 at the start and not with 0.
A couple of (bad) ideas of mine:
- using an expression "array[0] = -1, array[1] = -1, ..." (a lot of typing work)
- using a for loop with an expression "array[Locals.k] = -1" (very slow)
- getting the array from "somewhere else" like e.g. a LabVIEW VI (cumbersome)
Is there some expression syntax I can use?
11-06-2012 08:12 AM
You can use SetElements(Locals.d,-1) where d is the array.