07-28-2016 05:36 AM
07-28-2016 05:41 AM
okay so I did this, still didn't work. Only when the index was 0 did were values updated.
07-28-2016 05:44 AM - edited 07-28-2016 05:47 AM
Hi stephen,
repeat after me: "I can only replace existing array elements!" 😄
You initialize the "task info array" with just one (1) element. This first (and only) element will get index zero (0).
And you still wonder why you only can change parameters in this single array element? Really? After all the explanations before?
07-28-2016 05:53 AM
I thought the initialise dimension input was for 1D, 2D, 3D etc. not the amount of elements I want to initalise. Anyway that half works, as it reinitialises everytime the VI is called but I'll put that code higher up and hopefully it will work.
Thanks
07-28-2016 06:09 AM
Hi stephen,
I thought the initialise dimension input was for 1D, 2D, 3D etc. not the amount of elements I want to initalise.
When you are unsure about how the function works you should read the LabVIEW help for that function! 😄
as it reinitialises everytime the VI is called but I'll put that code higher up and hopefully it will work.
Yes, as the initialization is part of this VI. Usually you only initialize once at program start…
07-29-2016 08:51 AM
When you are unsure about how the function works you should read the LabVIEW help for that function!
I would normally check if I was unsure but to be honest its a rather misleading terminal name. Should be called number of elements or size of dimension.
thanks for your help anyway 🙂
07-29-2016 09:15 AM - edited 07-29-2016 09:17 AM
@Stephen1995 wrote:I would normally check if I was unsure but to be honest its a rather misleading terminal name. Should be called number of elements or size of dimension.
According to the help, the terminals is called (dimension size ...), so the focus is on the "size" in each dimension, i.e. exactly what you are suggesting. No action needed. ;).
The number of dimensions is given by the number of size inputs you expose by resizing the node. So for a 2D array you would expose two size terminals. Wiring numbers will now determine the size in each dimension and the product of the sizes will determine the total number of elements.
07-29-2016 09:23 AM
Misleading never the less. Maybe once you know the nuance its obvious but until then it isn't as clear as it could be.
07-29-2016 09:25 AM
Pretty clear to me. If it was what you were thinking, then it would be called "Number of dimensions".
07-29-2016 09:30 AM
Going by your profile you have 10 years experience. I would hope it is clear by now. For new user however things aren't as simple, as you should know if you think back a little.