I have tried to update a PtNumericFloat widget exactly as the
helpviewer suggests. It does not work.
double number = 5.55;
PtSetResource (ABW_base_float, Pt_ARG_NUMERIC_VALUE, &number, 0);
What must I do to update a PtNumericFloat widget’s value?
Bill Caroselli <email@example.com> wrote:
BC > I have a PtNumericFloat widget. I want to update it’s value in a
BC > PtTimer callback. But the new value never shows up on the screen.
BC > I am currently doing:
BC > double d = getDoubleValue();
BC > PtSetResource ( ABW_AIN0, Pt_ARG_NUMERIC_VALUE, &d, 0);
BC > printf( "value = %6.3fv, ", d );
BC > The printf() is printing the correct value.
BC > Is there some kind of flush() function I need to call between calls to
BC > the timer callback?