Hello EW Team, I am working on a project in which I have to plot a graph for which co-ordinates are sent from custom hardware. The plot scenarios are something like this:
1. My plot area in GUI is set to 400px and I am plotting upto 380px for visibility.
2. As soon as I cross 380 px, graph starts scaling, keeping the left axis constant, new values are added at the right side.
3. After sometime, I start scrolling my graph for every newly added value, for which I calculate the pixelpervalue and subtract the same from plot to add new value.
All these steps are successfully implemented. My query is:
Query 1: I am sending 2 values, X and Y from my device. Each time I receive a new value of either, Graph updates.
Eg: Coord1 - (1,2), next Coord2 - (2,4), next Coord3 - (3,4) and so on.... Number of nodes that update is "5" because in Coord3 I have same value of Y as in Coord2. So how is the plotting done? Is Coord1 plotted twice and Coord3 plotted once? I am sharing small section of my output which includes our print statement also (Xcoord is multiplied by 100 for better visibility), Note the section of Node 104, in which current Y is same as Previous Y Co-ordinate:
In updateProg_Counter;
Xcoord = 2.550000, Ycoord = 39.811569
EB3403C S C01,P02,PRP,ET 2.549999 sec,T 7.449999 sec,P 39.81156 psig
trace: "x= ", 255.0, "y= ", 79.623138, " NodeNo= ", 100
trace: "x= ", 255.0, "y= ", 79.623138, " NodeNo= ", 101
In updateProg_Counter;
Xcoord = 2.600000, Ycoord = 39.811508
833503C S C01,P02,PRP,ET 2.599999 sec,T 7.400000 sec,P 39.81150 psig
trace: "x= ", 260.0, "y= ", 79.623016, " NodeNo= ", 102
trace: "x= ", 260.0, "y= ", 79.623016, " NodeNo= ", 103
In updateProg_Counter;
Xcoord = 2.650000, Ycoord = 39.811508
493603C S C01,P02,PRP,ET 2.650000 sec,T 7.349999 sec,P 39.81150 psig
trace: "x= ", 265.0, "y= ", 79.623016, " NodeNo= ", 104
In updateProg_Counter;
Xcoord = 2.700000, Ycoord = 39.811459
323703C S C01,P02,PRP,ET 2.700000 sec,T 7.300000 sec,P 39.81145 psig
trace: "x= ", 270.0, "y= ", 79.622917, " NodeNo= ", 105
trace: "x= ", 270.0, "y= ", 79.622917, " NodeNo= ", 106
QUERY 2: When I re-plot the scaled or scrolled path, some line appears to change color and width. Please ignore the colors, as RGB format is different as used in EW and our code. But the doubt is that main graph is expected to have same color throughout the test (Yellow as per current Video), and it seems to be Yellow-Green-Yellow and plz observe the changes in Line Width. And last, do you observe flickering effect in vertical lines used as separators? Why is that happening?
Here is the video: VID20230112152615.mp4
Thanks & Regards,
Vandana Matai