MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual do Utilizador Página 297

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 408
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 296
Additional ActiveX Client Information
7-11
activex object called hPlot.) In particular, this example iterates through a
collection of
Plot interfaces, invokes the Redraw method for each interface, and
then releases each interface.
hCollection = get (hControl, 'Plots');
for i=1:get (hCollection, 'Count')
hPlot = invoke (hCollection, 'Item', i);
invoke (hPlot, 'Redraw');
release (hPlot);
end;
release (hCollection);
Converting Data
Since ActiveX defines a number of different data formats and types, you will
need to know how MATLAB converts data from
activex objects into variables
in the MATLAB workspace. Data from
activex objects must be converted:
When a property value is retrieved
When a value is returned from a method invocation
This chart shows how ActiveX data types are converted into variables in the
MATLAB workspace.
ActiveX Data Type MATLAB Variable
String
File Time
Error
Decimal Date
MATLAB String
Currency
Hresult
Int/Unsigned (2, 4, 8)
Bool
Scalar Double
Real (Single/Double
Null
NaN
Precision)
Vista de página 296
1 2 ... 292 293 294 295 296 297 298 299 300 301 302 ... 407 408

Comentários a estes Manuais

Sem comentários