Configures a sound device for a sound input operation.
After you configure the sound device, you can use the SI Start VI and the SI Read VI to transfer data from device.
![]()
![]() |
device is the device you access for a sound operation. Use the default value of 0 if you have one audio input to the host computer, which is common. The value ranges from 0 to n–1, where n is the number of input or output devices on the computer. | ||||||||
![]() |
sound format specifies if the sound operation is mono or stereo, sets its playing rate (speed), and sets the sound as 8- or 16-bit sound.
| ||||||||
![]() |
buffer size is the size in bytes of the internal buffer that LabVIEW uses to transfer data from a device. If you receive an overwrite error, increase the buffer size. The default value is 8192. | ||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the PDA Error Handler VI to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||
![]() |
task ID out returns an identification number associated with the configuration on the device you specify in device. You can wire task ID out to other sound input operation VIs. | ||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
|