DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatische Erstellung einer tabelle anhand einer unbekannte Anzahl an Messreihen

Wie kann ich eine 2D-Tabelle automatisch erstellen?

Hat jemand einen Code dafür?

Danke schön.

Gruss

0 Kudos
Message 1 of 5
(4,533 Views)

Hi Ghilghi,

 

You can configure the DIAdem table in REPORT to automatically show as many rows as there are values in the channels referenced in that table.  Of course, if your channels have thousands of values this can be impractical.

 

What is the specific difficulty?

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 5
(4,506 Views)

Hi,

eine dynamische Tabelle möchte ich durch das Programm erstellen lassen. Und die Anzahl von Werten könnte sehr groß sein.

Ein Beispielcode für die dynamische 2D-Tabelle mit 4 Spalte hätte ich gern.

Gruss

0 Kudos
Message 3 of 5
(4,494 Views)

 

The specific Difficulties ist how to modify the code below, so that i could have

a Dynamic 2D-Tabel.

 

Dim oCtrlTab, o2DTable, o2DTableColumnChannel
Set oCtrlTab = Report.ActiveSheet.Objects.Add(eReportObject2DTable,"My2DTable")

Set o2DTable = oCtrlTab

Set o2DTableColumnChannel = o2DTable.Columns.Item(1)
o2DTableColumnChannel.Channel.Reference = "[1]/Kraft_Zeit"

Set o2DTableColumnChannel = o2DTable.Columns.Item(2)
o2DTableColumnChannel.Channel.Reference = "[1]/Kraft"

Set o2DTableColumnChannel = o2DTable.Columns.Item(3)
o2DTableColumnChannel.Channel.Reference = "[3]/Weg_Zeit"

Set o2DTableColumnChannel = o2DTable.Columns.Item(4)
o2DTableColumnChannel.Channel.Reference = "[3]/Weg"
Call Report.Refresh

 

 

 

The Daten in Datenportal have been attached.

 

Please help me!

Bye!

0 Kudos
Message 4 of 5
(4,479 Views)

Hi Ghilghi,

 

You need to also post the *.TDX file for that *.TDM file.  The *.TDX file is the one with all the data values in it...

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 5 of 5
(4,458 Views)