이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
하드웨어 검색 및 장치 세부 정보 보기
이 예제는 시스템에서 지원되는 데이터 수집 장치를 확인하는 방법을 보여줍니다. 검색된 장치에 대한 자세한 정보도 확인할 수 있습니다.
하드웨어 장치 검색
daqlist 함수를 사용하여 시스템에서 사용 가능한 모든 데이터 수집 하드웨어 리소스를 확인하십시오.
dev = daqlist
dev =
4×5 table
VendorID DeviceID Description Model DeviceInfo
_____________ ________ ___________________________________________ ______________________________ ____________________
"ni" "Dev2" "National Instruments(TM) USB-6509" "USB-6509" [1×1 daq.DeviceInfo]
"ni" "Dev3" "National Instruments(TM) USB-6211" "USB-6211" [1×1 daq.DeviceInfo]
"directsound" "Audio0" "DirectSound Primary Sound Capture Driver" "Primary Sound Capture Driver" [1×1 daq.DeviceInfo]
"directsound" "Audio1" "DirectSound Primary Sound Driver" "Primary Sound Driver" [1×1 daq.DeviceInfo]
자세한 장치 정보 가져오기
ID가 Dev3인 장치의 DeviceInfo 세부 정보를 확인하십시오.
dev.DeviceInfo(2)
ans =
ni: National Instruments(TM) USB-6211 (Device ID: 'Dev3')
Analog input supports:
4 ranges supported
Rates from 0.1 to 250000.0 scans/sec
16 channels ('ai0' - 'ai15')
'Voltage' measurement type
Analog output supports:
-10 to +10 Volts range
Rates from 0.1 to 250000.0 scans/sec
2 channels ('ao0','ao1')
'Voltage' measurement type
Digital IO supports:
8 channels ('port0/line0' - 'port1/line3')
'InputOnly','OutputOnly' measurement types
Counter input supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'EdgeCount','PulseWidth','Frequency','Position' measurement types
Counter output supports:
Rates from 0.1 to 80000000.0 scans/sec
2 channels ('ctr0','ctr1')
'PulseGeneration' measurement type