DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

overflow/ überlauf

 That's very kind of you. I have tried your method. But only a small error in last sentence:Object does not support this property or method. I use diadem 11.0 germany system. I explain more about my excel export problem. For exenpel, after I  run one TDM in script, then i have the max,min,average value in channel, i can save the data with .xls. I run another TDM data, have another excel. now i want only one excel with these values of different TDMs. Could i use some functions in script to achieve?

Dim K

For K = 1to23

StatSel (K) = "No"

Next

StatSel(2) = "Yes"

StatSel(6) = "Yes"

StatSel(4) = "Yes"

StatSel(5) = "Yes"

StatClipCopy= 0

StatClipValue= 0

StatFormat= ""

StatResChn= 0

StatResChnNames= 0

Call StatBlockCalc("Channel","4-","[10]/tCool_eng_out")

LogFileWrite("Aritmetic mean value: "&Data.Root.ChannelGroups(10).Channels("tCool_eng_out").Property("ResultStatArithMean").Value)

0 Kudos
Message 11 of 15
(1,847 Views)

Hi andreas,

 

I think we'd make better progress if you posted your questions in German.  How does one "run a TDM"?  It sounds like you need to just load as many data files as you need and run the calculations as many times as you loaded data files, then export all the results to a TDM file or a CSV file, in order to load that into one Excel file.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 12 of 15
(1,837 Views)

Hallo Brad,

 

Entschudigung für mein schlech Englisch. Ich erkläre auf deutsch. Ich habe jetzt 100 TDM daten. Jede enthält 12 Kanäle. Diese sind informationen von fahrzeit,temperatur und Geschwindigkeit. Ich habe in Script so programmiert, dass der max,min, mittelwert berechnet werden. Aber ich möchte eine Zusammenfasung erstellen, um diese werten zu vergleichen. Bis so weit kann ich nur jedesmal eine TDM datei einladen,dann in Script ausführen, in Navigator mit .xls speichern und eine Excel datei bekommen. Ist es möglich,dass ich die werten von so vielen TDM daten zusammen in Excel exportieren kann? Aber nicht mit Klebensfunktion. Vielen Dank!

0 Kudos
Message 13 of 15
(1,825 Views)

Hallo andreas,

 

Ich warte also auf die TDM/TDX Dateien, die Sie mir per email schicken werden.  Dann werde ich ein VBScript erstellen, welches jede TDM Datei laedt und fuer alle 3 ihrer Kanaele, die Min/Max/Mittel-werte von Zeile 720 bis zum Kanalende rechnet.  Das VBScript wird fuer jeden der 3 Kanaelen in jeder TDM Datei 4 Resultat-Kanaele erstellen: "DateiName", "Minimum", "Maximum", "Mittelwert", wo die statistischen Werte jeder TDM Datei jeweils in einer Zeile dieser 4 Kanaelen liegen.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 14 of 15
(1,818 Views)

Hi andreas,

 

Wie wrid das VBScript wissen, welche TDM Dateien zu laden?  Werden sie alle in dem selben Verzeichnis sein?  Wie waere es mit einem Dialog, wodurch man mehrere TDM Dateien selektieren koennte?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 15 of 15
(1,817 Views)