out.Port(4) ??? Index exceeds matrix dimensions.

来源:互联网 发布:华为大数据案例 编辑:程序博客网 时间:2024/05/01 02:21
>> out=daqhwinfo(parport)


out = 


                AdaptorName: 'parallel'
                 DeviceName: 'PC Parallel Port Hardware'
                         ID: 'LPT1'
                       Port: [1x3 struct]
              SubsystemType: 'DigitalIO'
                 TotalLines: 17
    VendorDriverDescription: 'Win I/O'
        VendorDriverVersion: '1.3'


>> out.Port(1)


ans = 


           ID: 0
      LineIDs: [0 1 2 3 4 5 6 7]
    Direction: 'in/out'
       Config: 'port'


>> out.Port(2)


ans = 


           ID: 1
      LineIDs: [0 1 2 3 4]
    Direction: 'in'
       Config: 'port'


>> out.Port(3)


ans = 


           ID: 2
      LineIDs: [0 1 2 3]
    Direction: 'in/out'
       Config: 'port'


>> out.Port(4)
??? Index exceeds matrix dimensions.
原创粉丝点击