07-26-2010 06:55 AM
Hello,
I would like to use data entered in a table to automate air flow volume/sequence to a test chamber. As shown in the table control screen grab, the first column specifies the number of iterations through table elements during a test run and second column data specifies duration for each row sequence. Entries in the other columns are specific to different flow valves and specify set point values required to meter flow.
I guess my question is how can I index/assign each column in the table such that data to operate respective valves are obtained at subsequent iterations whilst simultaneously acquiring data from other components sequentially? Whilst I acknowledge that the solution may be quite simple, I have trawled through various examples and posts on tables and arrays without hitting on a solution. The attached .vi allows me to do some part of the test run.
Best regards,
Callisto
Solved! Go to Solution.
07-27-2010 03:38 AM
Hi Callisto,
If I understand your question correctly then the solution is in fact fairly straightforward. The important point to bear in min is the fact that the Table control can effectively be dealt with as an array of string. You can then use all of the traditional array manipulation tools and techniques to manipulate your data as you want. For example, use the Index Array function to extract specific columns and then if you want to pass individual elements within a column into a loop, wire the array up to the loop and ensure that Indexing is enabled. If you then want to use these data elements to drive your test application, you may want to convert some of the resulting string into more useful numeric's.
All of these concepts are demonstrated in the attached VI. I hope this helps, but let me know if you have any further questions.
Best Regards,
Christian Hartshorne
NIUK
07-27-2010 04:41 AM
Hi Christian,
Thank you very much for your response, I really appreciate it. I knew the solution would be simple but just didn’t see it until your example showed me where I got things muddled up.
Best regards,
Callisto