Summary:
I am trying to run X-plane via simulink. I have Matlab R2022a as well as signal processing, control system, instrument control system, DSP system toolboxes, xplane blockset version 1.0.0May 2020, and XPlane 11. I also installed and set path for Simulink arduino support package version 22.1.3; “downloading and installing third party tools for R2022a”
I tried using two different software packages from Matlab file exchange to use Simulink to communicate with XPlane . Both examples were from several years ago.
In both cases the error message was “Failed to load library 'etargetslib'”
The requirements listed for the second software package to run is Matlab/Simulink, embedded coder and Simulink coder.
(Additional details on these two packages is provided below.)
I also constructed a Simulink model using xplane blockset version 1.0.0 May 2020
Error message:
Failed to load library 'etargetslib' referenced by 'test/Receive X-Plane Data/Set data/Byte Pack'.
I have looked all over the internet for 'etargetslib'.
The only reference I found was from 2017, a member of the Matlab community asked on Matlab central “Where is the embedded targets host communication library in newer versions?”:
“…for some reason, the "Embedded Coder/Embedded Targets/Host Communication… disappeared"
Weeks ago, I asked the same question. No answer is yet forthcoming.
The closest reference I have found to 'etargetslib’ is the Embedded Targets library ( embeddedtargetslib ) in the Embedded Coder product.
Is this a replacement for 'etargetslib’ ?
I have no idea if purchasing still more Matlab tool boxes (embedded coder and Simulink coder) will solve this problem. I requested a trial of the Embedded Coder product from MathWorks and again have received no response.
In trying to run another Xplane blockset example, I got yet another message requiring aerospace blockset
I would really appreciate coherent guidance on what toolboxes or other software is required, as well as a working functional example of how Matlab R2022a/Simulink communicates with xplane 11.
Additional details:
- “X-Plane Library” from the Matlab file exchange, dated 2014 by Adriano Bittar as a baseline:
Bittar’s software package includes an X-Plane communication library, which he says includes Simulink blocks “Byte Unpack” and “Byte Pack” . These blocks actually seem to be in the simulink arduino support package, which I have installed.
Arduino is supported as per notes on Matlab version R2022a
In my implementation, Byte Pack seems to work fine, but it cannot find 'etargetslib':
Error message:
Failed to load library 'etargetslib' referenced by 'test/Receive X-Plane Data/Set data/Byte Pack'.
2. Simulink-Xplane10 Communication Via UDp, dated Nov 2015
I got the same error message when I tried run the example Simulink model:
“Failed to load library 'etargetslib'”
The requirements listed for this software to run is Matlab/Simulink, embedded coder and Simulink coder.