05-02-2013 07:45 PM - edited 05-02-2013 07:46 PM
Hi all,
I now want to read controls from any running subvi('s) and save the data into a single file. I'm using subpanel to display the running subvi and use control reference to collect all the string-typed control and save the data to a single file. While that's cheating and ugly, because the host vi usually doesn't know what controls will be there in the subvi('s).
I'm wondering if there is a way to dynamically read controls from any running subvi and display all the avalible controls depends on what subvi is running, and let the user decide which data are to be saved. I attached the vi I have now, please give any comment and I thank you very much in advanced.
-chen
05-03-2013 02:11 AM
Hi thitchen,
without looking at your code:
with the VI reference you can get references of all controls on the VI's frontpanel. With that reference array you can collect all string controls in that subVI. The you should display a list to the user with the names/contents of those string controls so she/he may select which ones to save...
05-03-2013 02:33 AM
05-03-2013 02:34 AM
05-03-2013 02:43 AM
05-03-2013 03:20 AM
05-03-2013 10:50 AM
05-03-2013 11:22 AM
maybe his example will help you...
05-03-2013 12:25 PM
Hi apok,
Thank you for the example, not sure whether we are talking about the same problem. Anyway, I'll go with control reference to read out the data from the running subvi's. Thank you for your comment.
Best,
-chen