Skip to Content
0
Jul 16, 2020 at 03:22 PM

SCPI Dynamic Access to Global variable

212 Views Last edit Jul 16, 2020 at 03:22 PM 2 rev

Hello,

I just created global variables in my SCPI with myVariablee_{id} = {correspondingId} there is no problem on WRITE variable cause first in create the variable name with a content-modifier with expression.

But I want to read dynamicly that global variable.

so fist I created a variable "myVariableName" type expression and value "myVariable_"${property.id} then I do on a second content modifier

CREATE myVariableCorrespondingId GlobalVariable ${property.myVariableName} but doesn't work

Can we access to global variable by a groovy script or an other solution?