Data Acquisition Toolbox | ![]() ![]() |
Configure and return the specified property
Syntax
Actual = setverify(obj,'
PropertyName
',PropertyValue)
Actual = setverify(obj.Channel(index),'
PropertyName
',PropertyValue)
Actual = setverify(obj.Line(index),'
PropertyName
',PropertyValue)
Arguments
Description
sets Actual = setverify(obj,'
PropertyName
',PropertyValue)
PropertyName
to PropertyValue
for obj
, and returns the actual property value to Actual
.
sets Actual =
setverify(obj
.Channel(index),'
PropertyName
',PropertyValue)
PropertyName
to PropertyValue
for the channels specified by index
, and returns the actual property value to Actual
.
sets Actual = setverify(obj
.Line(index),'
PropertyName
',PropertyValue)
PropertyName
to PropertyValue
for the lines specified by index
, and returns the actual property value to Actual
.
Remarks
setverify
is equivalent to the commands
Using setverify
is not required for setting property values, but it does provide a convenient way to verify the actual property value set by the data acquisition engine.
setverify
is particularly useful when setting the SampleRate
, InputRange
, and OutputRange
properties because these properties can only be set to specific values accepted by the hardware. You can use the propinfo
function to obtain information about the valid values for these properties.
If a property value is specified but does not match a valid value, then
SampleRate
and InputRange
properties, the value is automatically rounded up to the next highest supported value.
Example
Create the analog input object ai
for a National Instruments AT-MIO-16DE-10 board, add eight hardware channels to it, and set the sample rate to 10,000 Hz using setverify
.
ai = analoginput('nidaq',1); ch = addchannel(ai,0:7); ActualRate = setverify(ai,'SampleRate',10000);
Suppose you use setverify
to set the input range for all channels contained by ai
to -8 to 8 volts.
The InputRange
value was actually rounded up to -10 to 10 volts.
Functions
Properties
InputRange
, OutputRange
, SampleRate
![]() | set | showdaqevents | ![]() |