openECA v0.1.37
Pre-release
Pre-release
ritchiecarroll
released this
12 Jul 04:11
·
2317 commits
to master
since this release
This is an update to the pre-release of version 0.1 of the openECA platform that now includes analytic templates for creating "Test Harness" applications in MATLAB. The templates can also target C#, F#, Visual Basic and IronPython all of which can be used for algorithm development.
Example MATLAB algorithm:
classdef Algorithm
methods (Static)
function UpdateSystemSettings()
NET.setStaticProperty('ECAClientFramework.SystemSettings.ConnectionString', 'server=localhost:6190; interface=0.0.0.0');
NET.setStaticProperty('ECAClientFramework.SystemSettings.FramesPerSecond', 30);
NET.setStaticProperty('ECAClientFramework.SystemSettings.LagTime', 3);
NET.setStaticProperty('ECAClientFramework.SystemSettings.LeadTime', 1);
end
function output = Execute(input) % AllInput
import ECAClientFramework.*;
output = AllOutput();
try
output.IMVMProduct = input.VIPair.Current.Magnitude * input.VIPair.Voltage.Magnitude;
output.FreqAverage = mean(input.Frequencies.Values);
MainWindow.WriteMessage(strcat('IM*VM=', num2str(output.IMVMProduct), 'Freq Avg=', num2str(output.FreqAverage)));
catch ex
% Display exceptions to the main window
MainWindow.WriteError(System.InvalidOperationException(getReport(ex)));
end
end
end
end