Programmatically Add a Page to a Tab Control During VI Execution

Updated Oct 6, 2018

Reported In

Software

  • LabVIEW

Issue Details

I need to dynamically displace newly acquired data on a new Tab Control page. How should I program the block diagram, so that the Tab Control on the front panel will automatically create a new page, and display the newly acquired data?

Solution

Unfortunately, you cannot get this done under current LabVIEW versions (2018 and older).
Because the pages in a Tab Control is an enum type by nature, and an enum cannot be programmatically edited during a VI's execution. It can only be edited manually when you are designing the block diagram, and each page's existence is fixed after that. 

Additional Information

There are two possible methods to make it look like a new Tab Control page is programmatically created during VI's execution.
  • By modifying the visibility of specific pages at run-time. You can implement this method by using Property Nodes, please refer to the following image in detail.

WAS THIS ARTICLE HELPFUL?

Not Helpful