send TTL via the parallel port under Linux

조회 수: 9 (최근 30일)
Leila Azizi
Leila Azizi 2023년 1월 16일
답변: Atharva 2023년 3월 29일
Hello,
I am trying to send the TTLs via the parallel port under Linux.
I tested ppdev-mex from https://github.com/widmann/ppdev-mex. Here is my code:
ThemeCopy
ppdev_mex('Open', 1);
lptwrite(1, 255)
ppdev_mex('Close', 1) ;
The problem is that I don't get an error, but nothing happens. In Python, I can send the trigger via the port:
ThemeCopy
PORT1 = '/dev/parport1'
Do you have any idee?

답변 (1개)

Atharva
Atharva 2023년 3월 29일
Hey Leila,
Here are some steps you can try to troubleshoot the issue-
  1. Check if the parallel port is detected by the system: Make sure that the parallel port is properly detected and configured by your Linux system.
  2. Check if the ppdev-mex library is installed correctly.
  3. Check if the ppdev kernel module is loaded.
  4. Check if the user has permissions to access the parallel port.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by