DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

StatBlockCalc not writing properties - Diadem 2015

Solved!
Go to solution

Hi,

The script below works in Diadem 2012 and writes the arithmetric mean to properties in the channel.

With diadem 2015, it does not write the properties.  It gives no error message.

If I select all the channel data ("1-"), its writes the properties.  If I set StatResChn = false, it works also.  But I don't really want to have the results in a separate channel.  Obviously, I am missing some thing...any help?

Thanks!

Thomas

dim start_Idx

dim end_Idx

StatSel(6) = "Yes" ' Arith. mean

StatResChn = true

start_Idx = 607

end_Idx = 1207

call StatBlockCalc("channel", start_Idx & "-" & end_Idx,8)

 

 

 

 

0 Kudos
Message 1 of 3
(2,970 Views)
Solution
Accepted by topic author mrme

Hi,

 

It seems that you found bug in DIAdem 2015. Unfortunately, I don't have work-around, except those you already mentioned. This behavior is also in DIAdem 2017. We plan to fix it for the next 2017 SP1.

Referring to DIAdem 2017 I can say that we reworked the statistic functions to have an easier handling and a better performance (the function calls of DIAdem 2015 still exist). In DIAdem 2017, your script can be defined as follows:

 

 

dim start_Idx, end_Idx
start_Idx = 607
end_Idx = 1207

StatsSelection = eStatsArithmeticMean
StatsUsePopulationFormula= 0
StatsResultChn   = 0
Set ChnResult = ChnStatisticsChannelCalc("[2]/Schall_1", StatsSelection, start_Idx, end_Idx)

Greetings

 

Walter

0 Kudos
Message 2 of 3
(2,933 Views)

Hi Walter,

 

Thanks for the explanation.

 

Regards

Thomas

 

 

 

0 Kudos
Message 3 of 3
(2,909 Views)