
Originally Posted by
milosh
Thanks a lot.
But which method to use for creating limit value, and set text?
pseudo code:
IVariable var = prj.VariableCollection.Create(name, drv, ChannelType.SystemDriverVariable, tip);
if (var != null) // varijabla nije postojala i kreirana je uspešno
{
var.Identification = "identification text";
ILimitValueCollection limitCollection = var.LimitValueCollection;
// ??? how to add limit text
}
I found solution:
var.GetEditorLimitValue(1).Text = limitText; // limit 1
var.GetEditorLimitValue(1).IsInAlarmMessageList = true;
var.GetEditorLimitValue(1).IsToAcknowledge = true;