Why does matlab exe fail with mapped drive path as input?

3 vues (au cours des 30 derniers jours)
David
David le 21 Mar 2025
Commenté : Walter Roberson le 21 Mar 2025
I have a matlab script with a path and filename as inputs.
The matlab script runs fine within within the matLab development environment, i.e.:
ret = get_TIA_TC_T0_darkV_R0('c:/ZMI4200/MatLab Exes/', 'ZY24130009')
or passing in a mapped drive as the 1st argument:
ret = get_TIA_TC_T0_darkV_R0('y:\', 'ZY24130009')
In both cases the matlab script executes with no issues:
The script has been compiled into an exe.
from a cmd window window with admin privileges if a call the routine:
get_TIA_TC_T0_darkv_R0 "c:/ZMI4200/MatLab Exes/" "ZY24130009"
I get the desired output.
If I instead used a mapped drive ("y") with access to the same files i.e.:
get_TIA_TC_T0_darkv_R0 "y://" "ZY24130009"
I see the following:
Output argument "success" (and possibly others) not assigned a value in the execution with "get_TIA_TC_T0_darkV_R0" function.
MATLAB:unassignedOutputs
Is there a problem with the mapped drive path length (75 chars)?
  1 commentaire
Walter Roberson
Walter Roberson le 21 Mar 2025
To check:
Did you try
get_TIA_TC_T0_darkv_R0 "y:\" "ZY24130009"

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by