Array functions

Formula functions that operates on array.

Signature Description Null handling Alarm Time
(VNumber num * VNumberArray array): VNumberArray Result[x] = num * array[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
(VNumberArray array * VNumber num): VNumberArray Result[x] = array[x] * num Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
(VNumberArray array1 + VNumberArray array2): VNumberArray Result[x] = array1[x] + array2[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
(VNumberArray array1 - VNumberArray array2): VNumberArray Result[x] = array1[x] - array2[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayDiv(VNumber num, VNumberArray array): VNumberArray Result[x] = num / array[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayDiv(VNumberArray array, VNumber num): VNumberArray Result[x] = array[x] / num Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayDiv(VNumberArray array1, VNumberArray array2): VNumberArray Result[x] = array1[x] / array2[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayMult(VNumberArray array1, VNumberArray array2): VNumberArray Result[x] = array1[x] * array2[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayOf(VString... strArgs): VStringArray Constructs array from a series of string Result always exists. Contains null where no value is found Highest alarm of the arguments. Null is considered UNDEFINED (highest alarm). Latest valid time of the arguments or now if no valid time is found
arrayOf(VNumber... args): VNumberArray Constructs array from a series of numbers Result always exists. Contains NaN where no value is found Highest alarm of the arguments. Null is considered UNDEFINED (highest alarm). Latest valid time of the arguments or now if no time is found.
arrayPow(VNumber base, VNumberArray array): VNumberArray Result[x] = pow(base, array[x]) Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayPow(VNumberArray array, VNumber expon): VNumberArray Result[x] = pow(array[x], expon) Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arraySub(VNumber offset, VNumberArray array): VNumberArray Result[x] = offset - array[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arraySub(VNumberArray array, VNumber offset): VNumberArray Result[x] = array[x] - offset Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arraySum(VNumberArray array, VNumber offset): VNumberArray Result[x] = array[x] + offset Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arraySum(VNumber offset, VNumberArray array): VNumberArray Result[x] = offset + array[x] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
arrayWithBoundaries(VNumberArray dataArray, ListNumberProvider... boundaries): VNumberArray Returns an array with the given values and cell boundaries Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
caHistogram(VString channelName): VNumberArray Returns an array with boundary that corresponds to an EPICS v3 histogram record Null if one of the arguments is null or if channelName is not connected Alarm on the value Time of the value
dft(VNumberArray array1D): VTable (Experimental) DFT of the argument Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
elementAt(VStringArray array, VNumber index): VString Returns the element at the specified position in the string array. Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
elementAt(VNumberArray Array, VNumber index): VNumber Result = array[index] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
histogramOf(VNumberArray Array): VNumber Returns a histograms of the elements in the array. Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
rescale(VNumberArray array, VNumber factor, VNumber... offset): VNumberArray Rescale an array using the factor and offset Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found
subArray(VNumberArray array, VNumber fromIndex, VNumber toIndex): VNumberArray Result[] = [ array[fromIndex], ..., array[toIndex-1] ] Null if one of the arguments is null Highest alarm of the arguments Latest valid time of the arguments or now if no valid time is found