This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Display bits per sample


This property displays the maximum value of bits per sample of the device, based on the device specifications. By default this read-only value is 24.


View BitsPerSample Property

Create an audio input session and display session properties.

s = daq.createSession('directsound')
s = 

Data acquisition session using DirectSound hardware:
   Will run for 1 second (44100 scans) at 44100 scans/second.
   No channels have been added.
Properties, Methods, Events

Click on the Properties link.

 UseStandardSampleRates: true
                       BitsPerSample: 24
                 StandardSampleRates: [1x15 double]
                       NumberOfScans: 44100
                   DurationInSeconds: 1
                                Rate: 44100
                        IsContinuous: false
      NotifyWhenDataAvailableExceeds: 4410
IsNotifyWhenDataAvailableExceedsAuto: true
          NotifyWhenScansQueuedBelow: 22050
    IsNotifyWhenScansQueuedBelowAuto: true
              ExternalTriggerTimeout: 10
                      TriggersPerRun: 1
                              Vendor: DirectSound
                            Channels: ''
                         Connections: ''
                           IsRunning: false
                           IsLogging: false
                              IsDone: false
         IsWaitingForExternalTrigger: false
                   TriggersRemaining: 1
                           RateLimit: ''
                         ScansQueued: 0
               ScansOutputByHardware: 0
                       ScansAcquired: 0