Hi,
I would like to add custom parameters to the easy chart tagpaths via scripting.
chart = event.source.parent.getComponent('Easy Chart')
process = event.source.parent.Process
machine = event.source.parent.MachineNo
newRow = [["Line Speed", "[baseHistorian/ignition-stl:default]base/"+process+"/"+process+"-"+machine+"/mes/actual/actual_machinespeed", "MinMax", "Default Axis",1, 0, "0,0,255","", 1, 1, 0, 1, 0, "MachineParameters",0,0,0,1,"",0],
["Diameter", "[baseHistorian/ignition-stl:default]base/"+process+"/"+process+"-"+machine+"/mes/actual/actual_diameter", "MinMax", "Default Axis",1, 0, "0,0,255","", 1, 1, 0, 1, 0, "MachineParameters",0,0,0,1,"",0]]
chart.tagPens = system.dataset.addRow(chart.tagPens, newRow)
But I am getting error in the tagpaths. Am i missing something?
how to concatenate the parameters with the tagpaths?
Thanks in advance