Applies To:
  • CitectSCADA 5.xx
  • CitectHMI 5.xx

Summary:
I have Trend that I am using and I want to be able to stretch the number of pixels used per sample, I cannot find any Cicode Functions to do this with, is there an alternate method? 

Solution:
This can simply be achieved by opening an existing Trend Template and modifying it. It is strongly advised that you save the modified Trend Template under a different logical name of your choice, then edit this changed file.

Once you open the graphics page for editing, you simply double click on the trend pen section which will bring up the "Trend Properties" window. In here make sure you select the Appearance tab from the top menu tabs and the General tab from the Right hand side menu tabs. At the bottom of the window you will see a section called Samples. This is where you can make the changes to your pixel size.

Having a large number of samples and an increase in Pixels Per Sample, will make your Trend Cursor disappear during runtime. To overcome that, try and bring the number of samples down to match Pixels per sample. An easy way of determining this is by looking at the width of your trends. On a 1024x768 resolution template, the area of a trend is approximately 877 pixels wide. So if you were to set Pixels per Sample to 20, then it would be best to set Number of samples as 43 (877/20 - i.e. total pixels wide / number of pixels).

 

Keywords:
Trend, Pixels, Width, Sample, Size, Number of Samples, Pixels Per Sample, Trend Properties, Missing Trend Cursor, Appearance  

Attachments