Still trying to figure this one out…
I am trying to periodically add one point to a PtTrend widget (Photon
2.01 Alpha). I set it up in PhAB so the plot min is -100 and the max is
+100. Then I execute the following code:
int datavalue[1];
datavalue[0] = some value between -60 and +60
PtSetArg(&args, Pt_ARG_TREND_DATA, datavalue, 1); //also tried
&datavalue
err = PtSetResources(ABW_nameof trendwidget, 1, args);
err returns 0, but the trend is always plotted right down the center of
the widget, where I assume zero is. Can someone tell me what I am doing
wrong? Thanks.
Bruce Davis <bruce.r.davis@boeing.com> wrote:
Still trying to figure this one out…
I am trying to periodically add one point to a PtTrend widget (Photon
2.01 Alpha). I set it up in PhAB so the plot min is -100 and the max is
+100. Then I execute the following code:
int datavalue[1];
Change this to
short datavalue[1];
datavalue[0] = some value between -60 and +60
PtSetArg(&args, Pt_ARG_TREND_DATA, datavalue, 1); //also tried
&datavalue
err = PtSetResources(ABW_nameof trendwidget, 1, args);
err returns 0, but the trend is always plotted right down the center of
the widget, where I assume zero is. Can someone tell me what I am doing
wrong? Thanks.
Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.