Why are my Image Acquisition Toolbox adaptors missing after installing Image Acquisition Toolbox Support Packages and then restarting MATLAB?
15 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2022 年 2 月 9 日
回答済み: MathWorks Support Team
2022 年 3 月 3 日
I have successfully installed the Image Acquisition Toolbox Support Package for GigE Vision Hardware and the Image Acquisition Toolbox Support Package for GenICam Interface. I am able to verify this by executing the "matlabshared.supportpkg.getInstalled" command and seeing both support packages. Everything works as expected unless MATLAB crashes, or I have to restart MATLAB. Whenever I have to reopen MATLAB it seems that my installed support packages are no longer recognized.
I checked to see that both the support packages I mentioned above are still installed by executing the "matlabshared.supportpkg.getInstalled" command in the MATLAB Command Window after restarting MATLAB, and I still see my support packages. Although, when I execute the "imaqhwinfo" command in the MATLAB Command Window, I do not see either the "gige" or "gentl" adaptors under the "InstalledAdaptors" in the resulting output. The only way that I could restore my adaptors was by uninstalling my support packages and reinstalling them, but the issue with them no longer being recognized after restarting MATLAB (for any reason) persists.
I did not notice that there was a slight difference in my MATLAB Search Path after reinstalling the support packages I mentioned above and then after restarting MATLAB. The difference I noticed after I restart MATLAB is that the following is missing from my MATLAB Search Path:
C:\ProgramData\MATLAB\SupportPackages\R2021a\toolbox\imaq\supportpackages\gentl
C:\ProgramData\MATLAB\SupportPackages\R2021a\toolbox\imaq\supportpackages\gige
C:\ProgramData\MATLAB\SupportPackages\R2021a\toolbox\imaq\supportpackages\gige\gigevisionhardwareexamples
I found the MATLAB Search Path in both cases by executing the "path" command at the MATLAB Command Window.
Do these missing file paths have anything to do with my support packages not being recognized?
採用された回答
MathWorks Support Team
2022 年 2 月 9 日
The three missing file paths are essential to utilizing the installed support packages. There may be issues with saving these file paths to your MATLAB Search Path that may be fixed by editing the "startup.m" file. "startup.m" is a file that is executed every time that you start MATLAB. This file can be found by executing the following command in the MATLAB Command Window:
>> which startup
As a workaround, please execute the following commands in the MATLAB Command Window after restarting MATLAB:
>> addpath([matlabshared.supportpkg.getSupportPackageRoot '\toolbox\imaq\supportpackages\gentl'])
>> addpath([matlabshared.supportpkg.getSupportPackageRoot '\toolbox\imaq\supportpackages\gige'])
>> addpath([matlabshared.supportpkg.getSupportPackageRoot '\toolbox\imaq\supportpackages\gige\gigevisionhardwareexamples'])
>> savepath
After executing this command, please execute the "imaqhwinfo" command in the MATLAB Command Window to see if the "gentl" and "gige" adaptors show up. To see if the changes are persistent, please restart MATLAB again and execute the "imaqhwinfo" command in the MATLAB Command Window to see if the "gentl" and "gige" adaptors continue to show up.
If the changes are not persistent, then the commands from the workaround can be added to the "startup.m" file. As stated earlier, the "startup.m" file can located by executing the "which startup" command at the MATLAB Command Window. After the commands have been added to "startup.m", they will be executed every time that MATLAB is started. This will make the workaround persist between MATLAB sessions.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で GenICam Interface についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!