jpo Posted October 31, 2022 Report Share Posted October 31, 2022 Looking for a example of UI with the main program able to open a floating pop up window which is used to displays a periodiaclly updated chart. All user interactions is done thru the main window and not the chart window. J- Quote Link to comment
ensegre Posted October 31, 2022 Report Share Posted October 31, 2022 I have several, but within bigger applications... Anyway, there are many ways of doing one. The quickest and dirty I can think of is to share the data between main and floating panel via a global variable, to poll periodically the value in the panel, and to trigger a redraw of the chart only when a change between old and current value is detected. Of course this is doesn't scale up very well; for more sophistication you could set up notifiers between the two, transmit only the portion of data which changed. There are several inter-VI communication options, the best one depends on the use case. To make the panel floating and open it pressing a button on from main, etc, VI server FP properties/methods. Quote Link to comment
drjdpowell Posted November 1, 2022 Report Share Posted November 1, 2022 If you just need to display a chart in a window, it's easy to do with a simple subVI. The subVI contains nothing but a chart control attached to a subVI terminal. Call the subVI periodically with new data. Open its Front Panel with a VI Server call. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.