Support Board
Date/Time: Mon, 03 Feb 2025 10:51:24 +0000
Post From: SOLVED (stupid/distraction error..) : ACSIL error in the format..
[2019-11-07 16:10:02] |
GiovanniD - Posts: 41 |
#********************************************** error: no match for 'operator*' (operand types are 'float' and 'c_ArrayWrapper<float>') ema1[sc.Index] = alpha1*sc.BaseData[SC_LAST] + (1-alpha1)*ema1[sc.Index-1]; #********************************************** NB: below only the lines of code that cause the error SCSubgraphRef MEYERBUTTERWORTH = sc.Subgraph[0];//lento SCFloatArrayRef ema1 = sc.Subgraph[7].Arrays[0]; int EMALength1 = nn; float alpha1 = 2/(EMALength1+1); ema1[sc.Index] = alpha1*sc.BaseData[SC_LAST] + (1-alpha1)*ema1[sc.Index-1]; sc.Subgraph[0][sc.Index] = ema1[sc.Index]; |