How to remove time gaps between subsequent 'readwrite'?
이전 댓글 표시
I would like to generate signals for two channels. These signals should be alternatives. That is, if one signal is on, the another should be off.
To do it, I made the below code.
addoutput(dq, "dev1", 1:2, "voltage")
data = readwrite(dq, scandata1, 'OutputFormat', 'Matrix');
removechannel(dq, 3)
addoutput(dq, "dev1", "ao1", "voltage")
data1 = readwrite(dq, scandata2, 'OutputFormat', 'Matrix');
But, the problem was a time gap due to 'removechannel' and another 'addoutput'.
Could you give some advice on it?
댓글 수: 4
Walter Roberson
2020년 9월 2일
Is it necessary that the voltage be free-floating during the time of no signal, or could you instead drive it to a particular value (say 0) ? So emit (say) 0 on the channel not in use (and discard any data), and emit appropriate data on the channel that is in use ?
Siwoo Jeong
2020년 9월 2일
Walter Roberson
2020년 9월 2일
In the force case, force 0 should work instead of having it free-floating, except in the case where the accutator can detect free-floating.
The length case is less clear to me.
Siwoo Jeong
2020년 9월 2일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Periodic Waveform Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!