Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Syntax Reps parameter for multi-dimension array with DataTable Average function


JamesMc Jan 31, 2019 11:41 AM

Hello, I have a multidimensional array defined as follows:

Public Honeywell(20,4) As Float

 What is the correct syntax for the Reps parameter in the Average function that will not cause a Variable out of Bounds error?

DataTable(FiveMin,True,-1)
    DataInterval(0,5,Min,10)

    Average(40,Honeywell(),FP2,(Honeywell() = NAN OR Honeywell() = 0))
    StdDev(40,Honeywell(),FP2,(Honeywell() = NAN OR Honeywell() = 0))
EndTable

I have tried using the value of 20, but only half of the 80 values in Honeywell(20,4) are stored.  Presently 40 is working, however I am receiving Variable out of Bounds errors.

Log in or register to post/reply in the forum.