|
Telescience Resource Kit
TReK .NET Standard
5.4.0 ART
|
TReK .NET Standard (core) library supports the Telemetry, Command and Data API's from both Windows and Linux. It is built on top of unmanaged native C++.
This implementation was built using .NET 6.0 Long-Term Support (LTS), but would likely work with later versions.
The location and syntaxes are slightly different whether you are on Windows or Linux.
The Windows installation will provide the necessary Dynamic Link Library in the "extras" folder.
You can easily modify your .csproj project file to add a reference to the TReK .NET library DLL. Once added to your project, building your application will automatically copy the DLL into your compilation directory.
Example:
Check the HintPath matches your TReK version.
Because NASA.Trek.dll depends on an existing TReK installation, the DLL will attempt to find the TreK installion C++ DLLs using operating system environment variables.
For Windows, TReK "bin" directory should be in the users PATH variable after installation.
The DLLs should locate the DLLs and use the binaries there.
However, if the path is not set globally, your application can be launched with a bat file that sets the variable in advance of execution.
Linux installation requires the following RPMs.
You can easily modify your .csproj project file to add a reference to the TReK .NET library DLL. Once added to your project, building your application will automatically copy the DLL into your compilation directory.
Example:
Check the HintPath matches your TReK version.
Because NASA.Trek.dll depends on an existing TReK installation, the DLL will attempt to find the TreK installion C++ DLLs using operating system environment variables.
For Linux, TReK "DLL" directory should be assigned to the LD_LIBRARY_PATH environment variable. This can be done in script used to start your application. Placing bash script in the root of your application folder like the example below.
Sections