Error using the command: set(ai_device, 'SamplePerTriger', 1000)

조회 수: 2 (최근 30일)
muhammad choudhry
muhammad choudhry 2021년 3월 10일
댓글: muhammad choudhry 2021년 3월 10일
Hi,
Can anyone help. I am using script from the ADLINK (DAQ_MTLB) PDF and in which instruction are given how to extract the data from the control box using matlab but I am on the page where it ask me to use the command shown below but whenever I am using it, I am getting error below. Seraching on google taking me into drivers information which is not required just wondering anyone here can help:
Command:
set(ai_device, 'SamplePerTriger', 1000)
Error:
>> set(ai_device, 'SamplePerTriger', 1000)
Error using daqdevice/set (line 232)
Invalid property: 'SamplePerTriger'.

답변 (1개)

Mario Malic
Mario Malic 2021년 3월 10일
편집: Mario Malic 2021년 3월 10일
Hi,
What's the output of
properties(ai_device)
Is it maybe SamplePerTrigger?
  댓글 수: 1
muhammad choudhry
muhammad choudhry 2021년 3월 10일
>> ai_device = analoginput('mwadlink', 0)
Display Summary of Analog Input (AI) Object Using 'USB-1901:5'.
Acquisition Parameters: 1000 samples per second on each channel.
1000 samples per trigger on each channel.
1 sec. of data to be logged upon START.
Log data to 'Memory' on trigger.
Trigger Parameters: 1 'Immediate' trigger(s) on START.
Engine status: Waiting for START.
0 samples acquired since starting.
0 samples available for GETDATA.
AI object contains no channels.
>> ai2 = addchannel(ai_device, 0)
Index: ChannelName: HwChannel: InputRange: SensorRange: UnitsRange: Units:
1 '' 0 [-10 10] [-10 10] [-10 10] 'Volts'
>> getsample(ai_device)
ans =
-3.8812
>> properties(ai_device)
No class analoginput.
it says here NO CLASS Input

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by