Data Acquisition Toolbox | ![]() ![]() |
Reading and Writing Digital Values
If you have a supported National Instruments board with at least eight digital I/O lines, you can run the following example, which outputs digital values, and then reads back those values.
You should modify this example to suit your specific application needs. If you want detailed information about reading and writing digital values, refer to Digital Input/Output.
dio
for a National Instruments PCI-6024E board with hardware ID 1.
dio
, and configure them for output.
dio
, you should remove it from memory and from the MATLAB workspace.
Note Digital line values are usually not transferred at a specific rate. Although some specialized boards support clocked I/O, the Data Acquisition Toolbox does not support this functionality. |
![]() | Outputting Data | Understanding the Toolbox Capabilities | ![]() |