This method is developed by Erik Flister. It is designed to read/write TTL levels on parallel port pins under Linux, win32 (using porttalk), or matlab32 on win64 (using io32). This method includes two code files: pp.m and ppMex.c.
The way to implement this method is easy, just to insert a line of code in your matlab script. To even simplify the triggering job, I wrote a function here to share: trigger.m. So you basically only need to input the triggers you want to send into the trigger.m function. For example, trigger(1); trigger(2).
Read more and get all the source code at:
http://jianchen.info/send-triggers-via- ... pp-ppmexc/
Hope this is useful.
Send Triggers via Parallel Port in Linux - using pp.m and ppMex.c
-
- Posts: 3
- Joined: Thu May 28, 2015 2:35 am