How to use path_cal in batch command

https://www.dacm-logiciels.fr/tracewin
Post Reply
Chinashliu
Competent
Competent
Posts: 90
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

How to use path_cal in batch command

Post by Chinashliu »

Dear Didier,

I didn't manage to get the right calculation path in batch mode in python or matlab.

Python:
import os
os.system('TraceW64.exe MEBT.ini hide nbr_part1=1000 path_cal=result > output.txt')

Matlab:
cmd=['TraceW64.exe MEBT.ini hide nbr_part1=1000 path_cal=result > output.txt'];
system(cmd);

The results are in the folder as the .ini file, rather than in the "result" file.

Could you please help me with that?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 869
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: How to use path_cal in batch command

Post by FranceDidier »

Dear Shliu,

TraceW64 is a light version of the code that does not include parallelization, error studies and file paths management. With it, all the files must be present with the execuble file and the results will be also in the same paht

Use TraceWin_noGUI.exe to get the exact behaviour of the graphical version.

Regards,

Didier
Chinashliu
Competent
Competent
Posts: 90
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: How to use path_cal in batch command

Post by Chinashliu »

Dear Didier,

Thank you very much! It works now.

And is there any differences between the two ways? Or what's the advantage of TraceW64 than TraceWin_noGUI? Faster for simple cases?

Kinds,
shliu
User avatar
FranceDidier
Administrator
Administrator
Posts: 869
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: How to use path_cal in batch command

Post by FranceDidier »

Dear shliu,

I gave you the differences in my previous post. It's up to you to see what you need.
In example, TraceWin itseft, uses the light verison to launch statistical error studies on remote machines or clusters because it is not parallelized and has a small size that is easier to send via the network.

Regards,

Didier
Chinashliu
Competent
Competent
Posts: 90
Joined: Fri 5 Feb 2021 04:36
Country:
China (cn)
China

Re: How to use path_cal in batch command

Post by Chinashliu »

Dear Didier,

I see. Thank you!

Kinds,
shliu
Post Reply