Antenna Pattern

Gugu
Gugu Altair Community Member
edited October 2020 in Community Q&A

Hi all,

 

I am using the WinProp API. Why does my program import antenna pattern error?If this information is not written, API runs normally!

image.png.0d3d0a123c6a547541d0dc5cfda38df6.png

image.png.4298f7ff2396b5ad628a7251d8b34b6e.png

My antenna pattern information has been written into the antenna settings.But in the end the calculation will go wrong.

image.png.5a4a709f52c483acd1f7f02641ac1403.png

I hope to get your help.

Thank you very much!

Tagged:

Answers

  • Gugu
    Gugu Altair Community Member
    edited July 2020

    Finally, use this command to calculate

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.36679cc29fbbe38200761ea60ebe1a3c.png

    image.png.f0a4f8dee25e3f24f603439fd8553e98.png

    Here began to make errors

  • Reiner_Hoppe
    Reiner_Hoppe Altair Community Member
    edited July 2020

    Hi,

    for providing the antenna pattern to the WinProp API functions please use the following code as shown in the API example projects, then it should work:

     

    WinProp_Pattern     WinPropPattern;

    WinProp_Structure_Init_Pattern(&WinPropPattern);

           

    /* Definition of antenna pattern. */

    WinPropPattern.Mode = PATTERN_MODE_FILE; // Load pattern from file
    WinPropPattern.Filename = API_DATA_FOLDER 'antennas/Antenna.apb'; // Pattern file (including extension)

     

    /* Then assign the defined pattern to the Tx antenna */

    WinPropAntenna.Pattern = &WinPropPattern; // Use pattern defined above