Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 

Setting and Verifying Hardware Properties

For the OutputRange and SampleRate properties, data acquisition devices have a finite (though sometimes large) number of valid values that you can set. If you specify a property value that does not match one of the valid device values, then the 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 these properties. For example, suppose you create the analog output object AO for a sound card. You can use propinfo to display information about the SampleRate property.

To find out if the engine sets a property to a value that differs from the one you specified, you should get the value after it is set. For example, after setting the sampling rate for a sound card, 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 ]