I am attempting to run a scrip function in a expression binding. My python function accepts two arguments, both which need to be a list.
Example:
def check(tag1,tag2):
do something
return(some string)
tag1 are ints and tag2 being strings
Expression Binding Language:
runScript(“project.check”,0,[1,1],[‘string1’,‘string2’] )
//This don’t work is it possible to make list in expression language
//I know it possible in latest version of ignition but we are working in prior version.
Consider using my objectScript function (from Simulation Aids) instead of runScript. runScript() only passes extra expression arguments when the first (string) argument evaluates to a python function.
My objectScript() accepts any python expression as a string, and delivers expression arguments in a local variable. Which means your python expression can listify your arguments without relying on the stringification of your lists. Your attempt with runScript would become this: