MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale Utente Pagina 297

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 408
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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)
Vedere la pagina 296
1 2 ... 292 293 294 295 296 297 298 299 300 301 302 ... 407 408

Commenti su questo manuale

Nessun commento