10-11-2012 06:58 AM
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)
10-11-2012 03:29 PM
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
10-12-2012 01:47 AM
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!
10-12-2012 01:46 PM
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
10-12-2012 01:50 PM
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