| Data Acquisition Toolbox | Search  Help Desk |
Getting Function and Property Help
You can access help on Data Acquisition Toolbox functions and properties using some or all of these resources:daqhelp function
propinfo function
daqhelp and propinfo functions are discussed below.
The daqhelp function
daqhelp can be used to display information for both functions and properties. daqhelp can also be used to display information about device objects and constructors. A device object need not exist for you to obtain this information. For example, before creating a device object, the command
daqhelp analoginput/peekdata
analoginput/peekdata, while the command
daqhelp analoginput.TriggerDelayUnits
TriggerDelayUnits. After creating a device object, you can display all the associated help by specifying the device object name as an argument to daqhelp. For example, to display all the associated help for the sound card example on page 3-17:
daqhelp(AI)
daqhelp can be used to display help for specific functions and properties for AI.
For more information aboutdaqhelp(AI, 'TriggerDelayUnits');daqhelp(AI, 'getdata');daqhelp(AI, 'set');
daqhelp, refer to Chapter 6, "Function Reference."
The propinfo function
propinfo returns information about device object or channel properties. The information is returned as a structure containing the fields shown below. propinfo field values for the SampleRate property for the sound card example on page 3-17.
To display the data type of theinfo = propinfo(AI);info.SampleRateans = Type: 'double' Constraint: 'Bounded' ConstraintValue: [8000 44100] DefaultValue: 8000 ReadOnly: 0 ReadOnlyRunning: 1 DeviceSpecific: 0
InputRange property:
For more information aboutinfo1 = propinfo(AI.Channel);info1.InputRange.Typeans = double array
propinfo, refer to Chapter 6, "Function Reference."