.NET

Fast, Real Time, High Speed Maths, Logic and Data Processing Components


KINETICART.LOGIC.USING LOGIC COMPONENTS

KineticaRT objects are all based on Microsoft's Windows .NET objects and may be used anywhere .NET objects may be used. The following text describes how to use them within Microsoft Visual Studio. The KineticaRT Expression object is used as an example throughout.

Installing the Controls

To install a component, run its installer (setup application) which is available on the KineticaRT web site at http://www.kineticart.co.uk.

This will install the executable code into the selected installation directory; typically "C:\Program Files\KineticaRT Ltd\KineticaRT.Logic.Expressions"

At this point, the component is unlicensed. Most of the KineticaRT Components require a design time license which you will be asked to enter the first time you attempt to build your product. If you enter an incorrect license code or no code at all, most components will not work and you will receive a license exception when you run your application.

Using Microsoft Visual Studio - Visual Basic or C#

Making the component available

The component must be added to your projects references list by right clicking on the project and selecting "Add Reference". To use the expression, the following two files must be added:

  • KineticaRT.dll
  • KineticaRT.Logic.Expressions.dll

Creating an object

Create a new object within your code and assign it to a variable.

C# example:

MyExpression = new KineticaRT.Expressions.Expression () ;

Configuring the object

Set the properties of the object. The expression only has one property to set.

C# example:

MyExpression.Text = "Volts * Watts";

Making use of the object

Before the above Expression is of any use, it needs to be able to access the "Volts" and "Watts" values. See Using KineticaRT Channels for details.