Data Acquisition Toolbox    

Line and Port Characteristics

As described in the preceding section, when you add lines to a digital I/O object, they must be configured for either input or output. You read values from an input line and write values to an output line. Whether a given hardware line is addressable for input or output depends on the port is resides on. You can classify digital I/O ports into these two groups based on your ability to address lines individually:

You can return the line and port characteristics with the daqhwinfo function. For example, National Instruments AT-MIO-16DE-10 board has four ports and eight digital I/O lines per port. To return the digital I/O characteristics for this board

To display the line and port characteristics for the first port

To display the line and port characteristics for the second port

To display the line and port characteristics for the third port

To display the line and port characteristics for the fourth port

This information tells you that you can configure all 32 lines for either input or output, and that the first port is line-configurable while the remaining ports are port-configurable.


 Adding Lines to a Digital I/O Object Referencing Individual Hardware Lines