MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Bedienungsanleitung Seite 297

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 408
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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)
Seitenansicht 296
1 2 ... 292 293 294 295 296 297 298 299 300 301 302 ... 407 408

Kommentare zu diesen Handbüchern

Keine Kommentare