private void AddQCsToTagsList() { if (tags.Count > 0) { logger.Warn($"qCModels should be cleared before adding new QCs. qCModels.Count = {tags.Count}"); return; } if (datapool.IsConnected == false) { logger.Warn("Nautilus Datapool is not running. Tags cannot be added."); return; } isUpdating = true; ramos.Recipe.Items.ForEach(q => { var tag = new DPGroupTagValue(datapoolGroupName, q.QcName, q.Setpoint); datapool.Create(datapoolGroupName, q.QcName, dpTypes.FLOAT); datapool.Write(datapoolGroupName, q.QcName, q.Setpoint); tags.Add(tag); }); // Add all recipe targets to the datapool. //isUpdating = false; updateDatapool = false; // datapool updated, do not do it again. Is updating will be reset in timerElapsed. }