CST with Matlab

  1. Emre Tunca
    Emre Tunca
    hi! CST and Matlab friends.
    I tried to be bridge from Matlab codes to CST .
    and ı achieved microstrip antenna but I didn't create ports.

    LIKE THIS


    ports=invoke(mws,'Port');
    invoke(ports,'Reset') ;
    invoke(ports,'PortNumber','1');
    invoke(ports,'Label','1.port')
    invoke(ports,'NumberOfModes', '1');
    invoke(ports,'AdjustPolarization', 'False');
    invoke(ports,'PolarizationAngle', '0');
    invoke(ports,'ReferencePlaneDistance','0');
    invoke(ports,'TextSize','50');
    %invoke(ports,'Coordinates','Picks');
    invoke(ports,'Orientation','Negative');
    invoke(ports,'PortOnBound','True');
    invoke(ports,'ClipPickedPortToBound','False');
    invoke(ports,'Xrange','-10','-10');
    invoke(ports,'Yrange','-4','4');
    invoke(ports,'Zrange','0.035','2');
    % invoke(ports,'XrangeAdd','0','0' );
    % invoke(ports,'YrangeAdd','0','0');
    % invoke(ports,'ZrangeAdd','0.035','0.5');
    invoke(ports,'SingleEnded','False');
    invoke(ports,'Create');



    please help this topic..
    yours sincerely...
  2. jamesclerk
    jamesclerk
    Hi emre,


    Port=invoke(mws,'Port');
    invoke(Port, 'Reset');

    %General
    invoke(Port, 'Label','');
    invoke(Port, 'PortNumber','1');
    %invoke(Port, 'Orientation', 'Positive');
    invoke(Port, 'Orientation', 'ymin');
    invoke(Port, 'TextSize','50');

    %Position
    invoke(Port, 'Coordinates','Free'); % Free, Full, Picks
    invoke(Port, 'Xrange','-Wg/2','wg/2'); %Xmin , Xmax
    invoke(Port, 'Yrange','-Lg/2','Lg/2');
    invoke(Port, 'Zrange','0','hs+0.66');
    % invoke(Port, 'XrangeAdd','0.0','0.0');
    % invoke(Port, 'YrangeAdd','0.0','0.0');
    % invoke(Port, 'ZrangeAdd','0.0','0.0');
    invoke(Port, 'AdjustPolarization', 'False');

    %Reference Plane
    invoke(Port, 'ReferencePlaneDistance', '0.0');

    %Mode setting
    invoke(Port, 'PortOnBound', 'False');
    invoke(Port, 'ClipPickedPortToBound', 'False');
    invoke(Port, 'NumberOfModes', '1');
    invoke(Port, 'PolarizationAngle', '0.0');
    invoke(Port, 'SingleEnded', 'False');

    invoke(Port, 'Create');
Results 1 to 2 of 2