If you are designing a trend with scripting or drag/drop methods to assign pens, you need a way to clear the chart. This is not a trivial task as you need to disconnect, clear memory and then remove elements from the trend. Here is code to correctly clear out a trend chart: { int areaCount, i, j; dyn_string curves; getValue("TREND1", "numTrendAreas", areaCount); for(i=0; i