>> 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.
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.