MEX functions work fine on R2017a but not on R2021b even after successful recompilation on R2021b
Hello, here is my problem: I upgraded from Matlab R2017a to 2021b based on the recommendation for compatibility with Windows 11 (I moved to a new PC). However, I am experiencing problems with the MEX functions I use to connect to hardware (open connexion, close connexion, update status, basic functions). I recompiled the MEX functions (for which I have all the source files) under MATLAB 2021b, using both the -R2017b and -R2018a options, and they recompiled successfully. Despite this, I cannot connect to the hardware. If I use the same MEX functions on the same computer (Windows 11) with MATLAB R2017a, it works fine (not if I compiled the MEX with -R2018a option which makes sense I believe). Additionally, I am using external software from the manufacturer to control the hardware, and it works fine too (driver correctly installed). The issue only occurs with MATLAB 2021b. I compared the verbose outputs of the MEX function compilations with the -R2017b and -R2018a options and found no significant differences. I am confused as to why the MEX functions work with MATLAB R2017a but not with R2021b on the same computer, especially since the functions recompiled with R2021b show no warnings or errors. Do you have any tips or ideas to solve this issue?
Additionnaly, the MEX functions works fine with R2017a, hardware controlled correctly, while with R2021b error code from MEX functions states "device not found". Matlab configuration between installation R2017a and R2021b is the same (paths, compiler, etc.). Thanks !Hello, here is my problem: I upgraded from Matlab R2017a to 2021b based on the recommendation for compatibility with Windows 11 (I moved to a new PC). However, I am experiencing problems with the MEX functions I use to connect to hardware (open connexion, close connexion, update status, basic functions). I recompiled the MEX functions (for which I have all the source files) under MATLAB 2021b, using both the -R2017b and -R2018a options, and they recompiled successfully. Despite this, I cannot connect to the hardware. If I use the same MEX functions on the same computer (Windows 11) with MATLAB R2017a, it works fine (not if I compiled the MEX with -R2018a option which makes sense I believe). Additionally, I am using external software from the manufacturer to control the hardware, and it works fine too (driver correctly installed). The issue only occurs with MATLAB 2021b. I compared the verbose outputs of the MEX function compilations with the -R2017b and -R2018a options and found no significant differences. I am confused as to why the MEX functions work with MATLAB R2017a but not with R2021b on the same computer, especially since the functions recompiled with R2021b show no warnings or errors. Do you have any tips or ideas to solve this issue?
Additionnaly, the MEX functions works fine with R2017a, hardware controlled correctly, while with R2021b error code from MEX functions states "device not found". Matlab configuration between installation R2017a and R2021b is the same (paths, compiler, etc.). Thanks ! Hello, here is my problem: I upgraded from Matlab R2017a to 2021b based on the recommendation for compatibility with Windows 11 (I moved to a new PC). However, I am experiencing problems with the MEX functions I use to connect to hardware (open connexion, close connexion, update status, basic functions). I recompiled the MEX functions (for which I have all the source files) under MATLAB 2021b, using both the -R2017b and -R2018a options, and they recompiled successfully. Despite this, I cannot connect to the hardware. If I use the same MEX functions on the same computer (Windows 11) with MATLAB R2017a, it works fine (not if I compiled the MEX with -R2018a option which makes sense I believe). Additionally, I am using external software from the manufacturer to control the hardware, and it works fine too (driver correctly installed). The issue only occurs with MATLAB 2021b. I compared the verbose outputs of the MEX function compilations with the -R2017b and -R2018a options and found no significant differences. I am confused as to why the MEX functions work with MATLAB R2017a but not with R2021b on the same computer, especially since the functions recompiled with R2021b show no warnings or errors. Do you have any tips or ideas to solve this issue?
Additionnaly, the MEX functions works fine with R2017a, hardware controlled correctly, while with R2021b error code from MEX functions states "device not found". Matlab configuration between installation R2017a and R2021b is the same (paths, compiler, etc.). Thanks ! function, matlab function, mex MATLAB Answers — New Questions