LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Only displaying active graphs

Ok, here's the situation.  I have 32 channels, not all active unless checked and I want to have them all graphed, with different tabs.  But I only want to display the active graphs.  I can check which channels are active from the front panel, and would like to ONLY have those graphs be available so I don't have to tab through 32 graphs to find the active channels.  Is this possible?  Or, could I just have the tabs of the active graphs highlighted so I can quickly see which ones are active?  Thanks to all those more proficient in labview then I.
0 Kudos
Message 1 of 2
(3,124 Views)

Hello Dr. Octagon,

I've noticed that your icon does not show up.  It is just a red X on a white sheet, the typical image not found icon.  It looks like you have it pointing to "http://files.ofmirroreye.net/images/2006/anticon.jpg" which most people probably cannot access.  If you really want to use your icon, post a message in this thread with the .jpg file as an attachment.  This will put the file on the NI forums which everyone can access.  Then have your profile point to the attachment in the message that you posted.

As for your question.  Do you have 32 tabs with one graph on each?  Do you have some array or cluster that keeps track of what channels are active and which aren't?  Perhaps a screenshot of your front panel (preferably in .png) or the actual .vi itself would help.  I think what you would need to do is use property nodes.  Create a property node for your tab control called Pages and set it for read.  This gives an array of references for each page in the tab control.  Use a For loop to iterate through the references and feed them into a property node for the Page called PageVis  (page visible).  Write a true or false to that node based on whether you want it to show or not.  Or use the property node called Page Enabled where you write a constant to either Enable, Disable, or Disable and Grey.  You would just need to devise the code to correlate your array of "Active Channels" to the page reference array.  The property node for PageLabel might help to determine which page the reference refers to.

Attached is an image to show the property nodes I referred to.  You'll have to figure out the logic.

Message Edited by Ravens Fan on 10-19-2007 10:33 PM

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