
A Examples
A-4
-
Image Acquisition
1
-
Toolbox 3
1
-
User’s Guide
1
-
508-647-7000 (Phone)
2
-
508-647-7001 (Fax)
2
-
The MathWorks, Inc
2
-
3 Apple Hill Drive
2
-
Natick, MA 01760-2098
2
-
Revision History
3
-
Contents
5
-
ConnectingtoHardware
7
-
WorkingwithAcquiredImageData
9
-
Troubleshooting
11
-
Functions — By Category
12
-
........................ A-3
14
-
Getting Started
15
-
1 Getting Started
16
-
Related Products
17
-
Supported Hardware
17
-
V iewing Object Properties
27
-
Setting Object Properties
29
-
Running the Example
31
-
Toolbox Compone
37
-
2 Introduction
38
-
Setting Up Frame Grabbers
39
-
Previewing Data
42
-
Each time
51
-
Using the Image Acquisition
53
-
Tool GUI
53
-
Opening the Tool
54
-
Parts of the Desktop
54
-
Selecting Your Device
57
-
Adding New Hardware
58
-
Using a Camera File
59
-
Setting Frames Per Trigger
61
-
Setting the Color Space
62
-
Using the Region of Interest
62
-
Logging Your Data
65
-
Memory Logging
66
-
Disk Logging
66
-
Setting Up Triggering
67
-
Selecting the Trigger Type
68
-
The Preview Window
71
-
Acquiring Data
73
-
4 and Number of
74
-
Immediate,thetool
75
-
1 or any
75
-
If Images Are Blurry or Dark
76
-
Previewing and Acquiring Data
77
-
Expor ting Data
78
-
Exporting Data
79
-
3 Click Save
80
-
4 Click Save
83
-
Connecting to Hardware
85
-
Getting Hardware Information
87
-
Getting Hardware Inform ation
89
-
TypesofObjects
93
-
1 Thetitleofthesum
95
-
Using a Video Format String
97
-
4 Connecting to Hardware
100
-
Setting Trigger Properties
107
-
Acquiring Image Data
115
-
5 Acqu iring Image Data
116
-
Data Logging
117
-
Specifying the Trigger Type
123
-
Example: Using a
125
-
Manual T
127
-
TriggerRep eat property
133
-
Example:
137
-
Acquiring 100 Frames
137
-
Determining How
139
-
Many Frames Are Available
139
-
Specifying Multiple Triggers
143
-
Using the wait Function
145
-
Managing Memory Usage
149
-
Freeing Memory
151
-
Logging Image Data to Disk
154
-
Logging Data to a Disk File
155
-
Example: Logging Data to Disk
157
-
Working with Acquired
161
-
Image Data
161
-
Over view
162
-
Overview
163
-
FramesPerTrigger property:
165
-
FramesPerTrigger property
165
-
FramesPerTrigger property to
165
-
Frames Returned by peekdata
167
-
FramesAvailable property
171
-
Understanding Image Data
172
-
ROIs and Image Dimensions
173
-
Specifying the Color Space
177
-
Viewing Acquired Data
179
-
Retrieving Timing Information
180
-
Using Events and Callbacks
185
-
7 Using Events and Callbacks
186
-
Event Types
188
-
Retrieving Event Information
191
-
Data Fields for Timer Events
193
-
3 Acquir
201
-
Using the From Video
205
-
DeviceBlockinSimulink
205
-
Opening the Block Librar y
207
-
Introduction
209
-
Step 2: Open a Mod
210
-
Step 3: Drag the F
211
-
Step 4: Drag Othe
212
-
Step 5: Connect t
214
-
Step 7: Run the Si
216
-
Adding Support for
217
-
Additional Hardware
217
-
For More Information
219
-
10 Troubleshooting
222
-
IFC Devices
225
-
Sapera Devices
227
-
Installing the Driver
231
-
6 Select Camer
233
-
To exit
235
-
2 If your hardw
237
-
2 Select Start
239
-
Diagnostic Tool
245
-
Function
247
-
Objects G eneral Purpose
250
-
Triggering
251
-
11 Functions — By C atego ry
252
-
Functions — Alphabetical
255
-
Syntax clear obj
256
-
Syntax closepreview(obj)
257
-
Syntax delete(obj)
258
-
Syntax obj
259
-
See Also videoinput
260
-
Syntax flushdata(obj)
261
-
Syntax get(obj)
262
-
See Also set, videoinput
262
-
Syntax data = getdata(obj)
263
-
, imaqhelp, peekdata
269
-
Syntax imaqfind
270
-
See Also get, videoinput
271
-
Syntax imaqhelp
272
-
See Also propinfo
273
-
Syntax out = imaqhwinfo
274
-
See Also imaqhelp, im aqreset
277
-
Syntax mem = imaqmem
278
-
, getdata, vide oinp ut
280
-
Syntax imaqmontage(frames)
281
-
Create an axes object
282
-
Syntax imaqreset
283
-
See Also delete, vid eoinput
283
-
Syntax imaqtool
284
-
Syntax bool = islogging(obj )
285
-
Properties
286
-
Syntax bool = isrunning(obj )
287
-
Syntax bool = isvalid(obj)
289
-
Syntax load filename
290
-
Syntax preview(obj)
297
-
Syntax out = propinfo(obj)
301
-
See Also imaqhelp
302
-
Syntax save filename
303
-
Syntax set(obj)
304
-
Syntax start(obj)
306
-
Syntax stop(obj)
308
-
Syntax stoppreview(obj)
309
-
Purpose Initiate data logging
310
-
Syntax trigger(obj)
310
-
Examples Example 1
312
-
Syntax triggerinfo(obj)
314
-
, trigg erconfig
315
-
, imaqfind, isvalid, preview
318
-
Syntax wait(obj)
319
-
Properties — By Category
321
-
Video Input Objects
322
-
Callback
323
-
13 Properties — By Category
324
-
Acquisition Source
325
-
Video Source Objects
326
-
Properties — Alphabetical
327
-
BayerSensorAlignment
328
-
DeviceID
330
-
DiskLogger
332
-
DiskLoggerFrameCount
334
-
ErrorFcn
335
-
EventLog
336
-
FrameGrabInter val
338
-
FrameGrabInterval
339
-
FramesAcquired
340
-
FramesAcquiredFcn
341
-
FramesAcquiredFcnCount
342
-
FramesAvailable
343
-
FramesPerTrigger
344
-
InitialTriggerTime
345
-
See Also Functions
347
-
LoggingMode
348
-
Characteristics
350
-
NumberOfBands
351
-
Previewing
354
-
ReturnedColorSpace
355
-
ROIPosition
356
-
See Also Properties
358
-
Selected
359
-
SelectedSourceName
361
-
SourceName
364
-
Star tFcn
365
-
TimerFcn
369
-
TimerPeriod
370
-
TriggerCondition
371
-
TriggerFcn
373
-
TriggerFrameDelay
374
-
TriggerRepeat
376
-
TriggersExecuted
377
-
TriggerSource
378
-
TriggerType
379
-
UserData
382
-
V ideoFormat
383
-
VideoFormat
384
-
VideoResolution
385
-
Blocks — Alphabetical List
387
-
From Video Device
388
-
From Video D evice
389
-
Video Input (Obsolete)
395
-
Examples
397
-
Fundamentals
398
-
Image Acquisition Tool (GUI)
398
-
Working with Acquired Data
399
-
Events and Callbacks
399
-
A Examples
400
-
VideoFormat property 14-57
408
Commenti su questo manuale