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 Kommentar

Eduard Mauri Rodriguez
Eduard Mauri Rodriguez am 11 Mai 2022
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

Melden Sie sich an, um zu kommentieren.

Antworten (1)

steve solomon
steve solomon am 11 Mai 2022

1 Stimme

ended up writing my own driver, never got it to work with native matlab functions.

3 Kommentare

Eduard Mauri Rodriguez
Eduard Mauri Rodriguez am 11 Mai 2022
Oh... I've now found out that a Initialization file is required. I'll see if it works, otherwise I'll have to proceed as you did.
Thanks!
steve solomon
steve solomon am 11 Mai 2022
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 am 18 Apr. 2024
Did you manage to solve this?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Block and Blockset Authoring finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 5 Aug. 2020

Kommentiert:

am 18 Apr. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by