DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

diadem graph display multiple pages with one TDR

Solved!
Go to solution

I am working on an application to replace our current report generation program with Diadem.  Our testing capability allows us to perform the same test with different boundary conditions.  Each test receives its own section in the final report.  Since the test type is the same, the report pages are the same exact format and layout and channel names.  When I process the incomming data I name the groups according to the report section and report page they are applied to (Section = YR, Page = Y16, Group Name = YR_Y16).  All sections have a set list of pages that are created.  When there are multiple tests then the corresponding sections are named by adding a 1, 2, 3... etc to the end of the Section (YR1, YR2, ...) resulting in Group Names like YR1_Y16, YR2_Y16, etc.  The channels for a particular page (Y16) have identical names, and the group name (YR_Y16, YR1_Y16, YR2_Y16) is what makes them unique.   

 

My question is about how to best utilize the TDR files to create the report pages.  I know I will need to create a separate TDR for each type of page (Y15, Y16) because the content and information varies by page, but for any page Y16 the channel names are the same with the group name being unique.  Is there a way to put the TDR call in a loop that modifies the group name when called so that I only have one TDR for page type Y16 to maintain.  If this is possible it keeps the number of TDR's to maintian to 213.  If it is not possible then I will have 1533 TDR files to maintain because we allow up to 9 of each test type.

 

Attached is an example report page (Y16) TDR file, and a TDM file that has a data set for page Y16 in sections YR, YR1, YR2, etc.

 

I know this may be confusing so please don't hesitate to ask questions.  I am using Diadem 11.0 SP1.

 

Thanks.

 

Wayne

 

 

 

 

0 Kudos
Message 1 of 3
(4,245 Views)
Solution
Accepted by topic author waynecj7

Hi Wayne,

 

Yes, it is possible to re-use a set of TDRs by appending each one and then programmatically reconfiguring it to point to a specific Group in the Data Portal.  I'm attaching below the architecture I always use to do this.  In that case there is exactly one sheet per TDR, but you could add a loop through each of the sheets of the TDR file last appended to generalize this approach to multi-page TDR files.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 3
(4,218 Views)

Brad,

 

Thanks for the files.  It will take me a little while to figure out everything, but I believe you have put me on the right track.

 

Wayne

0 Kudos
Message 3 of 3
(4,188 Views)