当前位置:网站首页>Matlab: psychtoolbox installation
Matlab: psychtoolbox installation
2022-04-23 20:37:00 【Zhongai0049】
Because of the need in Matlab Installation on Psychtoolbox, I first went to find some relevant experience posts , Then install as follows .
1. download DownloadPsychtoolbox.m
Here I found Psychtoolbox The official installation website :http://psychtoolbox.org/download#download-problems
The website lists in detail the handling of the old version , Corresponding installation packages for different computers , And other corresponding installation files , You can have a detailed look at , The table of Contents section is listed here
Contents
Removing Old Versions of Psychtoolbox
Installation Instructions
Linux
Windows
Mac
Alternate download as a zip file
Installation without Download
Staying Up-to-Date
More Information
Download problems
Subversion
Downgrading
Access to Archived Versions of PTB-3
(ps: I installed window edition , However, the website only lists the installation in C The way of dish )
Download the corresponding Psychtoolbox.zip file , Then open the matlab, Run the second step
2. Run the command
Switch the path to where you saved DownloadPsychtoolbox.m Where the papers are , Type... On the command line
>>DownloadPsychtoolbox(' Fill in installation here DownloadPsychtoolbox.m The path of ')
After operation, the display is as follows :
DownloadPsychtoolbox(‘E:\matlab’)
DownloadPsychtoolbox(‘E:\matlab’,‘beta’,’’, 0)
Requested flavor is: beta
Requested location for the Psychtoolbox folder is inside: E:\matlab
Using optimal client for subversion checkout.
Good. Your privileges suffice for the requested installation into folder E:\matlab.
I will now download the latest Psychtoolbox for Windows.
Requested flavor is: beta
Target folder for installation: E:\matlab
Downloading via Matlabs integrated SVNKit: This can take multiple minutes.
There may be no output to this window to indicate progress until the download is complete.
Please be patient …
Download of SVN revision 12166 succeeded!
Now adding the new Psychtoolbox folder (and all its subfolders) to your MATLAB / OCTAVE path.
Success.
Now setting permissions to allow everyone to write to the Psychtoolbox folder. This will allow future updates by every user on this machine without requiring administrator privileges.
Success.
You can now use your newly installed ‘beta’-flavor Psychtoolbox. Enjoy!
Whenever you want to upgrade your Psychtoolbox to the latest ‘beta’ version, just run the UpdatePsychtoolbox script.
appear enjoy Indicates successful installation , The relevant contents are shown later
Running post-install routine…
Creating a startup.m file for Psychtoolbox at E:\matlab\Psychtoolbox\PsychInitialize\startup.m
PsychStartup: Environment variable GSTREAMER_1_0_ROOT_MSVC_X86_64 is undefined.
PsychStartup: Either GStreamer-1.18 MSVC or a later version is not installed at all, or if it is installed, then
PsychStartup: something is botched. Trying various common locations for the GStreamer runtime to keep going.
PsychStartup: Path to GStreamer runtime is undefined! This probably means that
PsychStartup: the 64-Bit GStreamer 1.18+ MSVC runtime from www.gstreamer.net is not installed.
PsychStartup: The Psychtoolbox Screen() function will not work at all until you fix
PsychStartup: this! Read ‘help GStreamer’ for instructions.
Matlab release 2007a or later detected. Will prepend the following
folder to your Matlab path: E:\matlab\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\ …
*** Matlab’s Static Java classpath definition file modified. You will have to restart Matlab to enable use of the new Java components. ***
Press RETURN or ENTER to confirm you read and understood the above message.
A very simple test call to the Screen() MEX file failed in AssertOpenGL, indicating
that either Screen is totally dysfunctional, or you are trying to run your script on
a system without Psychtoolbox-3 properly installed - or not installed at all.
On Windows you must install the MSVC build runtime of at least GStreamer 1.18.0
or a later version. Screen() will not work with earlier versions, without GStreamer,
or with the MinGW variants of the GStreamer runtime!
Read ‘help GStreamer’ for more info.
Screen() does not work. Read all preceeding and following output as well as “help AssertOpenGL” for more info.
A first diagnostic test would be to simply type ‘Screen’ in your Matlab/Octave console and check what its output is.
The returned error message by Matlab/Octave was:
Last Error: MEX file ‘E:\matlab\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64’ Invalid : The specified module was not found . (MATLAB:mex:ErrInvalidMEXFile)
E:\matlab\Psychtoolbox\PsychOneliners\AssertOpenGL.m,80
E:\matlab\Psychtoolbox\PsychtoolboxPostInstallRoutine.m,650
E:\matlab\DownloadPsychtoolbox.m,757
NOTE: You may want to acquire paid priority support for future issues like this.
Please type ‘PsychPaidSupportAndServices’ to learn more.
Screen() failed to work for some reason:
On Windows you must install the MSVC build runtime of at least GStreamer 1.18.0
or a later version. Screen() will not work with earlier versions, without GStreamer,
or with the MinGW variants of the GStreamer runtime!
Read ‘help GStreamer’ for more info.
Check the troubleshooting instructions on our Wiki (Download section
and FAQ section, maybe also the Bugs section).
Once you manage to fix the problem (simply type ‘AssertOpenGL’ to verify
that stuff works now), you do not need to run the installation routine again,
but can start working immediately.
Press RETURN or ENTER to confirm you read and understood the above message.
GENERAL LICENSING CONDITIONS AND TERMS OF USE:
Almost all of the material contained in the Psychtoolbox-3 distribution
is free-software and/or open-source software under a OSI (http://www.opensource.org/)
approved license. Most material is covered by the MIT license or a MIT compatible license.
A few internal libraries and components are covered by other free software
licenses which we understand to be compatible with the MIT license, e.g., the GNU LGPL
license, or BSD and Apache-2.0 licenses, or they are in the public domain.
3rd-party components which are freely useable and redistributable for non-commercial
research use, due to the authors permissions, but are not neccessarily free / open-source
software, can be found in the “PsychContributed” subfolder of the Psychtoolbox distribution,
accompanied by their respective licenses.
A few components are licensed under the GNU GPL v2 license with a special linking
exception for use with Mathworks proprietary Matlab application. A very few components,
e.g., the PsychCV() function are currently covered by the standard GPL v2 license and
cannot be used with Matlab. These are only available for use with GNU/Octave.
Please read the license text and copyright info in the Psychtoolbox file
License.txt carefully before you use or redistribute Psychtoolbox-3.
Use of Psychtoolbox-3 components implies that you have read, understood and accepted
the licensing conditions.
However, in a nutshell, if you just use Psychtoolbox for your research, our licenses
don’t restrict you in any practically relevant way. Commercial users, developers or
redistributors should make sure they understood the licenses for the components they use.
If in doubt, contact one of the Psychtoolbox developers, or the original authors of the
components you want to use, modify, merge or redistribute with other software.
Your standard Psychtoolbox distribution comes without the source code for
the binary plugins (the MEX files). If you want to access the corresponding
source code, please type “help UseTheSource” for specific download instructions.
BEGINNERS READ THIS:
If you are new to the Psychtoolbox, you might try this:
help Psychtoolbox
Psychtoolbox website, which also links to a tutorial for basic use cases:
web http://www.psychtoolbox.org -browser
Please make sure that you have a look at the detailed ECVP 2013 tutorial slides
in the PDF file PTBTutorial-ECVP2013.pdf
in the Psychtoolbox/PsychDocumentation subfolder for an overview of differences
between Psychtoolbox-2 and Psychtoolbox-3 and proper use of basic features. That
folder contains various additional helpful information for use of Psychtoolbox.
Please also familiarize yourself with the demos contained in the PsychDemos subfolder
and its subfolders. They show best practices for many common tasks and are generally
well documented.
IMPORTANT NEWS:
You can now financially contribute to Psychtoolbox sustainability, upkeep and continued
improvement by buying a community membership, which also includes some priority support
for questions regarding its use, or issues you may have with it. We also offer paid
feature development and other useful commercial services.
Please type ‘PsychPaidSupportAndServices’ to learn more.
Enjoy!
Press RETURN or ENTER to confirm you read and understood the above message.
3. test
Type on the command line Screen To test , However, the following problems arise :
>> Screen
MEX file 'E:\matlab\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64' Invalid : The specified module was not found .
After inquiry, it is due to gstreamer The installation of does not match or is not installed , In order to avoid stepping on the pit
Can now matlab Query the corresponding gstreamer edition , stay matlab On the command line, do the following :
>>help GStreame
Because I didn't install , So the following prompt appears :
The following prompts the installation website :
Here I just intercepted window The installation address of , The second website is with matlab Suitable installation website , Download and install the corresponding version .
Appears after installation :
PsychStartup: Adding path of installed GStreamer runtime to library path. [F:\gstreamer\1.0\msvc_x86_64\bin]
This shows that GStreamer Successful positioning allows you to use its functions normally .
And retest Screen:
It's a success !
Hey , I hope I can help you !!!
版权声明
本文为[Zhongai0049]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210547163137.html
边栏推荐
- [graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
- GO语言开发天天生鲜项目第三天 案例-新闻发布系统二
- Latest investigation and progress of building intelligence based on sati
- Easy to use nprogress progress bar
- Research on open source OCR engine
- [PTA] l1-006 continuity factor
- How to protect ECs from hacker attacks?
- Recommend an open source free drawing software draw IO exportable vector graph
- GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
- 內網滲透之DOS命令
猜你喜欢
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Es error: request contains unrecognized parameter [ignore_throttled]
Come in and teach you how to solve the problem of port occupation
How to use PM2 management application? Come in and see
16MySQL之DCL 中 COMMIT和ROllBACK
Numpy Index & slice & iteration
How to configure SSH public key in code cloud
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
【PTA】L1-002 打印沙漏
随机推荐
Modeling based on catiav6
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
Linux64Bit下安装MySQL5.6-不能修改root密码
How to configure SSH public key in code cloud
一. js的深拷贝和浅拷贝
Matlab analytic hierarchy process to quickly calculate the weight
The ODB model calculates the data and outputs it to excel
【PTA】整除光棍
Leetcode 994, rotten orange
LeetCode 542、01 矩阵
[PTA] l1-006 continuity factor
Common form verification
Leetcode 709, convert to lowercase
Leetcode 1337. Row K with the weakest combat effectiveness in the matrix
A login and exit component based on token
Numpy sort search count set
Vscode download speed up
How to protect ECs from hacker attacks?
Numpy Index & slice & iteration
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS