Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Generating event in Data Acquisition Toolbox

1 visualizzazione (ultimi 30 giorni)
YoungKwang
YoungKwang il 6 Ott 2011
Chiuso: MATLAB Answer Bot il 20 Ago 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.

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by