11-15-2018 11:46 AM
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
Solved! Go to Solution.
11-16-2018 12:14 AM
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.