09-22-2014 03:44 PM
hello,
i am able to do the percent error of the collumn 0, array..
how would i write the code for column 1, 2, along with column n???
Solved! Go to Solution.
09-22-2014 04:00 PM
Use another For Loop and use auto-indexing.
You may need to transpose your array first depending on whether auto-indexing picks out rows first or columns first.
09-22-2014 04:23 PM
i think i almost got it?
i just need to figure out the percent error array and arrange it right.
thank you!
09-22-2014 04:26 PM - edited 09-22-2014 04:38 PM
You really need to learn about arrays and scalars. You use 1D arrays as scalars and 2D arrays as 1D arrays. Two transpose operations in a row is a NOP, why do it?
Don't have the same code in all cases of a case structure. Everything that is the same belongs outside. Only a single number differs between the cases and that's the only thing that belongs inside it See image).
Don't bury terminals inside loops and other structures. They belong on the toplevel diagram background.
Here's a quick draft.
09-22-2014 04:36 PM
what i dont understand is..
and still dont understand is what why is it that when i dont wire to N...
I GET AN ERROR..
but every single example i have seen..its not wired?
09-22-2014 04:37 PM
You don't get an error if you are autoindexing. It will iterate until it runs out of elements.
09-22-2014 05:21 PM
can you explain what is autoindexing?
how do i set it to autoindexing?
09-22-2014 06:57 PM
Autoindexing is the default for FOR loop tunnels and your tunnels were not set to autoindexing.
This means you must have already changed them. To enable autoindexing, simply change them back (right-click...).
If you don't remember what you did, try some tutorials first.
09-23-2014 11:07 AM
ok. i think i got it. thanks