Flow animation with Polyline

Hello,

I need to develop animation of Flow with help of Plolyline object.

When I increase the line with Line style property is disabled.

Please support how to program X and Y vertices  for it.

For reference -- How do you represent flowing water in WinCC? (Entry ID: 88357559)

How to develop in Citect 2018???

Thanks,

Stolz Enterprises

Parents
  • Hi,
    You can create polyline by the plot functions.
    Create an array for each line. Draw them with the following functions.
    --------
    hPlot = PlotOpen(hAn, "Display", 1);
    PlotGrid(hPlot,360,0,0,px,py,nHgrid, 0, nVgrid,0,FrameWidth ,1,-1,0);

    PenCol = RED; //RED
    PlotXYLine(hPlot,0,PenCol,3,0,-1,0,nPoints, X ,0,MaxX, Y , 0,160,1);

    PenCol = BLUE; //BLUE
    PlotXYLine(hPlot,0,PenCol,2,0,-1,0,nPoints, XP ,0,MaxX, YP ,0,16,1);

    PenCol = GREEN; //GREEN
    PlotXYLine(hPlot,0,PenCol,2,0,-1,0,nPoints, XV ,0,MaxX, YV ,-1,5,1);
    PlotClose(hPlot);
Reply
  • Hi,
    You can create polyline by the plot functions.
    Create an array for each line. Draw them with the following functions.
    --------
    hPlot = PlotOpen(hAn, "Display", 1);
    PlotGrid(hPlot,360,0,0,px,py,nHgrid, 0, nVgrid,0,FrameWidth ,1,-1,0);

    PenCol = RED; //RED
    PlotXYLine(hPlot,0,PenCol,3,0,-1,0,nPoints, X ,0,MaxX, Y , 0,160,1);

    PenCol = BLUE; //BLUE
    PlotXYLine(hPlot,0,PenCol,2,0,-1,0,nPoints, XP ,0,MaxX, YP ,0,16,1);

    PenCol = GREEN; //GREEN
    PlotXYLine(hPlot,0,PenCol,2,0,-1,0,nPoints, XV ,0,MaxX, YV ,-1,5,1);
    PlotClose(hPlot);
Children
No Data