-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Hello, I am doing my thesis and I am trying to export in .txt format a file that contains the E field information from a specific space.
tree_path = sprintf('2D/3D Results\E-Field\e-field (f=%10;z=%g) [Zmax(1)]', z_meas);
mws.invoke('SelectTreeItem', tree_path);
vba = sprintf([ ...
'With ASCIIExport\n', ...
' .Reset\n', ...
' .FileName "%s"\n', ...
' .Mode "FixedWidth"\n', ...
' .StepX "0.1"\n', ... ' Βήμα 0.1mm στον X
' .StepY "0.1"\n', ... ' Βήμα 0.1mm στον Y
' .UseSubvolume "True"\n', ...
' .SetSubvolume "-1.5", "1.5", "-1.5", "1.5", "%f", "%f"\n', ... ' <--- SLICE at Z_MEAS
' .Execute\n', ...
'End With'], outfile, z_meas, z_meas);
mws.invoke('AddToHistory', 'Export E-field', vba);
I have written this code but every time I run the my code the cst file crashes right before this part and it loose the data from the e-field and h-field. But when I don't put that part in my matlab file and I export the .txt files from the cst editor it's completely fine.
Can anyone help me ??
(I know its not directly an issue with your code but maybe you can help !!! )
Thanks in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels