DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Improve speed of VB script execution.

Hi

I would like to speed up the execution of the scripts. Compared to other software, the Diadem scripts are relatively slow. Of course, the code is a starting point.However, I am more interested in whether it is possible to develop and test the VB scripts in Diadem, but compile them later in an exe.file and possibly make them faster because the commands no longer have to go through the Diadem compiler.


Thanks a lot.
/Ralf

 

0 Kudos
Message 1 of 3
(1,587 Views)

What are you attempting to do in DIAdem via VBScript that you feel executes too slow? If you are working with the Data Portal, View panel, and Report panel, than by changing a few DIAdem global variables, it is possible to dramatically improve script execution. In some cases, working with numeric channels rather than waveform can also improve the speed of Analysis calculations / channel manipulations. 

 

When it comes to reading/writing files, you want to be sure you are reading/writing TDM/TDMS files, and not using a DataPlugin.  Many times I am able to speed up getting information from TDM/TDMS files by accessing the file contents through the DataFinder index (via Navigator object), rather than reading them into memory (Data Portal).  

 

I know of several tricks, but I need to know more about what you are trying to do.  

0 Kudos
Message 2 of 3
(1,536 Views)

In addition to markwkiehls good commends you can also profile you VBS code  

This shows you which part of you script takes the most time. 

P1.png

Greetings

Walter

0 Kudos
Message 3 of 3
(1,529 Views)