Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Setting and Verifying Hardware Properties

For the ChannelSkew, InputRange, and SampleRate properties, data acquisition devices have a finite (though sometimes large) number of valid values that can be set. If you specify a property value that does not match one of the valid device values, then the data acquisition engine will choose a valid value automatically. The rules the engine uses to select a valid property value are described for each property in Chapter 7, "Property Reference".

You can use the propinfo function to obtain information about the valid values for some of these properties. For example, suppose you create the analog input object AI for a sound card. You can use propinfo to display information about the SampleRate property.

Note:
For some sound cards, you can set the sampling rate to any value between the minimum and maximum values defined by the hardware. This is due to onboard decimation.

To find out if the engine sets a property to a value that differs from the one you specified, you should retrieve the value after it is set. For example, after setting the sampling rate for a National Instruments device, you should retrieve the actual rate set since you may want to use this value to set additional property values.

As an alternative to the syntax shown above, you can use the setverify function. setverify is equivalent to the commands

Using setverify, the previous example is written as



[ Previous | Help Desk | Next ]