Example Code

Generating I2S Serial Format Data


  • HSDIO device

Code and Documents




Generates a sine wave and convert it into 16 bit DIO data to be generated from an HSDIO device.

This example program generates a sine wave, converts the data to a 16-bit array, and then generates I2S format data to be generated with a high-speed digital I/O device.

The Inter IC Sound (I2S) format is a common way to send stereo data to sound-integrated circuits.

Related Links:
High-Speed Digital I/O Devices
Can NI Products Interface to I2S Protocol?


Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.