Error in opening MATLAB device file for LED trigger source.
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Syed Hadi
am 13 Apr. 2023
Bearbeitet: Walter Roberson
am 30 Jun. 2024
Hi, I am using the 'MATLAB support package for Raspberry Pi hardware' using MATLAB 2023a. I have installed all the necessary files on the Pi. I began following the tutorial here:
I got to the first step, ran the code
rpi = raspi('IP Address','username','password');
and was met with the following error (Practice_1 is the name of the script):
Error using Practice_1
Cannot open the device file for LED trigger source.
Any help please? I followed the tutorials accurately on the MathWorks website
6 Kommentare
Atakan Aral Ormanci
am 27 Apr. 2023
I am getting the same error, i have checked the /sys/class/leds directory, it doesn't have led0 led1 led2. This might be causing the problem, i believe it has a function that when matlab is connected to RPi, it uses the leds, but in the connection phase, becouse it doesn't have the led0 activation command in the directory, it doesn't allow the connection.
But its just a guess.
Akzeptierte Antwort
Syed Hadi
am 9 Mai 2023
Bearbeitet: Syed Hadi
am 9 Mai 2023
2 Kommentare
Beryl Wicaksono
am 5 Jun. 2023
Hi Syed Hadi,
are you facing ssh certificate issue after installing 2022-09-22-raspios-bullseye-armhf.img.xz? How do you resolve it?
Thanks
Prasanth Sunkara
am 11 Sep. 2023
Bearbeitet: Walter Roberson
am 30 Jun. 2024
In my opinion using the official Raspberry Pi Imager tool is a better way to setup an image.
Please ensure you have enabled SSH and assigned proper hostname and user credentials. You may optionally enter the WiFi details as well.
There is an option in the Raspberry Pi imager tool to flash images from your PC too. Towards the end the list
Weitere Antworten (2)
MathWorks MATLAB Hardware Team
am 8 Mai 2023
Verschoben: Walter Roberson
am 8 Mai 2023
Hi All,
Follow these steps to resolve the issue,
- Open Raspberry Pi terminal and execute
- $ cd /opt/MATLAB/
- $ sudo pkill mwUnifiedSrvr
- $ sudo rm -rf *
- Download and extract following zip files
- In MATLAB, change your working directory to the above extracted files
- Run >> applyPath.m file
- Create a raspi object in matlab
- >> r = raspi("myAddress",'pi','raspberry');
Thanks,
MathWorks
MATLAB Hardware Team
4 Kommentare
Sandin Taci
am 4 Mai 2023
rpi = raspberrypi('IP Address','username','password')
3 Kommentare
Sandin Taci
am 4 Mai 2023
Can you go through these steps again, I guess you skipped a step. Your hardware tab in the Simulink model does not look customized.
https://www.mathworks.com/help/supportpkg/raspberrypi/ref/getting-started-with-raspberry-pi-hardware.html
Atakan Aral Ormanci
am 4 Mai 2023
Bearbeitet: Atakan Aral Ormanci
am 4 Mai 2023
i just did the steps again and then i realised the problem is with the led.
i then tried to control a servo and it worked.
Siehe auch
Kategorien
Mehr zu Installation Setup and Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!