AdvancedHMI Software

General Category => Open Discussion => Topic started by: fermin6032 on September 15, 2020, 06:47:35 PM

Title: assign to local variable c # the value obtained from BasicLabel
Post by: fermin6032 on September 15, 2020, 06:47:35 PM
I need help .. I am making an application in c # with the help of AdvanceHMI, I am obtaining the value of my OPC with the help of AdvanceHMI assigning it to a BasicLabel label and I want to assign that value to a variable in c #.

I show the code I have.

basicLabel2.PLCAddressValue = "Channel1.Aire.Temperatura";
Title: Re: assign to local variable c # the value obtained from BasicLabel
Post by: Godra on September 15, 2020, 09:17:04 PM
Then you can try:

var value = basicLabel2.Value;
Title: Re: assign to local variable c # the value obtained from BasicLabel
Post by: fermin6032 on September 28, 2020, 06:05:25 PM
thank you very much if it worked ... you can already get the value of the tag.

thanks