Hello Team,
Now, I can use valuedisplay to show new value on screen.
int control = 0;
int DeviceDriver_ProcessData( void )
{
double value;
static double PEQ_KNOK_GAIN_SRC[31] = {-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0.0,1.0,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
if ( ValueDisplay != control )
{
ApplicationDeviceClass device = EwGetAutoObject( &ApplicationDevice,
ApplicationDeviceClass );
value = PEQ_KNOK_GAIN_SRC[ValueDisplay];
ApplicationDeviceClass__UpdateValueDisplay( device, (XInt32)value);
control++;
return 1;
}
return 0;
}
If I want to read this array on the embedded wizard stdio.You may know I use text view as a value to make line before,and use text view to read the current value .
var float g = (float)Application::Device.PEQ_GAIN1[PEQ_GAIN.Sider.CurrentValue];
var float q = (float)Application::Device.PEQ_Q1[PEQ_Q.Sider.CurrentValue];
var float f = (float)Application::Device.PEQ_FREQ1[PEQ_FREQ.Sider.CurrentValue];
Question:Can I use ValueDisplay to read external arrays(PEQ_KNOK_GAIN_SRC) and operate on embedded wizard stdio to calculate?If so, how can I get?
Best regards,
Tonny