필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Generating event in Data Acquisition Toolbox

조회 수: 1 (최근 30일)
YoungKwang
YoungKwang 2011년 10월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I'm using Digital I/O module of Measurement Computing.It has 8 channel input and 8 channel output. What I wana do with it is, there is a box device(1) which gets the signal from wireless device(2). The purpose of this is to test its range. If the wireless device(2) is too far away from device(1), Led on device(1) is off. Wireless device(2) is within certain range, but not enough range to get the signal clearly, it starts blinking and the closer the device(2) gets to device(1), faster it's blinking. And fanally, it's on completely. And now here is the problem. Data Acquisition Toolbox of Matlab supports event only with Analog I/O module, not with Digital. I'm gonna make some interface betweent that led and I/O module input. But because it doens't support real-time event, I've had hardtime thinkg about the way detecting the input and response immediately according to status of LED.
Is there any way detecting that signal from device(1) led connected to I/O module input quickly? Until that led stops blinking and light solid, I'll move that wileless device (2) to device(1) by using other some automated moving device. Once the led becomes solid, will stop the moving device.
One way I'm thinking is, I can get the value from the I/O module input directly by using 'get' command. And excute 'get' command by using 'while' and when the value of 1 meaming 'on' is on continuoulsy, I'll end that syntax. But any better idea else without using while? I hope you could understand my question.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by