talking to USB Relay Module

조회 수: 15 (최근 30일)
steve solomon
steve solomon 2020년 8월 5일
댓글: Amit Levy 2024년 4월 18일
I have a USB relay module
that has an FT245RL onboard running the relays. The drivers are installed correctly, and I can see the board on COM3. I create a serial port object thus:
relay = serialport('COM3',9600,'Parity','none','DataBits',8,'StopBits',1);
but when i try to send a command (e.g. write(relay,1,"uint8")), i get no response. I can run the board usaing a stand-alone app (USB 8 Relay Manager v.1.4.exe), and after i have used that app to toggle the relays, I can then operate hte relays with my matlab code (after closing out the stand alone relay app of course).
So what's going on here?
  댓글 수: 1
Eduard Mauri Rodriguez
Eduard Mauri Rodriguez 2022년 5월 11일
Hello Steve,
Did you find a solution to the problem? Because I'm currently having the same problem and still haven't found a solution.
Thank you very much,
Edu

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

답변 (1개)

steve solomon
steve solomon 2022년 5월 11일
ended up writing my own driver, never got it to work with native matlab functions.
  댓글 수: 3
steve solomon
steve solomon 2022년 5월 11일
let me know if that doesnt do the trick and I will dig up the driver so you dont have to reinvent that particular wheel.
Amit Levy
Amit Levy 2024년 4월 18일
Did you manage to solve this?

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

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by