.NET and ActiveX Controls for High Speed Instrumentation, Control, Data Acquisition, Display and Automated Test
 

Page Links
Use the links below to
skip to the relevant
page areas:

Overview•
Diagnostics•
Debugging•
Language Extensions•



Associated Links
FAQs
User Manual
Online Help
Sequence Methods
Languages
Visual Basic .NET
C#
Tour
Previous
Next
Details
Start
Architecture
User Interface
Components
Configuration
Request Evaluation
Purchase
Parent Page
KineticaRT Studio

.NET Components RSS KineticaRT .NET Components News RSS
KineticaRT Studio RSS KineticaRT Studio News RSS
Wind Studio RSS Wind Studio News RSS

KINETICART STUDIO.SEQUENCES

Sequences are written in either the C# or Visual Basic .NET languages

For simple systems, data processing and logic can be implemented using Expression Channels. In some cases, however, a task requires sequential processing. KineticaRT Studio Sequences are designed to meet this requirement.

Sequences are written in either the C# or Visual Basic .NET languages. The Sequences are genuine .NET executables which have access to the full .NET facilities so anything is possible. Since they are compiled, they will execute as fast as any other .NET executable, so performance should not be a problem.

KineticaRT Studio Sequences offer the following benefits:

Use C# or Visual Basic .NET Languages
Compatible with standard editors - choose your favourite
Visual Studio compatible
Color coding and syntax checking in Visual Studio editor
Creates genuine .NET executables
Compiled for high performance
Extensions for test and control task
Automatic top and tail source code generation
Diagnostic and debug features
Multi-threaded
 OVERVIEW

KineticaRT Studio Sequences are written in either the C# or Visual Basic .NET languages. KineticaRT Studio does not provide any editors for these files; you can use Windows Notepad, your favorite text/code editor or the Visual Studio editors, which provide color coding and syntax checking.

KineticaRT Studio uses the standard Microsoft compilers for C# and Visual Basic so source code must be compatible with the Microsoft standards. You can make use of Microsoft's online help for the language specification, examples, design guides etc. (See Associated links) or the Visual Studio help if you have it.

Note that no extra licenses are required to use the compilers, even on the target (users) computers.

KineticaRT Studio compiles C# or Visual Basic Sequence source code files into .dll executable files which it then loads and executes.

The Sequences are genuine .NET executables which have access to the full .NET facilities so anything is possible. Since they are compiled, they will execute as fast as any other .NET executable, so performance should not be a problem.

The minimum code for a working Sequence is generated automatically when you create a new Sequence; you extend this code to achieve the required functionality.

The KineticaRT.Sequence base class provides a number of methods to assist in creating Sequences such as methods to access the KineticaRT Studio channels and a method to wait until a KineticaRT channel reaches a specified value. These are detailed in the KineticaRT Studio Programming Manual .


 DIAGNOSTICS AND DEBUGGING

KineticaRT Studio allows the use of the .NET System.Diagnostics.Trace.WriteLine(string) and System.Diagnostics.Debug.WriteLine(string) methods for diagnostic purposes within the Sequences to output the given strings to the message listbox in the Configurer window, when it is enabled.

For each Sequence file, it is possible to configure whether debug, trace, both or neither is shown. If neither are configured then the statements will be removed by the compiler and will then have no effect on performance.

When debugging using Visual Studio these methods will also output to the Visual Studio "Output" window. With "Debug" enabled you can to place breakpoints in the your Sequence code.


 LANGUAGE EXTENSIONS

In addition to the standard .NET facilities, some features have been added to simplify the writing of test and control sequences. For example the wait function causes a Sequence to pause until a condition is met or a timeout is reached. Other Sequences will continue to run.

C# example:

StartEngine () ;

// Allow engine to settle before starting test

Wait ("EngineStarted") ;

DesiredEngineSpeed = 800 ;

Wait ("EngineSpeed < 850") ;

// Do tests

StartIdleTest () ;



Copyright © 2003 KineticaRT Ltd. All rights reserved.