The Microphone Test sequence uses analog output channels or modules and analog input channels or modules to demonstrate frequency domain measurements of a captured audio signal.

This TestStand sequence uses the LabVIEW measurement libraries. By default, the test sequence is installed to the following location: C:\Users\Public\Documents\National Instruments\PCB Assembly Test Toolkit for LabVIEW\TestStand\Automation\Microphone Tests

Required Driver Application Software

This sequence requires a supported version of NI-DAQmx.

Highlighted Features

  • Microphone Test (with Trigger)—Sends analog tones with an analog output and uses analog input to capture the tones as an analog input waveform and perform frequency domain measurements Hardware triggers reduce the delay between source and measurement. This example uses the following libraries:
    • DAQ_DC Signal Voltage Generation
    • DAQ_Frequency Domain Measurement
  • Turn Off all AO Channels—Powers down all analog output channels by configuring an output voltage of 0 V. This example uses the DAQ_DC Voltage Generation library.
  • Hardware Configuration

    The following figure illustrates the hardware connections for this example sequence.


    Refer to the documentation for your specific device for pinouts and other information necessary to adapt this example sequence to your application.

    Using the Sequence with Physical Hardware

    1. Run the sequence once in simulation mode. Running the sequence in simulation mode creates the required global virtual channels in NI MAX that you must modify.
      Note In this example, physical and global virtual channels are used to configure the terminal or pin to perform the instrument actions. Global virtual channels are software entities that encapsulate the physical channel along with other channel specific information such as range, terminal configuration, and custom scaling. You can create global channels in NI MAX and call them from measurement libraries.
    2. Right click the Import Hardware Config step and select Run Mode » Skip to skip the step.
    3. Configure the remaining sequences. Open each sequence and examine the Note to run with Hardware entry.
    4. Configure the Microphone Test (with Trigger) sequence.
      1. Open NI-MAX and update the physical channel linked to the global virtual channels used in the Signal Voltage Generation and Frequency Domain Measurement initialize steps: TS_Speaker0, TP_Mic0, TP_Mic1, and TP_Mic2. Refer to Creating and Modifying Global Virtual Channels for more information.
      2. Open the Frequency Domain Measurement – Configure TP step and update the Digital Trigger Source.
      3. Review the analog output and analog input pin configurations for your use case.
      4. Save the sequence.
    5. Configure the Turn Off all AO Channels sequence.
      1. Open the DC Voltage Generation - Initialize AO Channels step and update the Physical Channels input to use your analog output channel.
      2. Review the analog output pin configurations for your use case.
      3. Save the sequence.