DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Wie kann ich mit dem Script ein vorhandenes Signal so bearbeiten, dass ich nur einen Bereich innerhalb bestimmter Indizes anzeigen kann?

Solved!
Go to solution

Hallo zusammen,

 

ich habe ein Drehmoment-Signal mit 21000 Werten im Datenportal vorliegen.

Bei diesem erfasse ich den minimalen Wert ( bei Index 1000) und den maximalen Werte (bei Index 20000).

 

Nun möchte ich das Signal nur noch zwischen diesen Indizes darstellen, d.h. das Signal kürzt sich auf 19000 Werten oder einfach ein neues Signal mit den restlichen Werten erzeugen.

 

Kann mir einer helfen, wie ich dieses Problem lösen kann?

Mir fehlen die Befehle...

 

Viele Grüße

 

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

Hallo Bangiz

 

Versuche mal den Befehl DataBlCopy: Eine Beschreibung findest du hier:

http://zone.ni.com/reference/de-XX/help/370858K-0113/comoff/datablcopy/

 

Mit dem Befehl kannst du einen Bereich aus einem Kanal in einen anderen kopieren.

 

Winfried

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

Hi Bangiz,

 

If you know the desired index range before loading the signal, you can choose to load only the data of interest with the DataFileLoadRed() command.  In DIAdem 2014 this is also an interactive option by right-clicking on the file and selecting the context menu "Data Reduction..."  For earlier DIAdem versions you'll need to run a VBScript like this:

 

SectionBegin = 1
SectionEnd = 10
DlgTitle = "Select the file to load with index windowing"
Call FileNameGet("Any", "FileRead", AutoActPath, FileExts, "", True, DlgTitle)
IF DlgState = "IDCancel" THEN Call AutoQuit
Call DataDelAll
Call DataFileLoad(FileDlgName, "", "Register")
Call DataFileLoadRed(FileDlgName, "", "", "IntervalWidth", 1, 1, SectionBegin, SectionEnd) 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

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