relative path in CMC setup
Posted: Tue Mar 10, 2015 12:44 pm
Hello,
I am trying to use relative paths in my CMC setup file (attached).
CMC seems to have difficulty finding the files it needs.
I am running CMC from Matlab (attached).
Matlab gets as far as searching for the GRF xml file.
Matlab output:
Running tool subject01_Run_20002_cycle1.
Error: failed to construct ExternalLoads from file ../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml. Please make sure the file exists and that it contains an ExternalLoadsobject or create a fresh one.
Exception:
Object: ERR- Could not open file
../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml.
It may not exist or you don't have permission to read it.
file= ..\..\..\..\src\OpenSim32\OpenSim\Common\Object.cpp
line= 114
>>
I believe the relative path is correct:
../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml
Can you help?
Thanks,
John
I am trying to use relative paths in my CMC setup file (attached).
CMC seems to have difficulty finding the files it needs.
I am running CMC from Matlab (attached).
Matlab gets as far as searching for the GRF xml file.
Matlab output:
Running tool subject01_Run_20002_cycle1.
Error: failed to construct ExternalLoads from file ../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml. Please make sure the file exists and that it contains an ExternalLoadsobject or create a fresh one.
Exception:
Object: ERR- Could not open file
../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml.
It may not exist or you don't have permission to read it.
file= ..\..\..\..\src\OpenSim32\OpenSim\Common\Object.cpp
line= 114
>>
I believe the relative path is correct:
../../cmc_multipleSteps_v24_Tendon_040_Vmax_15_Passive_10_2X/CMC_Results_v240_Run_20002/subject01_Run_20002_cycle1_GRF_v240.xml
Can you help?
Thanks,
John