s — Session objectcharacter string
Session object created using
daq.createSession specified as a string variable. Use the data acquisition session for acquisition and generation operations. Create one session per vendor and use that vendor session to perform all data acquisition operations.
deviceName — Device IDcharacter string
Device ID as defined by the device vendor specified as a character string. Obtain the device ID by calling
daq.getDevices. The channel specified for this device is created for the session object.
channelID — Channel IDnumeric value
Channel ID, or the physical location of the channel on the device, added to the session, specified as numeric value. You can also add a range of channels. The index for this channel displayed in the session indicates this channels position in the session. If you add a channel with channel ID
1 as the first channel in a session, the session index is
ch — Audio input channel object1xn array
Audio input channel that you add, returned as an object containing a
1xn array of vendor specific channel specific information. Use this channel object to access device and channel properties.
|BitsPerSample||Display bits per sample|
|Device||Channel device information|
|ID||ID of channel in session|
|MeasurementType||Channel measurement type|
|Name||Specify descriptive name for the channel|
|Range||Specify channel measurement range|
|StandardSampleRates||Display standard rates of sampling|
|UseStandardSampleRate||Configure session to use standard sample rates|
s = daq.createSession('directsound') addAudioInputChannel(s,'Audio1',1);
Add two audio input channels and specify output arguments to represent the channel object and the index.
s = daq.createSession('directsound') [ch, idx] = addAudioInputChannel(s,'Audio1',1:2);