User`s guide
4 Connecting to Hardware
Note The video source object for your device might not include device-specific
properties. For example, devices a ccess ed with the
'winvideo' adaptor, such
as webcams, that use a Video for Windows (VFW) driver, may not provide a
way for the toolbox to programmatically query for device properties. Use the
configuration tools provided by the manufacturer to configure these devices.
get(getselectedsource(vid))
General Settings :
Parent = [1x1 videoinput]
Selected = on
SourceName = CH0
Tag =
Type = videosource
Device Specific Prop erties:
InputFilter = lowpass
UserOutputBit3 = off
UserOutputBit4 = off
XScaleFactor = 1
YScaleFactor = 1
Viewing the Value o f a Particular Property
To view the value of a particular p roperty of an image acquisition object, use
the
get function, specifying the name of the property as an argument. You
can also access the value of the property as you would a field in a MATLAB
structure.
This example uses the
get function to retrieve the value of the Previe win g
property.
get(vid,'Previewing')
ans =
off
This example illustrates how to access the same property by referencing the
object as if it were a M ATLAB structure.
4-20