Page 1 of 1
Modify variables in batch mode
Posted: Wed 6 Aug 2025 02:58
by wtam
Dear Didier,
Are we allowed to modify variables in batch mode? If not, would you consider offering this?
Thanks.
Best regards,
Wai-Ming
Re: Modify variables in batch mode
Posted: Mon 25 Aug 2025 11:02
by Didier
Dear Wai-Ming,
This feature does not require any specific rights or authorization - you just need to be able to do it !
Regards,
Didier
Re: Modify variables in batch mode
Posted: Mon 8 Sep 2025 01:01
by wtam
Dear Didier,

I mean modifying variables in a way similar to element parameters as described in p.15 in the user manual.
Best regards,
Wai-Ming
Re: Modify variables in batch mode
Posted: Mon 8 Sep 2025 11:01
by Didier
Dear Wai-Ming,
Yes, that's what I was referring to. No rights are required to modify variables or element values via the batch command line.
Do you have a specific example, so that I can understand the problem?
Regards,
Didier
Re: Modify variables in batch mode
Posted: Mon 13 Oct 2025 22:05
by wtam
Dear Didier,
The following is my request.
Here is the lattice code:
variable aaa 100
drift aaa 10
Here is the batch mode code:
TraceWin_noGUI.exe project.ini aaa=50
The above do not seem to work.
Best regards,
Wai-Ming
Re: Modify variables in batch mode
Posted: Mon 13 Oct 2025 22:55
by wtam
Also, ele[n][m] does not seem to work with field map for RF E-field, i.e. flag = 100.
Re: Modify variables in batch mode
Posted: Tue 14 Oct 2025 14:02
by Didier
Dear Wai-Ming,
I added feature allowing to use VARIABLE as arguments in batch mode.
Concerning problem about ele[n][m]=xxx in FIELD_MAP element, that works on my side, could you be more specific ?
Regards,
Didier