In what order are the studies being executed?

Dennis

Member
Joined
Oct 30, 2023
Posts
14
Likes
6
It is currently unclear to me, in which order MotiveWave executes studies that I add to a plot.
It's not running them by alphabetical order or by the order I added them to my plot.

Does anyone know what the technical insights are and how I can control the execution order of studies?

I can't find anything in the MotiveWave SDK Javadoc.
 

igor.s

Well-known member
Joined
May 22, 2019
Posts
289
Likes
153
I would assume there are running in parallel, Java threads.

cheers.
 

Spin

Well-known member
Joined
May 22, 2019
Posts
484
Likes
194
It is currently unclear to me, in which order MotiveWave executes studies that I add to a plot.
It's not running them by alphabetical order or by the order I added them to my plot.

Does anyone know what the technical insights are and how I can control the execution order of studies?

I can't find anything in the MotiveWave SDK Javadoc.
I answered with a suggestion that might shed light on this here ;)
 

Dennis

Member
Joined
Oct 30, 2023
Posts
14
Likes
6
I would assume there are running in parallel, Java threads.

cheers.
Sadly not. They are using the same Thread and are being executed one-by-one:

e.g.
Study A Precalculate
Study A Calculate
Study A Calculate
Study A Postcalculate
Study B Precalculate
Study B Calculate
Study B Calculate
Study B Postcalculate
 

Dennis

Member
Joined
Oct 30, 2023
Posts
14
Likes
6
I found out in which order MotiveWave executes the studies :)
They are being executed plot after plot (from top to bottom) and inside of each plot the studies are being executed from left to right.
Nothing is running in parallel/multithreaded (at least on my machine with my configuration, I didn‘t find any setting to change that) - they are being executed one by one in a synchronous matter and one study has to be completely finished until the next one can start.
 

Spin

Well-known member
Joined
May 22, 2019
Posts
484
Likes
194
Aha !!! Great research ! (y)
Care to explain how you came to this conclusion, @Dennis ?
Did you create a Study that sub-created 2 additional plots and wrote to debug in all three places or so ?

That will certainly offer us coders extra options in the future !!

Thanks a lot !😆
 

Dennis

Member
Joined
Oct 30, 2023
Posts
14
Likes
6
I added info-output-messages to the preCalculate method of each study and did a lot of try and error 😅
 

Spin

Well-known member
Joined
May 22, 2019
Posts
484
Likes
194
Ha ! Another excellent find !!
Glad to have you(r expertise) on this forum !

(y)(y)
 
Top