Страница 1 из 1

Configure the trend options

СообщениеДобавлено: Пн фев 13, 2017 6:42 pm
vaako1991
Здравствуйте. У меня следующий вопрос :
На мнемосхеме открываю исторический тренд ( исторический тренд осуществлен с помощью aaTrendControl) для какого нибудь аналогового датчика. С помощью синей вертикальной линии я смотрю значение графика в нужный момент времени (значение показывается верхнем левом углу так же синим цветом),но это значение округляется до целых. Чтобы показать значение до сотых я нажимаю на "Configure the trend options" , далее перехожу во вкладку "Miscelaneous" и в настройке "Tag defaults" в выпадающей вкладке "Decimal places" выбираю значение 2. Значение показывается до сотых, но если перегрузить WindowViewer эта настройка слетает, и значения опять округляются до целых. Как сделать так чтобы эта настройка не слетала?

Re: Configure the trend options

СообщениеДобавлено: Пн фев 13, 2017 7:01 pm
Генератор зла
CurrentTagPrecision
The CurrentTagPrecision property is a read-write property that gets or sets the number of decimal places to show for the data value of the currently selected tag. This applies only to _ tags.
Syntax
aaHistClientTrend.CurrentTagPrecision = integer;
Result = aaHistClientTrend.CurrentTagPrecision;
Remarks
To set the tag to use the decimal format, use the DefaultTagFormat property.
The default value is 0.

DecimalPlaces
The DecimalPlaces property is a read-write property that gets or sets the number of decimal places to display for the data value of the currently selected tag. This property is applicable only to the _ tags.
Syntax
aaHistClientTrend.CurrentTrendItem.DecimalPlaces = integer;
Result = aaHistClientTrend.CurrentTrendItem.DecimalPlaces;
Remarks
The default value is 0.

DefaultTagPrecision
The DefaultTagPrecision property is read-write property that gets or sets the number of decimal places of the trend item for presentation to the client.
Syntax
aaHistClientTrend.DefaultTagPrecision = integer;
Result = aaHistClientTrend.DefaultTagPrecision;
Remarks
Precision changes are not applied to trend items already in the chart at the time the precision change is made.
The default value is 0.