• Not Answered

DeltaV Live : Global array variable

Hello,

I would like to know if there is a way to create a global array variable in DeltaV Live.

We can create variables in the Layout file, which can then be accessed from other displays.

But did not find a way to create an array-type variable.

Regards,

Navin Singh

1 Reply

  • You cannot create an array as a layout level variable with the Variables interface. You can create arrays to be used within a script on a layout or display. Those can be declared using Typescript syntax, for example an array of strings could be created in the OnOpen script of a display:
    let array: (string)[] = []; // declare empty array
    You can then populate that array, manipulate the data as desired, and write the elements of that array to a display or layout level variable.
    Dsp.String1 = array[0];
    Dsp.String2 = array[1];
    etc..