INTEGRATION: CWS qadev32 (1.6.6); FILE MERGED 2008/04/16 18:10:58 cn 1.6.6.1: #i87216# update lists

-o cfgmgr2.LocalSchemaSupplier
-o cfgmgr2.LocalSingleStratum
-o cfgmgr2.MultiStratumBackend
-o sysmgr1.SystemIntegration
#i46913# -o cfgmgr2.BootstrapContext
-o cfgmgr2.LayerUpdateMerger
-o cfgmgr2.LayerWriter
-o cfgmgr2.LocalDataImporter
-o cfgmgr2.LocalHierarchyBrowser
-o cfgmgr2.LocalSingleBackend
-o cfgmgr2.MergeImporter
-o cfgmgr2.OConfigurationRegistry
-o cfgmgr2.OInnerGroupInfoAccess
-o cfgmgr2.OInnerGroupUpdateAccess
-o cfgmgr2.OInnerSetInfoAccess
#i46185# -o cfgmgr2.OInnerTreeSetUpdateAccess
-o cfgmgr2.OInnerValueSetUpdateAccess
-o cfgmgr2.ORootElementGroupInfoAccess
-o cfgmgr2.ORootElementGroupUpdateAccess
-o cfgmgr2.ORootElementSetInfoAccess
#i46185# -o cfgmgr2.ORootElementTreeSetUpdateAccess
-o cfgmgr2.ORootElementValueSetUpdateAccess
-o cfgmgr2.OSetElementGroupInfoAccess
-o cfgmgr2.OSetElementGroupUpdateAccess
-o cfgmgr2.OSetElementSetInfoAccess
#i46185# -o cfgmgr2.OSetElementTreeSetUpdateAccess
#i84221# -o cfgmgr2.OSetElementValueSetUpdateAccess
-o cfgmgr2.SchemaParser
-o cfgmgr2.SingleBackendAdapter
-o cfgmgr2.ConfigurationProviderWrapper
#i87744# -o cfgmgr2.LayerParser
-o cfgmgr2.CopyImporter
-o cfgmgr2.AdministrationProvider
-o cfgmgr2.ConfigurationProvider

-o cfgmgr2.LocalSchemaSupplier
-o cfgmgr2.LocalSingleStratum
-o cfgmgr2.MultiStratumBackend
-o sysmgr1.SystemIntegration
#i46913# -o cfgmgr2.BootstrapContext
-o cfgmgr2.LayerUpdateMerger
-o cfgmgr2.LayerWriter
-o cfgmgr2.LocalDataImporter
-o cfgmgr2.LocalHierarchyBrowser
-o cfgmgr2.LocalSingleBackend
-o cfgmgr2.MergeImporter
-o cfgmgr2.OConfigurationRegistry
-o cfgmgr2.OInnerGroupInfoAccess
-o cfgmgr2.OInnerGroupUpdateAccess
-o cfgmgr2.OInnerSetInfoAccess
#i46185# -o cfgmgr2.OInnerTreeSetUpdateAccess
-o cfgmgr2.OInnerValueSetUpdateAccess
-o cfgmgr2.ORootElementGroupInfoAccess
-o cfgmgr2.ORootElementGroupUpdateAccess
-o cfgmgr2.ORootElementSetInfoAccess
#i46185# -o cfgmgr2.ORootElementTreeSetUpdateAccess
-o cfgmgr2.ORootElementValueSetUpdateAccess
-o cfgmgr2.OSetElementGroupInfoAccess
-o cfgmgr2.OSetElementGroupUpdateAccess
-o cfgmgr2.OSetElementSetInfoAccess
#i46185# -o cfgmgr2.OSetElementTreeSetUpdateAccess
#i84221# -o cfgmgr2.OSetElementValueSetUpdateAccess
-o cfgmgr2.SchemaParser
-o cfgmgr2.SingleBackendAdapter
-o cfgmgr2.ConfigurationProviderWrapper
-o cfgmgr2.LayerParser
-o cfgmgr2.CopyImporter
-o cfgmgr2.AdministrationProvider
-o cfgmgr2.ConfigurationProvider


INTEGRATION: CWS impress71 (1.5.224); FILE MERGED 2005/10/21 12:08:44 sw 1.5.224.2: #i55781# 2005/10/11 13:21:30 cn 1.5.224.1: #i55781# update lists for UNO-API-Tests

###i46734###-o sd.SdUnoSlideView
-o sd.SdXImpressDocument
-o sd.SdXCustomPresentationAccess
-o sd.SdUnoOutlineView
-o sd.SdUnoPresView
###i35935### -o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
###i35935### -o sd.AccessibleSlideView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXPresentation
-o sd.SdXShape
-o sd.SdUnoDrawView
-o sd.SdDrawPagesAccess

-o sd.SdXImpressDocument
-o sd.SdXCustomPresentationAccess
-o sd.SdUnoOutlineView
-o sd.SdUnoPresView
#i35935#-o sd.AccessibleDrawDocumentView
-o sd.AccessibleOutlineView
#i35935#-o sd.AccessibleSlideView
-o sd.SdDocLinkTargets
-o sd.SdDrawPage
-o sd.SdGenericDrawPage
-o sd.SdLayer
-o sd.SdLayerManager
-o sd.SdMasterPage
-o sd.SdMasterPagesAccess
-o sd.SdPageLinkTargets
-o sd.SdXCustomPresentation
-o sd.SdXPresentation
-o sd.SdXShape
-o sd.SdUnoDrawView
-o sd.SdDrawPagesAccess


, vergeten

, vergeten

Fss = 16000;
Speed = 1.3;

[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest2(anja).wav");
//[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest1(H-style).wav");

testsign = testsign(1,:);
t = [1:1:length(testsign)]*1/Fs;

[LD_coeff, amplitude, frequentie] = wfir('lp',80,[750/Fss, 0],'hm',[0 0]);
LD_polynoom = poly(LD_coeff, 'z', 'coeff');
LD_functie = horner(LD_polynoom, 1/%z);
LD_lineair_system = syslin('d', LD_functie);
LD_output = flts(testsign, LD_lineair_system);

plot(t, testsign)
plot(t, LD_output, 'r');

playsnd(LD_output,Speed*Fss);
wavwrite(LD_output, Speed*Fss ,'SCI/modules/sound/demos/'+'yolold.wav');

Fss = 16000;
Speed = 1.3;

[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest2(anja).wav");
//[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest1(H-style).wav");

testsign = testsign(1,:);
t = [1:1:length(testsign)]*1/Fs;

[LD_coeff, amplitude, frequentie] = wfir('lp',80,[750/Fss 0],'hm',[0 0]);
LD_polynoom = poly(LD_coeff, 'z', 'coeff');
LD_functie = horner(LD_polynoom, 1/%z);
LD_lineair_system = syslin('d', LD_functie);
LD_output = flts(testsign, LD_lineair_system);

plot(t, testsign)
plot(t, LD_output, 'r');

playsnd(LD_output,Speed*Fss);
wavwrite(LD_output, Speed*Fss ,'SCI/modules/sound/demos/'+'yolold.wav');


Do not show info about simulation mode

Do not show info about simulation mode

function continueSimulation=pre_xcos_simulate(scs_m, needcompile)
    global %microdaq;

    %microdaq.private.has_mdaqBlock = %F;
    continueSimulation = %T;
    look_for_mdaqBlocks = %T;

    for i = 1:size(scs_m.objs)
        curObj= scs_m.objs(i);

        if (typeof(curObj) == "Block" & curObj.gui == "CLKINV_f")
            messagebox("Starting simulation inside of a superblock is not possible", "Simulation problem", "error");
            continueSimulation = %F;
            return;
        end

        if (typeof(curObj) == "Block" & curObj.gui == "CLOCK_c")
            sTsamp=curObj.model.rpar.objs(2).graphics.exprs(1);
            %microdaq.private.model_tsamp=strtod(sci2exp(evstr(sTsamp)));
        end

        if (typeof(curObj) == "Block" & curObj.gui == "mdaq_setup")
            if scs_m.objs(i).model.rpar(1) == (-1) then
                scs_m.props.tf= 1.000D+12;
            else
                scs_m.props.tf=scs_m.objs(i).model.rpar(1);
            end

            // if model has microdaq block set real-time scaling to 1
            tmp = scs_m;
            perform_scan(tmp);

            if %microdaq.private.has_mdaqBlock then
                scs_m.props.tol(5) = 1;
            end

            if %microdaq.dsp_loaded == %T then
                look_for_mdaqBlocks = %F;
                if %microdaq.private.mdaq_signal_id == [] then
                    scs_m.props.tol(5) = 1;
                else
                    scs_m.props.tol(5) = 0;
                end

                [mdaq_ip_addr, result] = mdaq_get_ip();
                if result < 0 then
                    messagebox("Can''t get MicroDAQ IP address - run microdaq_setup to configure toolbox!", "Configuration error", "error");
                    continueSimulation = %F;
                    %microdaq.dsp_loaded = %F;
                    break;
                end

                if mdaqIsExtMode() == %F then
                    res = messagebox("DSP runs in standalone mode. Do you want to stop DSP execution ?", "Error", "error", ["Yes" "No"], "modal");

                    if res == 1 then
                        mdaqDSPStop()
                        %microdaq.dsp_loaded = %F;
                    end
                    continueSimulation = %F;
                    break;
                else
                    mdaqDSPStart();
                    load(TMPDIR + filesep() + "last_model");
                    [path, fname, extension] = fileparts(dspPath);
                    if dspDuration > 0 then
                        durationStr = string(dspDuration)
                    else
                        durationStr = "Inf"
                    end
                    msg = "(duration: " + durationStr + "s, rate: " + string(1/strtod(dspTsamp)) + "Hz)..."
                    disp("### Starting "+ fname + " in Ext mode " + msg);
                    continueSimulation = %T;
                end

                perform_scan(tmp);
                if %microdaq.private.has_mdaq_param_sim then
                    result = mdaqOpen();
                    if result > -1 then
                        %microdaq.private.connection_id = result;
                    else
                        message("ERROR: Unable to connect to MicroDAQ device!");
                        continueSimulation = %F;
                        %microdaq.private.connection_id = -1;
                    end
                end
            end
        end
    end

    if look_for_mdaqBlocks then
        tmp = scs_m;
        perform_scan(tmp);
        if %microdaq.private.has_mdaqBlock then
            close_last_connection();
            result = mdaqOpen();
            if result > -1 then
                %microdaq.private.connection_id = result;
            else
                message("ERROR: Unable to connect to MicroDAQ device!");
                continueSimulation = %F;
                %microdaq.private.connection_id = -1;
            end
        end
        %microdaq.private.mdaq_signal_id = [];
    end
    scs_m=resume(scs_m)
endfunction

function continueSimulation=pre_xcos_simulate(scs_m, needcompile)
    global %microdaq;

    %microdaq.private.has_mdaqBlock = %F;
    continueSimulation = %T;
    look_for_mdaqBlocks = %T;

    for i = 1:size(scs_m.objs)
        curObj= scs_m.objs(i);

        if (typeof(curObj) == "Block" & curObj.gui == "CLKINV_f")
            messagebox("Starting simulation inside of a superblock is not possible", "Simulation problem", "error");
            continueSimulation = %F;
            return;
        end

        if (typeof(curObj) == "Block" & curObj.gui == "CLOCK_c")
            sTsamp=curObj.model.rpar.objs(2).graphics.exprs(1);
            %microdaq.private.model_tsamp=strtod(sci2exp(evstr(sTsamp)));
        end

        if (typeof(curObj) == "Block" & curObj.gui == "mdaq_setup")
            if scs_m.objs(i).model.rpar(1) == (-1) then
                scs_m.props.tf= 1.000D+12;
            else
                scs_m.props.tf=scs_m.objs(i).model.rpar(1);
            end

            // if model has microdaq block set real-time scaling to 1
            tmp = scs_m;
            perform_scan(tmp);

            if %microdaq.private.has_mdaqBlock then
                scs_m.props.tol(5) = 1;
            end

            if %microdaq.dsp_loaded == %T then
                look_for_mdaqBlocks = %F;
                if %microdaq.private.mdaq_signal_id == [] then
                    scs_m.props.tol(5) = 1;
                else
                    scs_m.props.tol(5) = 0;
                end

                [mdaq_ip_addr, result] = mdaq_get_ip();
                if result < 0 then
                    messagebox("Can''t get MicroDAQ IP address - run microdaq_setup to configure toolbox!", "Configuration error", "error");
                    continueSimulation = %F;
                    %microdaq.dsp_loaded = %F;
                    break;
                end

                if mdaqIsExtMode() == %F then
                    res = messagebox("DSP runs in standalone mode. Do you want to stop DSP execution ?", "Error", "error", ["Yes" "No"], "modal");

                    if res == 1 then
                        mdaqDSPStop()
                        %microdaq.dsp_loaded = %F;
                    end
                    continueSimulation = %F;
                    break;
                else
                    mdaqDSPStart();
                    load(TMPDIR + filesep() + "last_model");
                    [path, fname, extension] = fileparts(dspPath);
                    if dspDuration > 0 then
                        durationStr = string(dspDuration)
                    else
                        durationStr = "Inf"
                    end
                    msg = "(duration: " + durationStr + "s, rate: " + string(1/strtod(dspTsamp)) + "Hz)..."
                    disp("### Starting "+ fname + " in Ext mode " + msg);
                    continueSimulation = %T;
                end

                perform_scan(tmp);
                if %microdaq.private.has_mdaq_param_sim then
                    result = mdaqOpen();
                    if result > -1 then
                        %microdaq.private.connection_id = result;
                    else
                        message("ERROR: Unable to connect to MicroDAQ device!");
                        continueSimulation = %F;
                        %microdaq.private.connection_id = -1;
                    end
                end
            end
        end
    end

    if look_for_mdaqBlocks then
        tmp = scs_m;
        perform_scan(tmp);
        if %microdaq.private.has_mdaqBlock then
            disp("### Running model in simulation mode... ")
            close_last_connection();
            result = mdaqOpen();
            if result > -1 then
                %microdaq.private.connection_id = result;
            else
                message("ERROR: Unable to connect to MicroDAQ device!");
                continueSimulation = %F;
                %microdaq.private.connection_id = -1;
            end
        end
        %microdaq.private.mdaq_signal_id = [];
    end

    scs_m=resume(scs_m)
endfunction


fix for SCHEDULING-1300

fix for SCHEDULING-1300

git-svn-id: 27916816d6cfa57849e9a885196bf7392b80e1ac@20287 28e8926c-6b08-0410-baaa-805c5e19b8d6

function [ok, msg]=TestPATask(timeout)
    mode(-1);
    funcprot(0);
    rand("seed", 1);

    if ~exists('timeout')
    if (getos() == "Windows")
        timeout = 500000;
    else
        timeout = 200000;
    end
end

    // Evaluate bias and variance for these lambdas
    //lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    //lambdas=[0.1];
    //lambdas=['a' 'a' 'a'];

    b_bias = []; b_variance = []; // Store results here

    fs = filesep();

    // Loading source file
    srcName = 'estimate.sci';
    //src = strcat([tstdir, fs, srcName]);

    tic();
    sz=size(lambdas,2);
    tsk = PATask(1,sz);
    tsk(1,1:sz).Func = 'myestimate';
    tsk(1,1:sz).Sources = srcName;

    for i=1:size(lambdas,2) // For each lambda
        lambda = lambdas(i);
        // Input file for each task
        inputfileName = 'input_'+string(i)+'.dat';
        save(inputfileName, lambda);
        //inputfile = tstdir + fs + inputfileName;
        tsk(1,i).InputFiles = inputfileName;

        tsk(1,i).Description = 'estimate('+string(lambda)+')';
        // Output file for each task
        outputfileName =  'output_'+string(i)+'.dat';
        //outputfile = tstdir+fs+outputfileName;
        tsk(1,i).OutputFiles = outputfileName;
        tsk(1,i).Params = list(inputfileName, outputfileName);
    end
    resl = PAsolve(tsk);

    val = PAwaitFor(resl,timeout);
    for i=1:length(val) // For each lambda
        load( 'output_'+ string(i)+ '.dat');
        b_bias($+1) = res(1);
        b_variance($+1) = res(2);
    end

    printf("\n Time: %f\n", toc());

    [ok,msg]=checkValuesEst(b_bias,b_variance);
    if ~ok error(msg); end

endfunction

function [ok,msg]=checkValuesEst(b_bias,b_variance)
    ok_bias = [0.0045490 0.0126257 0.0200381 0.0269282 0.0333926 0.0612466 0.1042142 0.1381027 0.1666017 0.1914026 0.2134579 0.2333707 0.2515521 0.2682983 0.2838306 0.6953426 0.8033789 0.8537557 0.8833246 0.9028600 0.9167554 0.9271556 0.9352365 0.9416984 0.9469846 0.9469846 0.9721750 0.9811320 0.9857258 0.9885205 0.9903999 0.9917505 0.9927679 0.9935619 0.9941988];
    ok_var =  [0.0953152 0.0970627 0.1008779 0.1055931 0.1106495 0.1348885 0.1702436 0.1936701 0.2103328 0.2227736 0.2323662 0.2399276 0.2459802 0.2508765 0.2548648 0.2085607 0.1525602 0.1199462 0.0987936 0.0839817 0.0730335 0.0646118 0.0579326 0.0525055 0.0480085 0.0480085 0.0258637 0.0177006 0.0134544 0.0108514 0.0090923 0.0078240 0.0068662 0.0061174 0.0055158];
    if length(b_bias) ~= length(ok_bias)
        ok = %f;
        msg = 'Wrong number of outputs in bias';
        return;
    elseif length(b_variance) ~= length(ok_var)
        ok = %f;
        msg = 'Wrong number of outputs in var';
        return;
    end
    ok=%t; msg=[];

endfunction

function resf=myestimate(filein,fileout)
    load(filein);
    [bias,var]=estimate(lambda);
    res = list(bias,var);
    save(fileout, res);
    resf=%t;
endfunction

function [ok, msg]=TestPATask(timeout)
    mode(-1);
    funcprot(0);
    rand("seed", 1);

    if ~exists('timeout')
    if (getos() == "Windows")
        timeout = 500000;
    else
        timeout = 200000;
    end
end

    // Evaluate bias and variance for these lambdas
    //lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    lambdas=[0.1:0.1:0.5 1:10 100:100:1000 1000:1000:10000];
    //lambdas=[0.1];
    //lambdas=['a' 'a' 'a'];

    b_bias = []; b_variance = []; // Store results here

    fs = filesep();

    // Loading source file
    srcName = 'estimate.sci';
    //src = strcat([tstdir, fs, srcName]);

    tic();
    sz=size(lambdas,2);
    tsk = PATask(1,sz);
    tsk(1,1:sz).Func = 'myestimate';
    tsk(1,1:sz).Sources = srcName;

    for i=1:size(lambdas,2) // For each lambda
        lambda = lambdas(i);
        // Input file for each task
        inputfileName = 'input_'+string(i)+'.dat';
        save(inputfileName, lambda);
        //inputfile = tstdir + fs + inputfileName;
        tsk(1,i).InputFiles = inputfileName;

        tsk(1,i).Description = 'estimate('+string(lambda)+')';
        // Output file for each task
        outputfileName =  'output_'+string(i)+'.dat';
        //outputfile = tstdir+fs+outputfileName;
        tsk(1,i).OutputFiles = outputfileName;
        tsk(1,i).Params = list(inputfileName, outputfileName);
    end
    resl = PAsolve(tsk);

    val = PAwaitFor(resl,timeout);
    for i=1:length(val) // For each lambda
        load( 'output'+ string(i)+ '.dat');
        b_bias($+1) = res(1);
        b_variance($+1) = res(2);
    end

    printf("\n Time: %f\n", toc());

    [ok,msg]=checkValuesEst(b_bias,b_variance);
    if ~ok error(msg); end

endfunction

function [ok,msg]=checkValuesEst(b_bias,b_variance)
    ok_bias = [0.0045490 0.0126257 0.0200381 0.0269282 0.0333926 0.0612466 0.1042142 0.1381027 0.1666017 0.1914026 0.2134579 0.2333707 0.2515521 0.2682983 0.2838306 0.6953426 0.8033789 0.8537557 0.8833246 0.9028600 0.9167554 0.9271556 0.9352365 0.9416984 0.9469846 0.9469846 0.9721750 0.9811320 0.9857258 0.9885205 0.9903999 0.9917505 0.9927679 0.9935619 0.9941988];
    ok_var =  [0.0953152 0.0970627 0.1008779 0.1055931 0.1106495 0.1348885 0.1702436 0.1936701 0.2103328 0.2227736 0.2323662 0.2399276 0.2459802 0.2508765 0.2548648 0.2085607 0.1525602 0.1199462 0.0987936 0.0839817 0.0730335 0.0646118 0.0579326 0.0525055 0.0480085 0.0480085 0.0258637 0.0177006 0.0134544 0.0108514 0.0090923 0.0078240 0.0068662 0.0061174 0.0055158];
    if length(b_bias) ~= length(ok_bias)
        ok = %f;
        msg = 'Wrong number of outputs in bias';
        return;
    elseif length(b_variance) ~= length(ok_var)
        ok = %f;
        msg = 'Wrong number of outputs in var';
        return;
    end
    ok=%t; msg=[];

endfunction

function resf=myestimate(filein,fileout)
    load(filein);
    [bias,var]=estimate(lambda);
    res = list(bias,var);
    save(fileout, res);
    resf=%t;
endfunction


INTEGRATION: CWS cfg04 (1.2.14); FILE MERGED 2004/03/26 16:15:38 sw 1.2.14.1: #116063#

-o cfgmgr2.LocalSchemaSupplier
-o cfgmgr2.LocalSingleStratum
-o cfgmgr2.MultiStratumBackend
-o sysmgr1.SystemIntegration
-o cfgmgr2.BootstrapContext
-o cfgmgr2.LayerUpdateMerger
-o cfgmgr2.LayerWriter
-o cfgmgr2.LocalDataImporter
-o cfgmgr2.LocalHierarchyBrowser
-o cfgmgr2.LocalSingleBackend
-o cfgmgr2.MergeImporter
-o cfgmgr2.OConfigurationRegistry
-o cfgmgr2.OInnerGroupInfoAccess
-o cfgmgr2.OInnerGroupUpdateAccess
-o cfgmgr2.OInnerSetInfoAccess
-o cfgmgr2.OInnerTreeSetUpdateAccess
-o cfgmgr2.OInnerValueSetUpdateAccess
-o cfgmgr2.ORootElementGroupInfoAccess
-o cfgmgr2.ORootElementGroupUpdateAccess
-o cfgmgr2.ORootElementSetInfoAccess
-o cfgmgr2.ORootElementTreeSetUpdateAccess
-o cfgmgr2.ORootElementValueSetUpdateAccess
-o cfgmgr2.OSetElementGroupInfoAccess
-o cfgmgr2.OSetElementGroupUpdateAccess
-o cfgmgr2.OSetElementSetInfoAccess
-o cfgmgr2.OSetElementTreeSetUpdateAccess
### 112549 ###-o cfgmgr2.OSetElementValueSetUpdateAccess
-o cfgmgr2.SchemaParser
-o cfgmgr2.SingleBackendAdapter
-o cfgmgr2.ConfigurationProviderWrapper
-o cfgmgr2.LayerParser
-o cfgmgr2.CopyImporter
-o cfgmgr2.AdministrationProvider
-o cfgmgr2.ConfigurationProvider


INTEGRATION: CWS qadev32 (1.8.30); FILE MERGED 2008/05/05 10:52:26 cn 1.8.30.1: #i87216# update lists

-o sw.CharacterStyle
-o sw.ConditionalParagraphStyle
-o sw.PageStyle
-o sw.ParagraphStyle
-o sw.SwAccessibleDocumentPageView
#i86751 -o sw.SwAccessibleDocumentView
-o sw.SwAccessibleEndnoteView
-o sw.SwAccessibleFooterView
-o sw.SwAccessibleFootnoteView
-o sw.SwAccessibleHeaderView
#i89022 -o sw.SwAccessiblePageView
-o sw.SwAccessibleParagraphView
-o sw.SwAccessibleTableCellView
#i85634 -o sw.SwAccessibleTableView
-o sw.SwAccessibleTextEmbeddedObject
-o sw.SwAccessibleTextFrameView
-o sw.SwAccessibleTextGraphicObject
-o sw.SwXAutoTextContainer
-o sw.SwXAutoTextEntry
-o sw.SwXAutoTextGroup
-o sw.SwXBodyText
-o sw.SwXBookmark
-o sw.SwXBookmarks
-o sw.SwXCell
-o sw.SwXCellRange
-o sw.SwXChapterNumbering
-o sw.SwXDocumentIndex
-o sw.SwXDocumentIndexMark
-o sw.SwXDocumentIndexes
-o sw.SwXDrawPage
-o sw.SwXEndnoteProperties
-o sw.SwXFieldEnumeration
-o sw.SwXFieldMaster
-o sw.SwXFootnote
-o sw.SwXFootnoteProperties
-o sw.SwXFootnoteText
-o sw.SwXFootnotes
-o sw.SwXFrames
-o sw.SwXHeadFootText
-o sw.SwXLineNumberingProperties
#i85640 -o sw.SwXMailMerge
-o sw.SwXModule
-o sw.SwXNumberingRules
-o sw.SwXParagraph
-o sw.SwXParagraphEnumeration
-o sw.SwXPrintSettings
-o sw.SwXPropertySet
-o sw.SwXPropertySetInfo
-o sw.SwXReferenceMark
-o sw.SwXReferenceMarks
-o sw.SwXShape
-o sw.SwXStyleFamilies
-o sw.SwXStyleFamily
-o sw.SwXTableCellText
-o sw.SwXTableColumns
-o sw.SwXTableRows
-o sw.SwXTextColumns
-o sw.SwXTextCursor
#i89021 -o sw.SwXTextDefaults
-o sw.SwXTextDocument
-o sw.SwXTextEmbeddedObject
-o sw.SwXTextEmbeddedObjects
-o sw.SwXTextField
-o sw.SwXTextFieldMasters
-o sw.SwXTextFieldTypes
-o sw.SwXTextFrame
-o sw.SwXTextFrameText
-o sw.SwXTextGraphicObject
-o sw.SwXTextGraphicObjects
-o sw.SwXTextPortion
-o sw.SwXTextPortionEnumeration
-o sw.SwXTextRange
-o sw.SwXTextRanges
-o sw.SwXTextSearch
-o sw.SwXTextSection
-o sw.SwXTextSections
-o sw.SwXTextTable
-o sw.SwXTextTableCursor
-o sw.SwXTextTableRow
-o sw.SwXTextTables
#i85580 -o sw.SwXTextView
-o sw.SwXTextViewCursor
-o sw.SwXViewSettings
-o sw.XMLContentExporter
#i23394 -o sw.XMLContentImporter
-o sw.XMLExporter
-o sw.XMLImporter
#i23394 -o sw.XMLMetaExporter
-o sw.XMLMetaImporter
-o sw.XMLSettingsExporter
-o sw.XMLSettingsImporter
-o sw.XMLStylesExporter
#i23394 -o sw.XMLStylesImporter
-o sw.DocumentSettings

-o sw.CharacterStyle
-o sw.ConditionalParagraphStyle
-o sw.PageStyle
-o sw.ParagraphStyle
-o sw.SwAccessibleDocumentPageView
#i86751 -o sw.SwAccessibleDocumentView
-o sw.SwAccessibleEndnoteView
-o sw.SwAccessibleFooterView
-o sw.SwAccessibleFootnoteView
-o sw.SwAccessibleHeaderView
-o sw.SwAccessiblePageView
-o sw.SwAccessibleParagraphView
-o sw.SwAccessibleTableCellView
#i85634 -o sw.SwAccessibleTableView
-o sw.SwAccessibleTextEmbeddedObject
-o sw.SwAccessibleTextFrameView
-o sw.SwAccessibleTextGraphicObject
-o sw.SwXAutoTextContainer
-o sw.SwXAutoTextEntry
-o sw.SwXAutoTextGroup
-o sw.SwXBodyText
-o sw.SwXBookmark
-o sw.SwXBookmarks
-o sw.SwXCell
-o sw.SwXCellRange
-o sw.SwXChapterNumbering
-o sw.SwXDocumentIndex
-o sw.SwXDocumentIndexMark
-o sw.SwXDocumentIndexes
-o sw.SwXDrawPage
-o sw.SwXEndnoteProperties
-o sw.SwXFieldEnumeration
-o sw.SwXFieldMaster
-o sw.SwXFootnote
-o sw.SwXFootnoteProperties
-o sw.SwXFootnoteText
-o sw.SwXFootnotes
-o sw.SwXFrames
-o sw.SwXHeadFootText
-o sw.SwXLineNumberingProperties
#i85640 -o sw.SwXMailMerge
-o sw.SwXModule
-o sw.SwXNumberingRules
-o sw.SwXParagraph
-o sw.SwXParagraphEnumeration
-o sw.SwXPrintSettings
-o sw.SwXPropertySet
-o sw.SwXPropertySetInfo
-o sw.SwXReferenceMark
-o sw.SwXReferenceMarks
-o sw.SwXShape
-o sw.SwXStyleFamilies
-o sw.SwXStyleFamily
-o sw.SwXTableCellText
-o sw.SwXTableColumns
-o sw.SwXTableRows
-o sw.SwXTextColumns
-o sw.SwXTextCursor
-o sw.SwXTextDefaults
-o sw.SwXTextDocument
-o sw.SwXTextEmbeddedObject
-o sw.SwXTextEmbeddedObjects
-o sw.SwXTextField
-o sw.SwXTextFieldMasters
-o sw.SwXTextFieldTypes
-o sw.SwXTextFrame
-o sw.SwXTextFrameText
-o sw.SwXTextGraphicObject
-o sw.SwXTextGraphicObjects
-o sw.SwXTextPortion
-o sw.SwXTextPortionEnumeration
-o sw.SwXTextRange
-o sw.SwXTextRanges
-o sw.SwXTextSearch
-o sw.SwXTextSection
-o sw.SwXTextSections
-o sw.SwXTextTable
-o sw.SwXTextTableCursor
-o sw.SwXTextTableRow
-o sw.SwXTextTables
#i85580 -o sw.SwXTextView
-o sw.SwXTextViewCursor
-o sw.SwXViewSettings
-o sw.XMLContentExporter
#i23394 -o sw.XMLContentImporter
-o sw.XMLExporter
-o sw.XMLImporter
#i23394 -o sw.XMLMetaExporter
-o sw.XMLMetaImporter
-o sw.XMLSettingsExporter
-o sw.XMLSettingsImporter
-o sw.XMLStylesExporter
#i23394 -o sw.XMLStylesImporter
-o sw.DocumentSettings


Nightcore done and filter is working

Nightcore done and filter is working

Fss = 16000;
Speed = 1.3;

[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest2(anja).wav");
//[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest1(H-style).wav");

testsign = testsign(1,:);
t = [1:1:length(testsign)]*1/Fs;

[LD_coeff, amplitude, frequentie] = wfir('bp',100,[800/Fss, 2000/Fss],'hm',[0 0]);
LD_polynoom = poly(LD_coeff, 'z', 'coeff');
LD_functie = horner(LD_polynoom, 1/%z);
LD_lineair_system = syslin('d', LD_functie);
LD_output = flts(testsign, LD_lineair_system);

plot(t, testsign)
plot(t, LD_output, 'r');

playsnd(LD_output,Speed*Fss);
wavwrite(LD_output, Speed*Fss ,'SCI/modules/sound/demos/'+'yolo.wav');

[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest2(anja).wav");
//[testsign,Fs,bits]=wavread("SCI/modules/sound/demos/filterTest1(H-style).wav");

testsign = testsign(1,:);
t = [1:1:length(testsign)]*1/Fs;

[LD_coeff, amplitude, frequentie] = wfir('bp',100,[800/16000, 2000/16000],'hm',[0 0]);
LD_polynoom = poly(LD_coeff, 'z', 'coeff');
LD_functie = horner(LD_polynoom, 1/%z);
LD_lineair_system = syslin('d', LD_functie);
LD_output = flts(testsign, LD_lineair_system);

plot(t, testsign)
plot(t, LD_output, 'r');

wavwrite(LD_output, 'SCI/modules/sound/demos/'+'yolo.wav');


Delete mdaq_upgrade function

Delete mdaq_upgrade function

function mdaq_upgrade(firmware)
    [fw fwString res] = mdaq_fw_version_url();
    if res == %F then
        mprintf("Unable to connect to MicroDAQ device!\n");
        return;
    elseif fw(1) < 2 then
        mprintf("\nAutomatic upgrade from current version (%s) is impossible.\n", fwString);
        mprintf("Please make an upgrade manually by doing the following steps:\n");
        mprintf("\t1. Download latest upgrade package from: https://github.com/microdaq\n");
        mprintf("\t2. Connect USB cable and copy package to ''upgrade'' folder on MicroDAQ storage.\n");
        mprintf("\t3. Click ''upgrade'' button on web interface. (http://%s)\n", mdaq_get_ip());
        return;
    end

    if argn(2) == 1 then
        fw_file = firmware;
        if isfile(fw_file) <> %T then
            disp("File not found");
            return;
        end
    else
        fw_ver = mdaq_fw_version();
        mprintf("Checking www.github.com/microdaq for latest MicroDAQ firmware...\n");
        latest_fw_ver = mdaq_latest_fw();
        if latest_fw_ver == [] then
            disp("Unable to connect to www.github.com/microdaq");
            return;
        end

        if find((latest_fw_ver > fw_ver) == %T) == [] then
            mprintf("MicroDAQ firmware is already the newest version (%d.%d.%d Build: %d) - no need to upgrade MicroDAQ device.\n",..
                        fw_ver(1),..
                        fw_ver(2),..
                        fw_ver(3),..
                        fw_ver(4));
            return;
        end

        mprintf("Are you sure you want to upgrade your MicroDAQ firmware?\n");
        mprintf("\tCurrent firmware: %d.%d.%d Build: %d \n\tLatest firmware: %d.%d.%d Build: %d (will be used for upgrade)\n",..
                        fw_ver(1),..
                        fw_ver(2),..
                        fw_ver(3),..
                        fw_ver(4),..
                        latest_fw_ver(1),..
                        latest_fw_ver(2),..
                        latest_fw_ver(3),..
                        latest_fw_ver(4));
        answer = input("Please answer (yes or no) : ", "string");

        if answer <> "yes" & answer <> "Yes" & answer <> "YES" then
            return;
        end

        fw_name = "mlink_" + string(latest_fw_ver(1)) + "." +..
                             string(latest_fw_ver(2)) + "." +..
                             string(latest_fw_ver(3)) + "_arm.opk";

        mprintf("Downloading firmware from www.github.com/microdaq...\n");
        try
            getURL("raw.githubusercontent.com/microdaq/MLink/upgrade_test/" + fw_name, TMPDIR + filesep() + fw_name);
        catch
            disp("Unable to connect to MicroDAQ firmware server");
            return
        end
        fw_firmware = TMPDIR + filesep() + fw_name;
    end

    mprintf("Uploading firmware on MicroDAQ...\n");
    link_id = mdaqOpen();
    if link_id < 0 then
        disp("Unable to connect to MicroDAQ device!");
        return;
    end

    result = call("sci_mlink_fw_upload",..
                link_id, 1, "i",..
                fw_firmware, 2, "c",..
            "out",..
                [1,1], 3, "i");

    if result < 0 then
        disp("Unable to upload firware file");
        return;
    end
    mdaqClose(link_id);

    mdaq_ip = mdaq_get_ip();

    mprintf("Upgrading firmware...");
    try
        getURL("http://" + mdaq_ip + "/php/upgrade.php", TMPDIR + filesep() + "upgrade_result.txt");
    catch
        disp("Unable to connect to MicroDAQ device!");
        return;
    end

    upgraded_fw_ver = mdaq_fw_version();
    if upgraded_fw_ver <> [] then
        if upgraded_fw_ver == fw_ver then
            disp("ERROR");
            return;
        end
    end

    mprintf("DONE (%d.%d.%d Build: %d)\n",..
                        upgraded_fw_ver(1),..
                        upgraded_fw_ver(2),..
                        upgraded_fw_ver(3),..
                        upgraded_fw_ver(4));

endfunction


Fix mdaqDSPStart macro

Fix mdaqDSPStart macro

function mdaqDSPStart( arg1, arg2, arg3, arg4 )
     // Check version compatibility
    [is_supp vers] = mdaq_is_working('mdaqDSPStart');
    if is_supp == %F then
        error('ERROR: ' + vers)
        return;
    end

    global %microdaq;
    result = -1;

    if argn(2) == 3 then
        dsp_firmware = pathconvert(arg1, %F);
        model_freq = arg2;
        duration = arg3;
    end

    if argn(2) == 4 then
        link_id = arg1;
        dsp_firmware = pathconvert(arg2, %F);
        model_freq = arg3;
        duration = arg4;
        if link_id < 0 then
            disp("ERROR: Invalid link ID!")
            return;
        end
    end

    if argn(2) > 4 | argn(2) < 3 then
        mprintf("Description:\n");
        mprintf("\tStarts DSP execution\n");
        mprintf("Usage:\n");
        mprintf("\tmdaqDSPStart(linkId, path, stepTime, duration);\n")
        mprintf("\tlinkId - connection id returned by mdaqOpen() (OPTIONAL)\n");
        mprintf("\tpath - XCos generated DSP application path\n");
        mprintf("\tstepTime - model step in seconds (-1 - do not overwrite model settings)\n");
        mprintf("\tduration - model execution duration in seconds (-1 - do not overwrite model settings)\n");
        return;
    end

    if argn(2) == 3 then
        link_id = mdaqOpen();
        if link_id < 0  then
            error(mdaq_error2(link_id), 10000 + abs(link_id));
        end
    end

    result = call("sci_mlink_dsp_run",..
            link_id, 1, "i",..
            dsp_firmware, 2, "c",..
            model_freq, 3, "d",...
            duration, 4, "d",...
        "out",..
            [1,1], 5, "i");

    if argn(2) == 3 then
        mdaqClose(link_id);
    end

    if result < 0  then
        error(mdaq_error2(result), 10000 + abs(result));
    end
endfunction

function mdaqDSPStart( arg1, arg2, arg3, arg4 )
     // Check version compatibility
    [is_supp vers] = mdaq_is_working('mdaqDSPStart');
    if is_supp == %F then
        error('ERROR: ' + vers)
        return;
    end

    global %microdaq;
    result = -1;

    if argn(2) == 3 then
        dsp_firmware = pathconvert(arg1, %F);
        model_freq = arg2;
        duration = arg3;
    end

    if argn(2) == 4 then
        link_id = arg1;
        dsp_firmware = pathconvert(arg2, %F);
        model_freq = arg3;
        duration = arg4;
        if link_id < 0 then
            disp("ERROR: Invalid link ID!")
            return;
        end
    end

    if argn(2) > 4 | argn(2) < 3 then
        mprintf("Description:\n");
        mprintf("\tStarts DSP execution\n");
        mprintf("Usage:\n");
        mprintf("\tmdaqDSPStart(linkId, path, stepTime, duration);\n")
        mprintf("\tlinkId - connection id returned by mdaqOpen() (OPTIONAL)\n");
        mprintf("\tpath - XCos generated DSP application path\n");
        mprintf("\tstepTime - model step in seconds (-1 - do not overwrite model settings)\n");
        mprintf("\tduration - model execution duration in seconds (-1 - do not overwrite model settings)\n");
        return;
    end

    if argn(2) == 3 then
        link_id = mdaqOpen();
        if result < 0  then
            error(mdaq_error2(result), 10000 + abs(result));
        end
    end

    result = call("sci_mlink_dsp_run",..
            link_id, 1, "i",..
            dsp_firmware, 2, "c",..
            model_freq, 3, "d",...
            duration, 4, "d",...
        "out",..
            [1,1], 5, "i");

    if argn(2) == 3 then
        mdaqClose(link_id);
    end

    if result < 0  then
        error(mdaq_error2(result), 10000 + abs(result));
    end

endfunction


INTEGRATION: CWS qadev23 (1.6.198); FILE MERGED 2005/06/13 11:59:47 cn 1.6.198.2: #i50361# fixes 2005/06/09 07:51:42 cn 1.6.198.1: #i50361# update list

-o fwl.ContentHandlerFactory
-o fwl.FilterFactory
-o fwl.FrameLoaderFactory
-o fwl.SubstituteVariables
-o fwl.TypeDetection
-o fwl.PathSettings
-o fwk.DispatchRecorder
-o fwk.DispatchRecorderSupplier
-o fwk.FooterMenuController
-o fwk.ObjectMenuController
-o fwk.StatusBarControllerFactory
-o fwk.ToolBarsMenuController
-o fwk.UICategoryDescription
-o fwk.JobExecutor
-o fwk.JobHandler
-o fwk.MailToDispatcher
-o fwk.ServiceHandler
-o fwk.SoundHandler
-o fwk.URLTransformer
-o fwk.MacrosMenuController
-o fwk.ModuleManager
-o fwk.UIElementFactoryManager
-o fwk.UICommandDescription
-o fwk.LayoutManager
-o fwk.UIConfigurationManager
-o fwk.MenuBarFactory
-o fwk.FontSizeMenuController
-o fwk.HeaderMenuController
-o fwk.ControlMenuController
-o fwk.FontMenuController
-o fwk.ModuleUIConfigurationManagerSupplier
-o fwk.ModuleUIConfigurationManager
-o fwk.PopupMenuControllerFactory
-o fwk.Frame
-o fwk.Desktop

-o fwk.DispatchRecorder
-o fwk.DispatchRecorderSupplier
-o fwk.Frame
-o fwk.JobExecutor
-o fwk.JobHandler
-o fwk.MailToDispatcher
-o fwk.ServiceHandler
-o fwk.SoundHandler
-o fwk.URLTransformer
-o fwl.ContentHandlerFactory
-o fwl.FilterFactory
-o fwl.FrameLoaderFactory
-o fwl.SubstituteVariables
-o fwl.TypeDetection
-o fwl.PathSettings
-o fwk.MacrosMenuController
-o fwk.ModuleManager
-o fwk.UIElementFactoryManager
-o fwk.UICommandDescription
-o fwk.LayoutManager
-o fwk.UIConfigurationManager
-o fwk.MenuBarFactory
-o fwk.FontSizeMenuController
-o fwk.FooterMenuController
-o fwk.FormatMenuController
-o fwk.HeaderMenuController
-o fwk.ControlMenuController
-o fwk.FontMenuController
-o fwk.ModuleUIConfigurationManagerSupplier
-o fwk.ModuleUIConfigurationManager
-o fwk.PopupMenuControllerFactory
-o fwk.Desktop