DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger SUD event based on Report tab selection

Is there a way monitor if the user selects a given tab in the Report section of DIAdem such that a SUD can respond accordingly - like maybe enable different sets of controls that control objects on the chosen tab?
 
George
0 Kudos
Message 1 of 5
(3,433 Views)

Hi George,

You're going to have to help me to understand what "tab" in REPORT you're referring to.  Do you mean the new tabbed configuration dialogs in DIAdem 10?  Do you mean the tabs along the left side of DIAdem which determine which panel (REPORT, VIEW, ...) you're in?  Do you mean which sheet is currently being displayed in REPORT (the tab along the bottom, like an Excel sheet?)

Please expand upon what you'd like to do here.

The answer to that last possibility is yes,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 5
(3,423 Views)
Sorry, I didn't know there were so many tabs. I meant which sheet is currently being displayed in REPORT (like an Excel sheet). I was thinking about having an interactive SUD where the SUD would enable/disable buttons based on which tab in the REPORT was displayed. For instance when one graph is displayed on a given tab I want the user to be able to use Next and Previous buttons to scroll though the loaded data sets and graph the data. When a different tab is displayed I might want to activate some different buttons in the SUD to perform functions on the data presented there. I don't know everything I want to do yet with the SUD, just trying to add to my book of tricks.
 
George
0 Kudos
Message 3 of 5
(3,420 Views)

Hi George,

The command you'll want to call from the SUDialog to determine what REPORT sheet (tab) is currently open is called "GraphSheetInfos()".  It fills the following DIAdem variables with the current status of REPORT sheet use:

GraphSheetCount
GraphSheetCurrNo
GraphSheetName

So you can call the following lines of code to determine the open sheet:

Call GraphSheetInfos()
MsgBox GraphSheetName

Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 5
(3,401 Views)
That should do it. Thanks.
0 Kudos
Message 5 of 5
(3,397 Views)