void ThisProject_Active()
{
myOnlineContainerSKID = this.OnlineVariables().CreateOnlineVariables("myOnlineVariablesSKID");
//procedure to read tags from a CSV file
string station = "2019101";
ReadVariablesfromFileToOnlineContainer(station);
mOCV = this.OnlineVariables().CreateOnlineVariables("testbool");
if (mOCV == null)
mOCV = this.OnlineVariables().CreateOnlineVariables("testbool");
mOCV.Add("testbool");
}
void mOCV_VariableChange(zenOn.IVariable obVar)
{
try
{
zenOn.IVariable tt = this.Variables().Item("testbool");
if (Convert.ToBoolean(tt.get_Value(0)))
{
myOnlineContainerSKID.Define();
tt.set_Value(0, false);
//Procedure to add the tags to array of IVariable and get each value
ReadVariablesfromFile(S_aname);
}
}
catch (Exception ex)
{
MessageBox.Show("No se pudo " + ex.Message);
throw;
}
throw new NotImplementedException();
}