unable to create variable via zenon addin
i attempt to create a variable via zenon addin using code below
using target framework .net 4.8
context.Workspace.ActiveProject.VariableCollection.Create("var_1", context.Workspace.ActiveProject.DriverCollection["Intern"], ChannelType.SystemDriverVariable, context.Workspace.ActiveProject.DataTypeCollection["STRING"]);