Many
Manuals
search
Categorie
Marchi
Home
MATLAB
Software
REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER
Manuale Utente
MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale Utente Pagina 255
Scaricare
Condividere
Condivisione
Aggiungi ai miei manuali
Stampa
Pagina
/
408
Indice
SEGNALIBRI
Valutato
.
/ 5. Basato su
recensioni clienti
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
Example – Creating and Using a Phone Book
5-85
(508) 111-3456
-------------------------
-------------------------
Russell Reddy
(617) 999-8765
-------------------------
1
2
...
250
251
252
253
254
255
256
257
258
259
260
...
407
408
External Interfaces
1
How to Contact The MathWorks:
2
Creating Fortran MEX-Files
5
Calling Java from MATLAB
6
Serial Port I/O
10
Contents
12
Calling C and Fortran
13
Programs from MATLAB
13
Introducing MEX-Files
15
MATLAB Data
18
Numeric Matrices
19
MATLAB Strings
19
Sparse Matrices
19
Cell Arrays
20
Structures
20
Multidimensional Arrays
20
Logical Arrays
21
Empty Arrays
21
The explore Example
21
Building MEX-Files
23
Selecting a Compiler
24
Preconfigured Options Files
29
Custom Building MEX-Files
32
Default Options File on UNIX
34
The User Profile Directory
35
Compile Stage
36
Link Stage
36
Build Options
37
Prelink Stage
39
Linking DLLs to MEX-Files
40
Versioning MEX-Files
40
•See the
43
Troubleshooting
44
DLLs Not on Path on Windows
44
General Configuration Problem
45
UNIX only
46
MEX-files only
46
Potential Memory Leaks
52
Additional Information
54
<matlab>/bin
55
<matlab>/extern/include
56
<matlab>/extern/src
56
<matlab>\bin\win32
57
<matlab>\extern\include
58
<matlab>\extern\src
58
Examples From the Text
58
MEX Reference Examples
59
MX Examples
59
Engine and MAT Examples
59
Technical Support
60
Creating C Language
61
C MEX-Files
63
Examples of C MEX-Files
67
that returns the values of
70
Passing Strings
71
The results of this input are
80
Handling Complex Data
81
Handling Sparse Arrays
89
Persistent Arrays
98
Hybrid Arrays
100
Specifying the Function Name
101
Handling Complex Numbers
102
Advanced Topics
103
Building the MEX-File
104
Creating C Language MEX-Files
106
Debugging on UNIX
107
Microsoft Compiler
108
Watcom Compiler
109
Creating Fortran
111
MEX-Files
111
3 Creating Fortran MEX-Files
112
Fortran MEX-Files
113
The Pointer Concept
115
The Gateway Routine
116
Examples of Fortran MEX-Files
119
Passing Matrices
127
Dynamically Allocating Memory
135
Memory Management
147
Compaq Visual Fortran
149
Calling MATLAB from C
151
Using the MATLAB Engine
153
Communicating with MATLAB
154
GUI-Intensive Applications
155
Return continues the program
160
Open field, type
166
OK. This starts MATLAB
166
Setting Runtime Library Path
168
Compiling and Linking
169
Calling Java from
171
5 Calling Java from MATLAB
172
Sources of Java Classes
175
Defining New Java Classes
175
Using the javaObject Function
180
Examples
186
Assigning to a Static Field
187
Working with Java Arrays
199
Array Access from Java
201
Array Access from MATLAB
201
Array One-dimensional Array
201
Array Indexing
202
The Shape of the Java Array
202
Using the javaArray Function
204
Using the Colon Operator
207
Using END in a Subscript
209
Assigning to a Linear Array
211
Assigning the Empty Matrix
211
Subscripted Deletion
212
Concatenating Java Arrays
213
Passing Data to a Java Method
216
Passing String Arguments
219
Passing Strings in an Array
220
Passing Objects in an Array
222
Other Data Conversion Topics
223
Empty Matrices and Nulls
224
Built-In Data Types
227
Java Objects
227
Example – Reading a URL
233
1. Construct a URL Object
233
Running the Example
237
3. Open the Serial Port
239
4. Configure the Serial Port
240
10. Close the Serial Port
241
3. Create a Hash Table
245
4. Create a File Input Stream
245
1. Input the Entry to Add
249
Running the phonebook Program
253
Importing and Exporting
257
Importing and Exporting Data
258
Using MAT-Files
259
Exporting Data from MATLAB
260
Use the Save command
261
Use MATLAB I/O functions
261
MAT-File Interface Library
262
Finding Associated Files
264
Include Files
265
Libraries
265
Example Files
265
Examples of MAT-Files
267
Reading a MAT-File in C
272
Reading a MAT-File in Fortran
280
Using the Options File
286
ActiveX and DDE Support
287
7 ActiveX and DDE Support
288
ActiveX Interfaces
289
MATLAB ActiveX Client Support
292
Creating ActiveX Objects
292
Manipulating the Interface
292
Writing Event Handlers
294
Converting Data
297
MATLAB Sample Control
299
% Workbook.Saved = 1;
301
% Quit Excel
301
Dynamic Data Exchange (DDE)
309
The Service Name
310
The Topic
310
The Item
310
Clipboard Formats
310
Accessing MATLAB As a Server
311
MATLAB System Topic
312
MATLAB Engine Topic
313
Requesting Data from MATLAB
314
Sending Data to MATLAB
315
Using MATLAB As a Client
317
Introduction
322
Overview of the Serial Port
324
8 Serial Port I/O
326
Signal States
328
The Data Pins
329
The Control Pins
329
Bytes Versus Values
331
How Are the Bits Transmitted?
332
Start and Stop Bits
333
Data Bits
333
The Parity Bit
334
Windows Platform
335
UNIX Platform
336
Selected Bibliography
337
, or readasync function
339
Configuring Property Values
342
Specifying Property Names
343
Default Property Values
343
Creating a Serial Port Object
344
Connecting to the Device
347
function
349
Writing Data
351
Writing and Reading Data
353
Writing Text Data
354
Writing Binary Data
356
Reading Text Data
359
A read operation with fscanf
361
, then you must issue the
362
. RS232?
364
Example: Reading Binary Data
365
Viewing the Bitmap Data
366
Events and Callbacks
368
MATLAB workspace
375
Using Control Pins
376
Hardware Handshaking
379
Software Handshaking
380
End the serial port session
383
The Record File Contents
386
Saving and Loading
388
Disconnecting and Cleaning Up
389
Property Reference
390
Serial Port Object Properties
391
Index
395
Commenti su questo manuale
Nessun commento
Publish
Prodotti e manuali riguardandi Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER
Software MATLAB XPC TARGET 4 - DEVICE DRIVERS Guida Utente
(111 pagine)
Software MATLAB GAUGES BLOCKSET RELEASE NOTES Guida Utente
(114 pagine)
Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Specifiche
(126 pagine)
Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifiche
(216 pagine)
Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guida Utente
(386 pagine)
Software MATLAB BUILDER EX 1 Guida Utente
(164 pagine)
Software MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Guida Utente
(252 pagine)
Software MATLAB SYSTEMTEST RELEASE NOTES Guida di Installazione
(237 pagine)
Software MATLAB TARGET SUPPORT PACKAGE - RELEASE NOTES Manuale Utente
(54 pagine)
Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manuale di Servizio
(282 pagine)
Software MATLAB PARTIAL DIFFERENTIAL EQUATION TOOLBOX 1 Manuale Utente
(18 pagine)
Software MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guida Utente
(574 pagine)
Software MATLAB IMAGE ACQUISITION TOOLBOX 3 Guida Utente
(408 pagine)
Software MATLAB XPC TARGET RELEASE NOTES Manuale Utente
(51 pagine)
Software MATLAB BUILDER JA 2 Guida Utente
(292 pagine)
Software MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guida Utente
(210 pagine)
Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guida Utente
(759 pagine)
Software MATLAB CONTROL SYSTEM TOOLBOX 9 Specifiche
(591 pagine)
Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guida Utente
(130 pagine)
Software MATLAB XPC TARGET RELEASE NOTES Guida Utente
(531 pagine)
Stampa documento
Stampa pagina 255
Commenti su questo manuale