Using Matlab to send triggers via parallel port
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
0 votes
Share a link to this question
Accepted Answer
0 votes
- Run MATLAB with Administrative Privileges:
- Try running MATLAB as an administrator. Right-click on the MATLAB shortcut and select "Run as administrator." Sometimes, access to certain hardware resources like the parallel port requires elevated privileges.
- Ensure Parallel Port Driver and Compatibility:
- Make sure that the parallel port driver is correctly installed and compatible with your computer's operating system. Check for any driver updates or compatibility issues.
- Check Parallel Port Settings:
- Confirm that the parallel port settings in your BIOS are configured correctly. Parallel port modes (e.g., SPP, EPP, ECP) should match the mode expected by your code.
- Verify Parallel Port Access:
- Ensure that no other application or device is using the parallel port while MATLAB is trying to access it. Sometimes, other software or drivers may claim ownership of the port.
- Use 32-Bit MATLAB:
- If you are using a 64-bit version of MATLAB, try switching to a 32-bit version. Some parallel port interfaces may have compatibility issues with 64-bit MATLAB.
- Check Parallel Port Address:
- Verify that you are using the correct parallel port address in your code. The address may differ between computers, so make sure it matches the actual address of your parallel port.
- Check for Parallel Port Hardware Issues:
- Inspect the physical parallel port and cables for any hardware issues. Loose connections or damaged cables can prevent proper communication.
- Update Psychtoolbox:
- Ensure that you are using the latest version of the Psychophysics Toolbox. Check for updates or patches that may address compatibility issues with your hardware.
- Test with Alternative Code or Toolbox Functions:
- Try using alternative functions or code examples within the Psychophysics Toolbox for parallel port communication to see if the issue is specific to your code.
- Use Third-Party Libraries:
- If the problem persists, consider using third-party libraries like InpOut32 (for Windows) or libparport (for Linux) for parallel port communication. These libraries may offer better compatibility.
- Operating System Compatibility:
- Ensure that your operating system is compatible with parallel port access. Newer operating systems may have limitations or security restrictions on hardware access.
- Contact Technical Support:
- If none of the above solutions work, consider contacting technical support for the Psychophysics Toolbox or your hardware manufacturer. They may have specific guidance or updates related to your hardware configuration.
- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
7 Comments
More Answers (0)
Categories
Find more on Using audio files in Help Center and File Exchange
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)