Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Generating event in Data Acquisition Toolbox

1 visualización (últimos 30 días)
YoungKwang
YoungKwang el 6 de Oct. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by