Antenna Pattern
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!
My antenna pattern information has been written into the antenna settings.But in the end the calculation will go wrong.
I hope to get your help.
Thank you very much!
Answers
-
-
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
0