LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using table data for control

Solved!
Go to solution

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.

 

19845i394D9AD802FFA2B4

 

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

 

0 Kudos
Message 1 of 3
(2,689 Views)
Solution
Accepted by topic author Callisto

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

0 Kudos
Message 2 of 3
(2,653 Views)

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

0 Kudos
Message 3 of 3
(2,643 Views)