09-08-2010 04:33 AM - edited 09-08-2010 04:37 AM
Hi
I need to insert an element into a particular column in a table with 100 column.
But when i give the index value into the insert array and connect it to a table , it is not happening.
Please help
09-08-2010 06:48 AM
From Insert Array "If the index input is larger than the array size, the function does not insert anything into the input array."
Your table isn't initialized to anything, thus has 0 size.
/Y
09-08-2010 07:31 AM
In addition to Yamaeda's comment:
1. You should really put a stop button to stop the While Loop. Do not rely on the "Abort Execution" button, as it is not intended to gracefully shut down (stop) an application (your vi) from running.
2. You mention that you have a table with 100 columns. I count 29 columns (0 to 28). Are you expecting the table to grow? Do you want to build the table during run-time or do you want to initialize the table to it's full dimension and then insert data? You can initialize the array at the beginning of the code or add an "initialize" button that would reset the table. Do you also know how many rows you will have or will that grow during run-time?
3. Since you are using a While Loop, it would be more appropriate to use shift registers than using Property Nodes to extract values.
Can you explain what you are trying to achieve and what is the expected behavior of your code? That would allow me to provide more accurate assistance.