DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

First run of DataBlDel takes long time

Solved!
Go to solution

Hi,

I have noticed that ehe execution of DataBlDel takes a pretty long time when executed via SCRIPT (5.3 s). When I call DataBlDel a second time with the completely same parameters it is much faster and takes less than 0.1 s.

 

When I start the recorder and crop the channels in the VIEW panel it is also pretty fast, but executing the recorded command in SCRIPT leads to an error message, translated: No valid source or target channels were specified.

 

Dim StartTime
StartTime = Timer()
Call DataBlDel("1-352", 1 , 300, True)
Call Msgbox(Str(Timer() - StartTime,"d.ddd") & " s elapsed.")

 

The TDMS file has 352 channels of different length in 3 channel groups. DIAdem 2017 SP1 x64 running on Windows 10 Enterprise x64.

 

I would be very happy if someone could give me a hint what I do wrong.

 

Thomas

0 Kudos
Message 1 of 2
(2,924 Views)
Solution
Accepted by topic author gefluegelschere_

 

Option Explicit

call DataBlDel(data.GetChannels("*"), 1 , 300, True)

use

data.GetChannels("*")

The speed differences between first and second timecontains the loading time of your file.

This means the data is loaded into DIAdem data portal in the moment that you modify them.
Next time they are already open.

 

You can change the loading behavior by modify the DIAdem settings.

Capture2.PNG

Message 2 of 2
(2,904 Views)