Releasing internal tags
Posted: Thu Sep 01, 2011 10:18 am
Hi Ron,
I have an issue with my application. I have created a function to populate internal tags with external tag information. The function then calls the popup that is mapped to the internal tags. The idea is I can then call this function throughout my application. I have multiple functions - one for each external tag set I have.
The functions works great - the first one I call. However all following times i call a different function (other than the first one i call on project start) the internal tags are still mapped to the first set of external tags. For example - with the above code if I call Get_H2O_Temp first then I can control the tags correctly in the controller. However when I call Get_CARB_IPRESS afterwards the internal tags are still linked to the H2O_TEMP_xxx.
I am sure the correct function is being called because there is a text box displaying the "Globals.Tags.Alarm_Name.Value" string and it is updating correctly.
Is there some property of the internal tags that only allow them to be set once? Or should I have some initialize type command on the popup window close event that would release the link to the external tag?
Thank you,
Kurtis
I have an issue with my application. I have created a function to populate internal tags with external tag information. The function then calls the popup that is mapped to the internal tags. The idea is I can then call this function throughout my application. I have multiple functions - one for each external tag set I have.
Code: Select all
public void Get_H2O_Temp()
{
Globals.Tags.Alarm_HiHi_Setpoint = Globals.Tags.H2O_TEMP_HHSP;
Globals.Tags.Alarm_Hi_Setpoint = Globals.Tags.H2O_TEMP_HSP;
Globals.Tags.Alarm_Low_Setpoint = Globals.Tags.H2O_TEMP_LSP;
Globals.Tags.Alarm_LowLow_Setpoint = Globals.Tags.H2O_TEMP_LLSP;
Globals.Tags.Alarm_HiHi_Debounce = Globals.Tags.H2O_TEMP_HHDB;
Globals.Tags.Alarm_Hi_Debounce = Globals.Tags.H2O_TEMP_HDB;
Globals.Tags.Alarm_Low_Debounce = Globals.Tags.H2O_TEMP_LDB;
Globals.Tags.Alarm_LowLow_Debounce = Globals.Tags.H2O_TEMP_LLDB;
Globals.Tags.Alarm_HiHi_SDEnable = Globals.Tags.H2O_TEMP_HHEN;
Globals.Tags.Alarm_LowLow_SDEnable = Globals.Tags.H2O_TEMP_LLEN;
Globals.Tags.Alarm_Name.Value = "H2O Temp";
Globals.Analog_Popup.Show();
}
public void Get_CARB_IPRESS()
{
Globals.Tags.Alarm_HiHi_Setpoint = Globals.Tags.CARB_IPRESS_HHSP;
Globals.Tags.Alarm_Hi_Setpoint = Globals.Tags.CARB_IPRESS_HSP;
Globals.Tags.Alarm_Low_Setpoint = Globals.Tags.CARB_IPRESS_LSP;
Globals.Tags.Alarm_LowLow_Setpoint = Globals.Tags.CARB_IPRESS_LLSP;
Globals.Tags.Alarm_HiHi_Debounce = Globals.Tags.CARB_IPRESS_HHDB;
Globals.Tags.Alarm_Hi_Debounce = Globals.Tags.CARB_IPRESS_HDB;
Globals.Tags.Alarm_Low_Debounce = Globals.Tags.CARB_IPRESS_LDB;
Globals.Tags.Alarm_LowLow_Debounce = Globals.Tags.CARB_IPRESS_LLDB;
Globals.Tags.Alarm_HiHi_SDEnable = Globals.Tags.CARB_IPRESS_HHEN;
Globals.Tags.Alarm_LowLow_SDEnable = Globals.Tags.CARB_IPRESS_LLEN;
Globals.Tags.Alarm_Name.Value = "Carb Input Press";
Globals.Analog_Popup.Show();
}
I am sure the correct function is being called because there is a text box displaying the "Globals.Tags.Alarm_Name.Value" string and it is updating correctly.
Is there some property of the internal tags that only allow them to be set once? Or should I have some initialize type command on the popup window close event that would release the link to the external tag?
Thank you,
Kurtis