06-20-2009 03:45 PM
Hi, I'm a bit of a n00b.
Say I have 10 arrays of data and I want to plot these 10 arrays on 10 separate graphs. I don't want to clutter up my screen so I made a tab control, with one tab for the plot of each data array. But I don't want to plot them all at once, I want each plot to have its own "plot data" button so that the user can customize the plot options for each one.
I could do this with 10 separate pieces of code with 10 different buttons, but as I said I hate clutter, so I'd prefer to put this all into a case-structure whereby according to whichever tab the user has currently selected, when they press the one "plot data" button, labview gets the appropriate data and plots it accordingly.
Now I know the tabs are indexed and I can refer at any time to any given page using Property Node --> Pages, but I need a way to grab the index of the page currently selected. Once I have that, I know how to do the rest.
Is this possible?
Thanks,
Jessie
Solved! Go to Solution.
06-20-2009 04:17 PM
If you want the currently selected tab, just read the terminal value. Don't use the property node or a local value when you don't have to.
Here's one possible simple solution. I used a constant for the data since I did not know how you were acquiring it. Modity as needed.
06-20-2009 04:26 PM
06-20-2009 04:38 PM
It's exactly what it sounds like, there is a terminal on the block diagram that represents the tab. On the front panel, right click and select 'Find Terminal'.
Here's 8.0 code.
06-20-2009 04:41 PM