Package Description
$ dotnet add package UXAV.AVnet.QSys
An open-source QSys Library for use in AVnet Framework
To use this test library in your project, follow these steps:
Install the package via NuGet. You can use the following command in the Package Manager Console:
dotnet add [<PROJECT>] package UXAV.AVnet.QSys
Import the library classes in your code file(s):
// Import QSys from AVnet
using UXAV.AVnet.QSys;
using UXAV.AVnet.QSys.Components;
Use the following to control a core:
// create an instance of a core
_dsp = new QSysCore("My Core", "192.168.10.10");
// listen for the HasInitialized event trigger
_dsp.HasInitialized += (sender, args) =>
{
// core instance should now have all components listed with external script access
// get a component such as a gain block
_myGain = _dsp.GetComponent<GainComponent>("Test.Gain");
// listen for changes on the gain block
_myGain.Change += (o, eventArgs) =>
{
Logger.Log($"Gain changed to {_myGain.Gain.String}");
};
// in order for the core to emit changes you need to call auto poll on a change group
// the default internal group contains all components or just create your own change group
_dsp.ChangeGroups.Default.AutoPoll(0.5);
};
GitHub Repository: UXAV.AVnet.QSys
NuGet Package: UXAV.AVnet.QSys
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
Please ensure that your code follows the project's coding conventions and includes appropriate tests.
feature/feature-nameThank you for your interest in contributing to this project!
This project is licensed under the MIT License.