CST EXport Macro not working
Hi everyone,
I'm simulating an antenna in CST and I want to export the results of a planar near field scan to a text file in order to read it with Matlab. To do so, I've set up a field monitor( e-field (f=2;z=10) ) on the desired plane and I don't have any problem exporting the results manually once the simulation has finished (Post Processing\Exchange\Import/Export\Plot Data (ASCII). However I'm trying to do this automatically with a script running the following Macro
As you can see it gives me an error and I don't have any idea why I get this. Can somebody explain me how can I fix this? If I try to export any other result, like the e-field of the port modes it works, so I don't understand what's happening.
Thanks
It turned out to be that I was typing the name of the tree item wrong. In my case there was a missing space between (f=2;z=10) and [1] which was difficult to see in the navigation tree. So it gave me that error because that command was doing nothing and after that, the macro was trying to use ASCII Export with another item selected ("Anchor points", as you can see in my picture). Although I managed to make it work, when CST exports the fields I only get zeros in all points. I don't know if I'm setting the parameters correctly. I also tried to export it manually with different values of Dx or Nx but I get the same zeros