MATLAB supports digital input/output devices with the Data Acquisition Toolbox.
This MATLAB code example shows you how to set the output voltages of a data acquisition device capable of digital output.
This example was tested on National Instruments™ USB-6255 device. The example also applies to NI USB-6501 and other devices. This example assumes that the vendor board driver (NI-DAQmx ) is installed.
For a complete list of supported boards:
Learn more about using the Data Acquistion Toolbox:
MathWorks Data Acquisition Toolbox Team (2022). MATLAB Code Example- 24 bit Digital Output using NI USB-6501 (https://www.mathworks.com/matlabcentral/fileexchange/26319-matlab-code-example-24-bit-digital-output-using-ni-usb-6501), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!