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

  • 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);
  • Hi,
    Thanks for reply.
    I need the variable values you defined like px,py,nHgrid,nVgrid,Framewidth,nPoints etc.
    Please send the values.
    Thanks
  • The PlotGrid(..) define the size of the plot
    Px & Py - define the size of the plot. the hAn is the 0,0 point. The Px & Py- define the right-bottom of the area.
    nHgrid,nVgrid,Framewidth - should be 0. ( You don't want to see them).
    nPoints - defined the number of points in the arrays for plotting the lines.

    See the help for the PLOT functions
  • Or you might want to look up the function in the Help yourself. People here love to help, but we cannot do your project for you.