Make mdaq_set_ip more robust

Make mdaq_set_ip more robust

function mdaq_set_ip(mdaq_ip)

    ip_config_file_path = mdaq_toolbox_path() + "etc"+filesep()+"mlink"+filesep()+"ip_config.txt";
    if argn(2) > 1 | argn(2) < 1 then
        mprintf("Description:\n");
        mprintf("\tSet IP address\n");
        mprintf("Usage:\n");
        mprintf("\tmdaq_set_ip(ipAddress);\n")
        mprintf("\tipAddress - MicroDAQ IP address (string)\n");
        return;
    end

    if mdaq_ip == [] | mdaq_ip == "" | regexp(mdaq_ip, "/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/") == [] then
        error("Wrong IP address")
    end

    [f,err] = mopen(ip_config_file_path,'w');
    if err == 0 then
        mputl(string(mdaq_ip),f)
        mclose(f)
        global %microdaq
        %microdaq.ip_address = mdaq_ip;
    else
        error("Unable to set IP address!")
    end
endfunction

function mdaq_set_ip(mdaq_ip)

    ip_config_file_path = mdaq_toolbox_path() + "etc"+filesep()+"mlink"+filesep()+"ip_config.txt";
    if argn(2) > 1 | argn(2) < 1 then
        mprintf("Description:\n");
        mprintf("\tSet IP address\n");
        mprintf("Usage:\n");
        mprintf("\tmdaq_set_ip(ip_address);\n")
        mprintf("\tip_address - MicroDAQ IP address (string)\n");
        return;
    end

    if mdaq_ip == [] | mdaq_ip == "" then
        disp("Wrong input argument - provide valid MicroDAQ IP address")
    end

    [f,err] = mopen(ip_config_file_path,'w');
    if err == 0 then
        mputl(string(mdaq_ip),f)
        mclose(f)
        global %microdaq
        %microdaq.ip_address = mdaq_ip;
    else
        disp("ERROR: Unable to set IP address!")
    end
endfunction


INTEGRATION: CWS unoapi3 (1.3.92); FILE MERGED 2008/02/28 21:35:44 cn 1.3.92.1: #i84995 update lists with issues

-o xmloff.Chart.XMLContentExporter
-o xmloff.Chart.XMLContentImporter
-o xmloff.Chart.XMLExporter
-o xmloff.Chart.XMLImporter
-o xmloff.Chart.XMLStylesExporter
-o xmloff.Chart.XMLStylesImporter
-o xmloff.Draw.XMLContentExporter
-o xmloff.Draw.XMLContentImporter
-o xmloff.Draw.XMLExporter
-o xmloff.Draw.XMLImporter
-o xmloff.Draw.XMLMetaExporter
-o xmloff.Draw.XMLMetaImporter
-o xmloff.Draw.XMLSettingsExporter
-o xmloff.Draw.XMLSettingsImporter
-o xmloff.Draw.XMLStylesExporter
-o xmloff.Draw.XMLStylesImporter
-o xmloff.Impress.XMLContentExporter
-o xmloff.Impress.XMLContentImporter
-o xmloff.Impress.XMLExporter
-o xmloff.Impress.XMLImporter
-o xmloff.Impress.XMLMetaExporter
-o xmloff.Impress.XMLMetaImporter
-o xmloff.Impress.XMLSettingsExporter
-o xmloff.Impress.XMLSettingsImporter
-o xmloff.Impress.XMLStylesExporter
-o xmloff.Impress.XMLStylesImporter

# -o xmloff.Chart.XMLContentExporter
# -o xmloff.Chart.XMLContentImporter
# -o xmloff.Chart.XMLExporter
# -o xmloff.Chart.XMLImporter
# -o xmloff.Chart.XMLStylesExporter
# -o xmloff.Chart.XMLStylesImporter
-o xmloff.Draw.XMLContentExporter
-o xmloff.Draw.XMLContentImporter
-o xmloff.Draw.XMLExporter
-o xmloff.Draw.XMLImporter
-o xmloff.Draw.XMLMetaExporter
-o xmloff.Draw.XMLMetaImporter
-o xmloff.Draw.XMLSettingsExporter
-o xmloff.Draw.XMLSettingsImporter
-o xmloff.Draw.XMLStylesExporter
-o xmloff.Draw.XMLStylesImporter
-o xmloff.Impress.XMLContentExporter
-o xmloff.Impress.XMLContentImporter
-o xmloff.Impress.XMLExporter
-o xmloff.Impress.XMLImporter
-o xmloff.Impress.XMLMetaExporter
-o xmloff.Impress.XMLMetaImporter
-o xmloff.Impress.XMLSettingsExporter
-o xmloff.Impress.XMLSettingsImporter
-o xmloff.Impress.XMLStylesExporter
-o xmloff.Impress.XMLStylesImporter


commentaar einde

commentaar einde

Fss = 10000;// a variable for defining they sample frequency called FFs because FS already existed
N=size(t,'*');//Aantal samples
sin_100Hz = 2*sin(2*%pi*100*t);
sin_500Hz = 1*sin(2*%pi*500*t);
sin_1000Hz = 0.5*sin(2*%pi*1000*t);
testsign = sin_100Hz + sin_500Hz + sin_1000Hz;//samengesteld signaal

Freq_FFT = abs(fft(testsign));
//abs take absolute value
//FFT() kan je een signaal decomposeren in de sinuscompenten waarmee dit signaal is samengesteld.

//f = Fss*(0:(N/2))/N;//geassocieerde frequentie vector
n=size(f,'*');//n krijg de grootte van het aantal samples in f
figure;//grijze achtergrond
plot(f,Freq_FFT(1:n));
//f is an arry with values
//Freq_FFT(1:n) voor elk element in de array een absolute gedecomposeerde waarde van het samegesteld signaal toe wijzen

[HD_coeff, amplitude, frequentie] = wfir('lp',100,[750/Fss],'hm',[0 0]);
//lp = lowpas filter; 100 = orde; 750/Fss = cut of frequentie; hm = hamming filter; window parameters
//cut of frequentie mag niet hoger zijn dan 0.5 (vanwege de nyquistfrequentie)
//frequentie = Frequency grid
//amplitude = frequency domain filter response on the grid fr
//time domain filter coefficients     niet nodig voor deze toepassing

plot(frequentie*Fss, amplitude*N, 'r');
//frequentie = Frequency grid
//N = aantal keren een frequentie voor komt * amplitude om totale hoogte van een peak te krijgen
//filter output weergeven in rood

Fss = 10000;
N=size(t,'*');//Aantal samples
sin_100Hz = 2*sin(2*%pi*100*t);
sin_500Hz = 1*sin(2*%pi*500*t);
sin_1000Hz = 0.5*sin(2*%pi*1000*t);
testsign = sin_100Hz + sin_500Hz + sin_1000Hz;//samengesteld signaal

Freq_FFT = abs(fft(testsign));
//abs take absolute value
//FFT() kan je een signaal decomposeren in de sinuscompenten waarmee dit signaal is samengesteld.

f = Fss*(0:(N/2))/N;//geassocieerde frequentie vector
n=size(f,'*');
figure;//grijze achtergrond
plot(f,Freq_FFT(1:n));//

[HD_coeff, amplitude, frequentie] = wfir('lp',100,[750/Fss],'hm',[0 0]);
//lp = lowpas filter; 100 = orde; 750/Fss = cut of frequentie; hm = hamming filter; window parameters
//frequentie = Frequency grid
//amplitude = frequency domain filter response on the grid fr
//time domain filter coefficients     niet nodig voor deze toepassing

plot(frequentie*Fss, amplitude*N, 'r');
//frequentie = Frequency grid
//
//filter output weergeven in rood


Add try/catch to SIGNAL block

Add try/catch to SIGNAL block

function block=mdaq_signal_sim(block,flag)
    select flag
    case -5 // Error
    case 0 // Derivative State Update

    case 1 // Output Update
        global %microdaq;
        if %microdaq.dsp_loaded == %T then
                if %microdaq.private.signal_buffer_index(block.ipar(1)) < 1 then
                    try
                    %microdaq.private.signal_buffer(block.ipar(1)) = mdaqDSPRead(block.ipar(1), block.insz(1), %microdaq.private.signal_buffer_size(block.ipar(1)), 5000);

                    %microdaq.private.signal_buffer_index(block.ipar(1)) = %microdaq.private.signal_buffer_size(block.ipar(1));
                    catch
                        warning("Unable to receive DSP data from MicroDAQ device");
                        return;
                    end

                end
                block.outptr(1) = %microdaq.private.signal_buffer(block.ipar(1))(%microdaq.private.signal_buffer_size(block.ipar(1)) + 1 - %microdaq.private.signal_buffer_index(block.ipar(1)),:);
                %microdaq.private.signal_buffer_index(block.ipar(1)) = %microdaq.private.signal_buffer_index(block.ipar(1)) - 1;
        else
            // Simply copy input to output
            block.outptr(1) = block.inptr(1);
        end
    case 2 // State Update
    case 3 // OutputEventTiming
    case 4 // Initialization
        global %microdaq;
        update_rate = 25;

        if %microdaq.private.model_tsamp < 1/update_rate*2 then
            %microdaq.private.signal_buffer_size(block.ipar(1)) = (1/update_rate)/%microdaq.private.model_tsamp ;
        else
            %microdaq.private.signal_buffer_size(block.ipar(1)) = 1;
        end

        %microdaq.private.signal_buffer(block.ipar(1)) = zeros(%microdaq.private.signal_buffer_size(block.ipar(1)), block.insz(1));
        %microdaq.private.signal_buffer_index(block.ipar(1)) = 0;
    case 5 // Ending
    case 6 // Re-Initialisation
    case 9 // ZeroCrossing
    else // Unknown flag
    end
endfunction

function block=mdaq_signal_sim(block,flag)
    select flag
    case -5 // Error
    case 0 // Derivative State Update

    case 1 // Output Update
        global %microdaq;
        if %microdaq.dsp_loaded == %T then
                if %microdaq.private.signal_buffer_index(block.ipar(1)) < 1 then

                    %microdaq.private.signal_buffer(block.ipar(1)) = mdaqDSPRead(block.ipar(1), block.insz(1), %microdaq.private.signal_buffer_size(block.ipar(1)), 5000);

                    %microdaq.private.signal_buffer_index(block.ipar(1)) = %microdaq.private.signal_buffer_size(block.ipar(1));
                end
                block.outptr(1) = %microdaq.private.signal_buffer(block.ipar(1))(%microdaq.private.signal_buffer_size(block.ipar(1)) + 1 - %microdaq.private.signal_buffer_index(block.ipar(1)),:);
                %microdaq.private.signal_buffer_index(block.ipar(1)) = %microdaq.private.signal_buffer_index(block.ipar(1)) - 1;
        else
            // Simply copy input to output
            block.outptr(1) = block.inptr(1);
        end
    case 2 // State Update
    case 3 // OutputEventTiming
    case 4 // Initialization
        global %microdaq;
        update_rate = 25;

        if %microdaq.private.model_tsamp < 1/update_rate*2 then
            %microdaq.private.signal_buffer_size(block.ipar(1)) = (1/update_rate)/%microdaq.private.model_tsamp ;
        else
            %microdaq.private.signal_buffer_size(block.ipar(1)) = 1;
        end

        %microdaq.private.signal_buffer(block.ipar(1)) = zeros(%microdaq.private.signal_buffer_size(block.ipar(1)), block.insz(1));
        %microdaq.private.signal_buffer_index(block.ipar(1)) = 0;

//        mprintf("Signal -> buffer_size: %d, signal_index: %d\n", %microdaq.private.signal_buffer_size(block.ipar(1)), %microdaq.private.signal_buffer_index(block.ipar(1)));
    case 5 // Ending
    case 6 // Re-Initialisation
    case 9 // ZeroCrossing
    else // Unknown flag
    end
endfunction


closes #11

closes #11

function continueSimulation=pre_xcos_simulate(scs_m, needcompile)
    global %microdaq;
    %microdaq.private.has_mdaq_block = %F;
    continueSimulation = %T;
    look_for_mdaq_blocks = %T;
    runFromMainScheme = %F;

    for i = 1:size(scs_m.objs)
        curObj= scs_m.objs(i);
        if (typeof(curObj) == "Block" & curObj.gui == "mdaq_setup")
            runFromMainScheme = %T;

            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_mdaq_block then
                scs_m.props.tol(5) = 1;
            end

            if %microdaq.dsp_loaded == %T then
                look_for_mdaq_blocks = %F;
                // if dsp is loaded set real-time scaling to 1
                scs_m.props.tol(5) = 1;

                [mdaq_ip_addr, result] = mdaq_get_ip();
                if result < 0 then
                    disp("Unable to get MicroDAQ IP address - run microdaq_setup!");
                    continueSimulation = %F;
                    %microdaq.dsp_loaded = %F;
                    break;
                end

                result = client_connect(mdaq_ip_addr, 4344);
                if result < 0 then
                    con = mdaq_open();
                    result = mlink_set_obj(con, "ext_mode", 1);
                    mdaq_close(con);
                    if result == -25 then
                        message("ERROR: Unable to connect - your are running model in Standalone mode!");
                    else
                        message("ERROR: Unable to connect to MicroDAQ - reboot device!")
                        %microdaq.dsp_loaded = %F;
                    end
                    continueSimulation = %F;
                    break;
                end
                disp('### Starting model in Ext mode...');

                perform_scan(tmp);
                if %microdaq.private.has_mdaq_param_sim then
                    result = mdaq_open();
                    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 runFromMainScheme == %F then
        disp("Please start model from root diagram (the one which contains mdaq_setup block).");
        continueSimulation = %F;
        return;
    end

    if look_for_mdaq_blocks then
        tmp = scs_m;
        perform_scan(tmp);
        if %microdaq.private.has_mdaq_block then
            disp("### Running model in simulation mode... ")
            result = mdaq_open();
            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 = 0;
    end

    scs_m=resume(scs_m)
endfunction

function continueSimulation=pre_xcos_simulate(scs_m, needcompile)
    global %microdaq;
    %microdaq.private.has_mdaq_block = %F;
    continueSimulation = %T;
    look_for_mdaq_blocks = %T;

    for i = 1:size(scs_m.objs)
        curObj= scs_m.objs(i);
        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_mdaq_block then
                scs_m.props.tol(5) = 1;
            end

            if %microdaq.dsp_loaded == %T then
                look_for_mdaq_blocks = %F;
                // if dsp is loaded set real-time scaling to 1
                scs_m.props.tol(5) = 1;

                [mdaq_ip_addr, result] = mdaq_get_ip();
                if result < 0 then
                    disp("Unable to get MicroDAQ IP address - run microdaq_setup!");
                    continueSimulation = %F;
                    %microdaq.dsp_loaded = %F;
                    break;
                end

                result = client_connect(mdaq_ip_addr, 4344);
                if result < 0 then
                    con = mdaq_open();
                    result = mlink_set_obj(con, "ext_mode", 1);
                    mdaq_close(con);
                    if result == -25 then
                        message("ERROR: Unable to connect - your are running model in Standalone mode!");
                    else
                        message("ERROR: Unable to connect to MicroDAQ - reboot device!")
                        %microdaq.dsp_loaded = %F;
                    end
                    continueSimulation = %F;
                    break;
                end
                disp('### Starting model in Ext mode...');

                perform_scan(tmp);
                if %microdaq.private.has_mdaq_param_sim then
                    result = mdaq_open();
                    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_mdaq_blocks then
        tmp = scs_m;
        perform_scan(tmp);
        if %microdaq.private.has_mdaq_block then
            disp("### Running model in simulation mode... ")
            result = mdaq_open();
            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 = 0;
    end

    scs_m=resume(scs_m)
endfunction


INTEGRATION: CWS fwk21 (1.3.392); FILE MERGED 2005/09/02 15:43:27 cn 1.3.392.1: #i54165# update for UNO-API-Tests

-o svtools.AccessibleIconChoiceCtrlEntry
-o svtools.AccessibleTabBarPage
-o svtools.AccessibleBrowseBox
-o svtools.AccessibleBrowseBoxHeaderBar
-o svtools.AccessibleBrowseBoxHeaderCell
-o svtools.AccessibleBrowseBoxTable
-o svtools.AccessibleBrowseBoxTableCell
-o svtools.AccessibleIconChoiceCtrl
-o svtools.AccessibleTabBar
-o svtools.AccessibleTabBarPageList
-o svtools.AccessibleTreeListBox
-o svtools.AccessibleTreeListBoxEntry

-o svtools.AccessibleBrowseBox
-o svtools.AccessibleBrowseBoxHeaderBar
-o svtools.AccessibleBrowseBoxHeaderCell
-o svtools.AccessibleBrowseBoxTable
-o svtools.AccessibleBrowseBoxTableCell
-o svtools.AccessibleIconChoiceCtrl
-o svtools.AccessibleIconChoiceCtrlEntry
-o svtools.AccessibleTabBar
#-o svtools.AccessibleTabBarPage
#-o svtools.AccessibleTabBarPageList
-o svtools.AccessibleTreeListBox
-o svtools.AccessibleTreeListBoxEntry


Correct range description in adc_info

Correct range description in adc_info


mdaq_error - bugfix

mdaq_error - bugfix

function error_desc = mdaq_error(error_id)
    [error_desc] = mdaq_error2(error_id);

     if error_id == -1 then
         error(error_desc);
     else
         disp(error_desc);
     end
endfunction

function error_desc = mdaq_error(error_id)
    result = 0;
    [error_desc, result] = mdaq_error2(error_id);

     if error_id == -1 then
         error(error_desc);
     else
         disp(error_desc);
     end
endfunction


CONVERTED: new file pblib_get_serialized_size.sci

exec pblib_encoded_field_size.sci
exec pblib_encoded_tag_size.sci

function [msg_size] = pblib_get_serialized_size(msg)
//pblib_get_serialized_size
//   function [msg_size] = pblib_get_serialized_size(msg)
//
//   Estimates the size a message will take when serialized.
//
//   Will go through a message and estimate serialized sizes of valid fields.
//   Estimates generally include tag size plus encoded field size.
//
//   See also pblib_generic_serialize_to_string, pblib_write_wire_type

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  LABEL_REPEATED = 3;
  WIRE_TYPE_LENGTH_DELIMITED = 2;
  msg_size = 0;
  descriptor = msg.descriptor_function();
  for i=1:length(descriptor.fields)
    field = descriptor.fields(i);
    if (get(msg.has_field, field.name) == 0 || isempty(msg.(field.name)))
      continue;
    end

    if (field.options.packed)
      tag_length = pblib_encoded_tag_size(...
          field.number, WIRE_TYPE_LENGTH_DELIMITED);
    else
      tag_length = pblib_encoded_tag_size(...
          field.number, field.wire_type);
    end

    // need this extra if to make sure repeated strings/bytes are done correctly
    if (field.label == LABEL_REPEATED)
      msg_size = msg_size + tag_length + ...
          (1 - field.options.packed) * ...
          (length(msg.(field.name)) - 1) * tag_length;
    else
      msg_size = msg_size + tag_length;
    end
    msg_size = msg_size + pblib_encoded_field_size(msg.(field.name), field);
  end

  // Now add the space required by the stored unknown fields
  for i=1:length(msg.unknown_fields)
    msg_size = msg_size + length(msg.unknown_fields(i).raw_data);
  end

endfunction

error: pathspec 'protobuflib/pblib_get_serialized_size.sci' did not match any file(s) known to git


renommer

renommer

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cycourtot/Projet-SciLab-Unix.git/'


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 14:53:50 sw 1.1.2.1: #114449#

error: pathspec 'xmloff/qa/unoapi/xmloff.sce' did not match any file(s) known to git


Initial commit of mdaq_log function

Initial commit of mdaq_log function

function mdaq_log()
    mdaq_ip = mdaq_get_ip();
    try
        getURL(mdaq_ip + "/log/mlink-server.log", TMPDIR + filesep());
    catch

    end
    try
        disp(mgetl(TMPDIR + filesep() + "mlink-server.log"))
    catch
        disp("Error: unable to get log file!")
    end

endfunction

error: pathspec 'microdaq/macros/mdaq_log.sci' did not match any file(s) known to git


CONVERTED: new file pblib_write_tag.sci

CONVERTED: new file pblib_write_tag.sci

exec pblib_write_varint.sci
function [tag] = pblib_write_tag(number, wire_type)
//pblib_write_tag
//   function [tag] = pblib_write_tag(number, wire_type)

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  value_to_encode = number * 8 + wire_type;
  tag = pblib_write_varint(value_to_encode);

endfunction

error: pathspec 'protobuflib/pblib_write_tag.sci' did not match any file(s) known to git


CONVERTED: new file pblib_encoded_tag_size.sci

exec pblib_encoded_varint_size.sci
function [len] = pblib_encoded_tag_size(number, wire_type)
//pblib_encoded_tag_size
//  [len] = pblib_encoded_tag_size(number, wire_type)

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  value_to_encode = number * 8 + wire_type;
  len = pblib_encoded_varint_size(value_to_encode);

error: pathspec 'protobuflib/pblib_encoded_tag_size.sci' did not match any file(s) known to git


CONVERTED: new file pblib_generic_serialize_to_string.sci

exec pblib_write_tag.sci
exec pblib_get_serialized_size.sci
exec pblib_encoded_field_size.sci
exec pblib_write_wire_type.sci

function [buffer] = pblib_generic_serialize_to_string(msg)
//pblib_generic_serialize_to_string
//   function [buffer] = pblib_generic_serialize_to_string(msg)

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  // enum values we use
  WIRE_TYPE_LENGTH_DELIMITED = 2;
  LABEL_REPEATED = 3;

  descriptor = msg.descriptor_function();
  buffer = zeros([1 pblib_get_serialized_size(msg)], 'uint8');
  num_written = 0;
  for i=1:length(descriptor.fields)
    field = descriptor.fields(i);
    if (get(msg.has_field, field.name) == 0)
      continue;
    end
    if (field.label == LABEL_REPEATED)
      if (field.options.packed)
        // two is the length delimited wire_type
        tag = pblib_write_tag(field.number, WIRE_TYPE_LENGTH_DELIMITED);
        buffer(num_written + 1 : num_written + length(tag)) = tag;
        num_written = num_written + length(tag);

        wire_values = write_packed_field(msg.(field.name), field);
        wire_value = pblib_write_wire_type(wire_values, WIRE_TYPE_LENGTH_DELIMITED);
        buffer(num_written + 1 : num_written + length(wire_value)) = wire_value;
        num_written = num_written + length(wire_value);
      else
        tag = pblib_write_tag(field.number, field.wire_type);
        for j=1:length(msg.(field.name))
          buffer(num_written + 1 : num_written + length(tag)) = tag;
          num_written = num_written + length(tag);
          if (field.matlab_type == 7 || field.matlab_type == 8) // 'string' or 'bytes'
            value = msg.(field.name){j};
          else
            value = msg.(field.name)(j);
          end
          wire_values = pblib_write_wire_type(field.write_function(value), field.wire_type);
          buffer(num_written + 1 : num_written + length(wire_values)) = wire_values;
          num_written = num_written + length(wire_values);
        end
      end
    else
      tag = pblib_write_tag(field.number, field.wire_type);
      buffer(num_written + 1 : num_written + length(tag)) = tag;
      num_written = num_written + length(tag);

      value = msg.(field.name);
      wire_value = pblib_write_wire_type(field.write_function(value), field.wire_type);
      buffer(num_written + 1 : num_written + length(wire_value)) = wire_value;
      num_written = num_written + length(wire_value);
    end
  end
  // now write the unknown fields
  for i=1:length(msg.unknown_fields)
    buffer(num_read + 1 : num_read + length(msg.unknown_fields(i).raw_data)) = ...
        msg.unknown_fields(i).raw_data;
    num_read = num_read + length(msg.unknown_fields(i).raw_data);
  end
  if (num_written ~= length(buffer))
    error('proto:pblib_generic_serialize_to_string', ...
          ['num_written, ' string(num_written) ...
           ', is different from precalculated length ' ...
           string(length(buffer))]);
  end

endfunction

function [wire_values] = write_packed_field(values, field)
  wire_values = zeros([1 pblib_encoded_field_size(values, field)], 'uint8');
  values = field.write_function(values);
  bytes_written = 0;
  for i=1:length(values)
    encoded_value = pblib_write_wire_type(values(i), field.wire_type);
    wire_values(bytes_written + 1 : bytes_written + length(encoded_value)) = encoded_value;
    bytes_written = bytes_written + length(encoded_value);
  end
  wire_values = wire_values(1 : bytes_written);
endfunction

error: pathspec 'protobuflib/pblib_generic_serialize_to_string.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/16 15:01:51 sw 1.1.2.1: #114449#

### 114242 ### -o sc.ScPageObj
### 111147 ### -o sc.AccessibleEditableTextPara_PreviewNote
-o sc.ScCellCursorObj
-o sc.ScCellRangeObj
-o sc.ScCellRangesObj
-o sc.ScTableSheetObj
-o sc.AccessibleEditableTextPara_HeaderFooter
-o sc.AccessibleEditableTextPara_PreviewCell
-o sc.ScAccessibleCell
-o sc.ScAccessibleDocumentPagePreview
-o sc.ScAccessiblePageHeader
-o sc.ScAccessiblePageHeaderArea
-o sc.ScAccessiblePreviewCell
-o sc.ScAccessiblePreviewHeaderCell
-o sc.ScAccessiblePreviewTable
-o sc.ScAnnotationObj
-o sc.ScAnnotationsObj
-o sc.ScAreaLinkObj
-o sc.ScAreaLinksObj
-o sc.ScAutoFormatFieldObj
-o sc.ScAutoFormatObj
-o sc.ScAutoFormatsObj
-o sc.ScCellFieldObj
-o sc.ScCellFieldsObj
-o sc.ScCellFormatsEnumeration
-o sc.ScCellFormatsObj
-o sc.ScCellObj
-o sc.ScCellSearchObj
-o sc.ScCellTextCursor
-o sc.ScCellsEnumeration
-o sc.ScCellsObj
-o sc.ScChartObj
-o sc.ScChartsObj
-o sc.ScConsolidationDescriptor
-o sc.ScDDELinkObj
-o sc.ScDDELinksObj
-o sc.ScDataPilotFieldObj
-o sc.ScDataPilotFieldsObj
-o sc.ScDataPilotTableObj
-o sc.ScDataPilotTablesObj
-o sc.ScDatabaseRangeObj
-o sc.ScDatabaseRangesObj
-o sc.ScDrawPageObj
-o sc.ScDrawPagesObj
-o sc.ScFilterDescriptorBase
-o sc.ScFunctionListObj
-o sc.ScHeaderFieldObj
-o sc.ScHeaderFieldsObj
-o sc.ScHeaderFooterContentObj
-o sc.ScHeaderFooterTextCursor
-o sc.ScHeaderFooterTextObj
-o sc.ScIndexEnumeration_CellAnnotationsEnumeration
-o sc.ScIndexEnumeration_CellAreaLinksEnumeration
-o sc.ScIndexEnumeration_DDELinksEnumeration
-o sc.ScIndexEnumeration_DataPilotFieldsEnumeration
-o sc.ScIndexEnumeration_DataPilotTablesEnumeration
-o sc.ScIndexEnumeration_DatabaseRangesEnumeration
-o sc.ScIndexEnumeration_FunctionDescriptionEnumeration
-o sc.ScIndexEnumeration_LabelRangesEnumeration
-o sc.ScIndexEnumeration_NamedRangesEnumeration
-o sc.ScIndexEnumeration_ScenariosEnumeration
-o sc.ScIndexEnumeration_SheetCellRangesEnumeration
-o sc.ScIndexEnumeration_SheetLinksEnumeration
-o sc.ScIndexEnumeration_SpreadsheetViewPanesEnumeration
-o sc.ScIndexEnumeration_SpreadsheetsEnumeration
-o sc.ScIndexEnumeration_SubTotalFieldsEnumeration
-o sc.ScIndexEnumeration_TableAutoFormatEnumeration
-o sc.ScIndexEnumeration_TableChartsEnumeration
-o sc.ScIndexEnumeration_TableColumnsEnumeration
-o sc.ScIndexEnumeration_TableConditionalEntryEnumeration
-o sc.ScIndexEnumeration_TableRowsEnumeration
-o sc.ScIndexEnumeration_TextFieldEnumeration
-o sc.ScLabelRangeObj
-o sc.ScLabelRangesObj
-o sc.ScModelObj
-o sc.ScNamedRangeObj
-o sc.ScNamedRangesObj
-o sc.ScRecentFunctionsObj
-o sc.ScScenariosObj
-o sc.ScSheetLinkObj
-o sc.ScSheetLinksObj
-o sc.ScSpreadsheetSettings
-o sc.ScSpreadsheetSettingsObj
-o sc.ScStyleFamiliesObj
-o sc.ScStyleFamilyObj
-o sc.ScStyleObj
-o sc.ScSubTotalDescriptorBase
-o sc.ScSubTotalFieldObj
-o sc.ScTabViewObj
-o sc.ScTableColumnObj
-o sc.ScTableColumnsObj
-o sc.ScTableConditionalEntry
-o sc.ScTableConditionalFormat
-o sc.ScTableRowObj
-o sc.ScTableRowsObj
-o sc.ScTableSheetsObj
-o sc.ScTableValidationObj
-o sc.ScViewPaneObj
-o sc.XMLContentExporter
-o sc.XMLContentImporter
-o sc.XMLExporter
-o sc.XMLImporter
-o sc.XMLMetaExporter
-o sc.XMLMetaImporter
-o sc.XMLSettingsExporter
-o sc.XMLSettingsImporter
-o sc.XMLStylesExporter
-o sc.XMLStylesImporter
-o sc.ScAccessibleSpreadsheet
-o sc.ScAccessibleCsvGrid
-o sc.ScAccessibleCsvCell
-o sc.ScAccessibleCsvRuler
-o sc.ScAccessibleDocument

error: pathspec 'sc/qa/unoapi/sc.sce' did not match any file(s) known to git


INTEGRATION: CWS dba25 (1.1.2); FILE ADDED 2005/03/02 10:14:50 oj 1.1.2.1: #i43849# new test for the rowset

-o complex.dbaccess.SingleSelectQueryComposer
-o complex.dbaccess.RowSet

error: pathspec 'dbaccess/qa/complex/dbaccess/dbaccess.sce' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 15:31:55 sw 1.1.2.1: #114449#

-o dbaccess.ConnectionLineAccessibility
-o dbaccess.DBContentLoader
-o dbaccess.OCommandDefinition
-o dbaccess.ODatabaseContext
-o dbaccess.ODatabaseSource
-o dbaccess.ODatasourceAdministrationDialog
-o dbaccess.ODatasourceBrowser
-o dbaccess.OInteractionHandler
-o dbaccess.OQueryDesign
-o dbaccess.ORowSet
-o dbaccess.OSQLMessageDialog
-o dbaccess.SbaXGridControl
-o dbaccess.TableWindowAccessibility
-o dbaccess.JoinViewAccessibility

error: pathspec 'dbaccess/qa/unoapi/dbaccess.sce' did not match any file(s) known to git


Create Cramer.sci

Create Cramer.sci

function [ X ] = cramer(A, B)

    [s u] = size(A);

    if s~= u
      error('A debe ser una matriz cuadratica');
    elseif s ~= size(B)(1)
      error('A y B no concuerdan en size');
    end

    detS = det(A);
    X = zeros(s(1), 1);
    for i = 1 : s(1)
        t = A(:, i);
        A(:, i) = B;
        R(i) = det(A) / detS;
        A(:, i) = t;
    end
endfunction

A = [3., -0.1, -0.2; 0.1, 7., -0.3; 0.3, -0.2, 10.]
B = [7.85; -19.3; 71.4]

X = cramer(A, B)

error: pathspec 'Cramer/Cramer.sci' did not match any file(s) known to git


pour_A.sce


Move animation function to a new file

Move animation function to a new file

function drawStickFigure()
    scf(1);clf();

    data_tmp = [toes.x(1),toes.y(1);ankle.x(1),ankle.y(1);knee.x(1),knee.y(1);hip.x(1),hip.y(1);neck.x(1),neck.y(1);shoulder.x(1),shoulder.y(1);elbow.x(1),elbow.y(1);hand.x(1),hand.y(1)];
    plot(data_tmp(:,1), data_tmp(:,2))
    e = gce();
    h_stick = e.children;

    a = gca();
    a.data_bounds=[0,0;2,2];

    for i = 1 : size(toes.x,1)
        drawlater
        data_tmp = [toes.x(i),toes.y(i);ankle.x(i),ankle.y(i);knee.x(i),knee.y(i);hip.x(i),hip.y(i);neck.x(i),neck.y(i);shoulder.x(i),shoulder.y(i);elbow.x(i),elbow.y(i);hand.x(i),hand.y(i)];
        h_stick.data = data_tmp;
        sleep(100);
        drawnow
    end
endfunction

error: pathspec 'src/animations.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 16:26:35 sw 1.1.2.1: #114449#

-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

error: pathspec 'configmgr/qa/unoapi/cfgmgr2.sce' did not match any file(s) known to git


Build DSP app from XCos diagram function

function mdaq_dsp_build(diagram_file)

    // load Xcos libs if needed
    if isdef("c_pass1") == %F then
        loadXcosLibs();
    end

    if isfile(diagram_file) == %F then
        disp("ERROR: diagram file not found!");
        return;
    end

    importXcosDiagram(diagram_file);

    mdaq_code_gen(%F);
endfunction

error: pathspec 'microdaq/macros/mdaq_dsp_build.sci' did not match any file(s) known to git


weird bug in the weightedaverage function. fixed it.

function [weightedMovingMean] = WeightedMovingMean2 (values, weightA, weightB, weightC)
    weightedMovingMean(1) = values(1);
    endofdata = size(values,1)
    disp(endofdata)

    for i = 2 : endofdata - 1
        weightedMovingMean(i) = (values(i-1) * weightA + values(i) * weightB + values(i+1) * weightC) / (weightA + weightB + weightC);
    end

    weightedMovingMean(endofdata) = values(endofdata);
    weightedMovingMean = weightedMovingMean.'
endfunction

a = [0.8, 0.9, 1.01, 1.01, 1.01, 1.01, 1.05, 1.15, 1.19, 1.11, 1.15, 1.05]

b = WeightedMovingMean2 (a(:), 0.5, 1, 0.5)

disp("a: ")
disp(a)

// b = b.'

disp("b: ")
disp(b)

plot(a)
plot(b)

error: pathspec 'src/test.sce' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 09:45:17 sw 1.1.2.1: #114449#

-o sfx.AppDispatchProvider
-o sfx.DocumentTemplates
-o sfx.FrameLoader
-o sfx.SfxMacroLoader
-o sfx.StandaloneDocumentInfo

error: pathspec 'sfx2/qa/unoapi/sfx.sce' did not match any file(s) known to git


fix for SCHEDULING-323

fix for SCHEDULING-323

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

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/laurianed/scheduling.git/'


fix for SCHEDULING-1305

fix for SCHEDULING-1305

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


add a small scilab computing script

add a small scilab computing script

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@3610 28e8926c-6b08-0410-baaa-805c5e19b8d6

M=[1,2,3; 1,2,3];
for i=1:n,
  for j=1:n,
    if i==j then
      x(i,j)=2;
    else x(i,j)=4;
    end;
  end;
end;

y=tril(x);

error: pathspec 'src/org/objectweb/proactive/ext/scilab/test/test.sce' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 08:39:47 sw 1.1.2.1: #114449#

-o lng.DicList
-o lng.LinguProps
-o lng.LngSvcMgr

error: pathspec 'linguistic/qa/unoapi/lng.sce' did not match any file(s) known to git


INTEGRATION: CWS qadev14 (1.1.2); FILE ADDED 2003/12/01 10:46:11 sw 1.1.2.1: #114167#

-o fwk.DispatchRecorder
-o fwk.DispatchRecorderSupplier
-o fwk.DocumentProperties
-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.Desktop

error: pathspec 'framework/qa/unoapi/framework.sce' did not match any file(s) known to git


racine_et_carre

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cycourtot/Projet-SciLab-Unix.git/'


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 09:09:50 sw 1.1.2.1: #114449#

-o sm.SmEditAccessible
-o sm.SmGraphicAccessible
-o sm.SmModel
-o sm.XMLExporter
-o sm.XMLImporter
-o sm.XMLMetaExporter
-o sm.XMLMetaImporter
-o sm.XMLSettingsExporter
-o sm.XMLSettingsImporter

error: pathspec 'starmath/qa/unoapi/sm.sce' did not match any file(s) known to git


CONVERTED: new file pblib_encoded_field_size.sci

exec pblib_get_serialized_size.sci
function [len] = pblib_encoded_field_size(field_value, field_descriptor)
//pblib_encoded_field_size
//   [len] = pblib_encoded_field_size(field_value, field_descriptor)
//
//   Returns the amount of space an encoded field with this value will take up,
//   NOT INCLUDING the tag. If a field is a repeated field, you should pass the
//   whole field to this function, not each individual element.
//
//   This function assumes this field is not empty and probably will not work
//   correctly if it is as those cases haven't been tested.

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  LABEL_REPEATED = 3;
  select (field_descriptor.wire_type)
    case 0 then // 'varint'
      len = 0;
      for j=1:length(field_value)
        len = len + pblib_encoded_varint_size(...
            field_descriptor.write_function(field_value(j)));
      end
    case 1 then // '64bit'
      len = length(field_value) * 8;
    case 2 then // 'length_delimited'
      switch (field_descriptor.matlab_type)
        case {7, 8} then // 'string' or 'bytes'
          if (field_descriptor.label == LABEL_REPEATED)
            len = 0;
            for j=1:length(field_value)
              temp_len = length(field_value{j});
              len = len + ...
                  pblib_encoded_varint_size(temp_len) + ...
                  temp_len;
            end
          else
            temp_len = length(field_value);
            len = pblib_encoded_varint_size(temp_len) + ...
                temp_len;
          end
        case 9 then // 'message'
          len = 0;
          for j=1:length(field_value)
            temp_len = pblib_get_serialized_size(field_value(j));
            len = len + ...
                pblib_encoded_varint_size(temp_len) + ...
                temp_len;
          end
        otherwise
          error('proto:pblib_get_serialized_size', ...
                ['Unhandled case statement: wire_type ' ...
                 num2str(field_descriptor.wire_type)]);
      end
    case 3 then // 'start_group'
      error('proto:pblib_get_serialized_size', 'start_group unsupported in matlab');
    case 4 then // 'end_group'
      error('proto:pblib_get_serialized_size', 'end_group unsupported in matlab');
    case 5 then // '32bit'
      len = length(field_value) * 4;
  end

endfunction

error: pathspec 'protobuflib/pblib_encoded_field_size.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 12:35:20 sw 1.1.2.1: #114449#

-o toolkit.TabController
-o toolkit.TabControllerModel
-o toolkit.UnoControlButton
-o toolkit.UnoControlButtonModel
-o toolkit.UnoControlCheckBox
-o toolkit.UnoControlCheckBoxModel
-o toolkit.UnoControlComboBox
-o toolkit.UnoControlComboBoxModel
-o toolkit.UnoControlContainer
-o toolkit.UnoControlContainerModel
-o toolkit.UnoControlCurrencyField
-o toolkit.UnoControlCurrencyFieldModel
-o toolkit.UnoControlDateField
-o toolkit.UnoControlDateFieldModel
-o toolkit.UnoControlDialogModel
-o toolkit.UnoControlEdit
-o toolkit.UnoControlEditModel
-o toolkit.UnoControlFileControl
-o toolkit.UnoControlFileControlModel
-o toolkit.UnoControlFixedLineModel
-o toolkit.UnoControlFixedText
-o toolkit.UnoControlFixedTextModel
-o toolkit.UnoControlFormattedField
-o toolkit.UnoControlFormattedFieldModel
-o toolkit.UnoControlGroupBox
-o toolkit.UnoControlGroupBoxModel
-o toolkit.UnoControlImageControlModel
-o toolkit.UnoControlListBox
-o toolkit.UnoControlListBoxModel
-o toolkit.UnoControlNumericField
-o toolkit.UnoControlNumericFieldModel
-o toolkit.UnoControlPatternField
-o toolkit.UnoControlPatternFieldModel
-o toolkit.UnoControlProgressBarModel
-o toolkit.UnoControlRadioButton
-o toolkit.UnoControlRadioButtonModel
-o toolkit.UnoControlScrollBarModel
-o toolkit.UnoControlTimeField
-o toolkit.UnoControlTimeFieldModel
-o toolkit.UnoScrollBarControl
-o toolkit.UnoSpinButtonControlModel
-o toolkit.UnoSpinButtonControl
-o toolkit.AccessibleButton
-o toolkit.AccessibleCheckBox
-o toolkit.AccessibleComboBox
-o toolkit.AccessibleDropDownComboBox
-o toolkit.AccessibleDropDownListBox
-o toolkit.AccessibleEdit
-o toolkit.AccessibleFixedText
-o toolkit.AccessibleList
-o toolkit.AccessibleListBox
-o toolkit.AccessibleListItem
-o toolkit.AccessibleMenu
-o toolkit.AccessibleMenuBar
-o toolkit.AccessibleMenuItem
-o toolkit.AccessibleMenuSeparator
-o toolkit.AccessiblePopupMenu
-o toolkit.AccessibleRadioButton
-o toolkit.AccessibleScrollBar
-o toolkit.AccessibleStatusBar
-o toolkit.AccessibleStatusBarItem
-o toolkit.AccessibleTabControl
-o toolkit.AccessibleTabPage
-o toolkit.AccessibleToolBox
-o toolkit.AccessibleToolBoxItem
-o toolkit.AccessibleWindow
-o toolkit.UnoControlDialog
-o toolkit.Toolkit
-o toolkit.UnoControlImageControl

error: pathspec 'toolkit/qa/unoapi/toolkit.sce' did not match any file(s) known to git


fix for SCHEDULING-1553

fix for SCHEDULING-1553

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

function [locals,globals] = who_user1()
    //get user variables
    [nams,mem]=who('get'); //get all variables
    p=predef(); //number of system variable
    st=stacksize()
    opt=PAoptions();

    nams=nams(1:$-p+1);mem=mem(1:$-p+1);
    //modifiable system variables
    excluded=opt.EnvExcludeList;
    ke=grep(nams,cell2mat(excluded))
    nams(ke)=[];mem(ke)=[];
    typs=[];
    for i=1:size(nams,1)
        execstr('typs(i) = typeof('+nams(i)+')')
    end

    typsexcluded=opt.EnvExcludeTypeList;

    ke=grep(typs,cell2mat(typsexcluded))
    nams(ke)=[];

    n=size(nams,1);
    if n==0 then return,end

    //format names on n*10 characters
    ll=length(nams)+2;m=int((ll-1)/10)+1;
    for k=1:max(m)
        ks=find(m==k);
        if ks<>[] then nams(ks)=part(nams(ks),1:(k*10));end
    end
    locals=[];
    globals=[];
    ilocals = 1;
    iglobals=1;
    for i=1:size(nams,1)
        ok = %f;
        execstr('ok = isglobal('+nams(i)+')');
        if ok then
            globals(iglobals)=nams(i);
            iglobals = iglobals + 1;
        else
            locals(ilocals)=nams(i);
            ilocals = ilocals + 1;
        end
    end
endfunction

error: pathspec 'extensions/scilab/PAscheduler/macros/who_user1.sci' did not match any file(s) known to git


Port David Robinson's equalloudfilt.m MATLAB script to scilab so that the ReplayGain filter settings can be generated using an OpenSource tool.

Signed-off-by: Earl Chew <408aef5abfefb2ec478aaf6aa6535a7cc1b91eef@yahoo.com>

// Equal Loudness Filter
//
// Adapted from original MATLAB code written by David Robinson
//
//      http://replaygain.hydrogenaudio.org/proposal/equal_loudness.html
//      http://replaygain.hydrogenaudio.org/proposal/mfiles/equalloudfilt.m

// *****************************************************************************
// Print Filter Coefficients
//
// This function takes a vector of filter tap settings, and prints
// each tap setting from least significant to most significant.

function c=printcoeff(p)

  c=coeff(p);
  c=c($:-1:1);

  for ix = 1:1:length(c)
    if ix > 1
        printf(" ")
    end
    printf("%.14f", c(ix));
  end

endfunction

// *****************************************************************************
// Equal Loudness Filter
//
// This function is adapted from David Robison's original MATLAB code.
// Apart from changes to port it to scilab, the other change is to
// use a single specification of the frequency points in the 80dB Equal
// Loudness curve.
//
// The original code had different curves for different sampling
// frequencies. This code dynamically computes the current data
// points to use as determined by the Nyquist frequency.

function [a1,b1,a2,b2]=equalloudfilt(fs);
// Design a filter to match equal loudness curves
// 9/7/2001

[%nargout,%nargin]=argn(0);

// If the user hasn't specified a sampling frequency, use the CD default
if %nargin<1 then
   fs=44100;
end

// Specify the 80 dB Equal Loudness curve
EL80=[0,120;20,113;30,103;40,97;50,93;60,91;70,89;80,87;90,86; ..
      ..
      100,85;200,78;300,76;400,76;500,76;600,76;700,77;800,78;900,79.5; ..
      ..
      1000,80;1500,79;2000,77;2500,74;3000,71.5;3700,70;4000,70.5; ..
      5000,74;6000,79;7000,84;8000,86;9000,86; ..
      ..
      10000,85;12000,95;15000,110;20000,125;24000,140];

for ex = 1:1:length(EL80(:,1))
  if EL80(ex,1) > fs/2
    EL80 = [ EL80(1:ex-1,:); fs/2, EL80(ex-1,2) ];
    break
  elseif EL80(ex,1) == fs/2
    EL80 = EL80(1:ex,:);
    break
  end
  if ex == length(EL80(:,1))
    EL80 = [ EL80(1:$, :); fs/2, EL80($,2) ];
  end
end

// convert frequency and amplitude of the equal loudness curve into format suitable for yulewalk
f=EL80(:,1)./(fs/2);
m=10.^((70-EL80(:,2))/20);

// Use a MATLAB utility to design a best bit IIR filter
[b1,a1]=yulewalk(10,f,m);

// Add a 2nd order high pass filter at 150Hz to finish the job
hz=iir(2,'hp','butt',[150/fs,0],[1e-3 1e-3]);
b2=numer(hz); // b2=b2($:-1:1);
a2=denom(hz); // a2=a2($:-1:1);

endfunction

// *****************************************************************************
// Generate Filter Taps
//
// Generate the filter taps for each of the desired frequencies.

format('v', 16);

freqs = [  8000 11025 12000 16000 18900 22050 24000 ..
          28000 32000 36000 37800 44100 48000 ];

for fx = 1:1:length(freqs)

  printf("\n%d\n", freqs(fx));

  [a1,b1,a2,b2] = equalloudfilt(freqs(fx));

  printf("{ "); bb=printcoeff(b1); printf(" }\n");
  printf("{ "); aa=printcoeff(a1); printf(" }\n");

  printf("{ "); printcoeff(b2); printf(" }\n");
  printf("{ "); printcoeff(a2); printf(" }\n");

// freqz_fwd(bb,aa,1024,freqs(fx));

end

quit

error: pathspec 'src/utils/loudness/loudness.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/18 09:53:36 sw 1.1.2.1: #114449#

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

error: pathspec 'sd/qa/unoapi/sd.sce' did not match any file(s) known to git


Create 4.tick-tack-toe.sce

Create 4.tick-tack-toe.sce

Tic Tac Toe, on the basis of scilab

// Tick-tack-toe
//Tic Tac Toe, on the basis of scilab
//Start here

global ffield;
global Win;
ffield=0;

//the creation of the game window
mw=figure();
set(mw,'position',[20,40,500,450]);
set(mw,'figure_name','Tick-tack-toe');

//status Bar
label1=uicontrol('Style', 'text', 'Position', [80,400,250,20], 'String',..
'Game in progress (click on the square button)','HorizontalAlignment','left');
//the creation of the game window
ubutton_c=uicontrol(mw,'Style','pushbutton','position',[80,380,120,20]..
,'String','Restart game','CallBack','newgame()');

//the creation of the playing field
ubutton=list([1:9]);
for i=1:9
    num=string(i)
    y=ceil(i/3);
    x=i-((y-1)*3);
    ubutton(i)=uicontrol(mw,'Style','pushbutton','position',[80*x+2,80*y,80,80]..
    ,'String',' ','CallBack','press_button('+num+')');
end;

function y=press_button(button_num)
    //gaming activities
    global ffield;
    global Win;
    // Human
    Button_Value=get(ubutton(button_num),'String');
    if Button_Value==" " then
        set(ubutton(button_num),'String',"X");
        ffield=ffield+1;
    end
    // AI
    if ffield<9 then
        ct=comp_turn();  //get random action of AI
        buf=get(ubutton(ct),'String');
        while buf ~= " " do
            ct=comp_turn();  //get random action of AI
            buf=get(ubutton(ct),'String');
        end
        set(ubutton(ct),'String',"0"); // Ai chooses cell
        ffield=ffield+1;  //counter filled cells
        Winner() //find game winner
endfunction

function R=comp_turn()
    // Computer opponent action (random action)
    R = grand(1,1,"poi",4);
    if R>9 then R=9;    end;
    if R<1 then R=1;    end;
endfunction

function Winner()
    //find game winner function

    res=0;
    pw=0;
    cw=0;
    plfield=hypermat([3,3]);   // results matrix for human
    cmfield=hypermat([3,3]);   // results matrix for AI

    // check game field
    for ck=1:9 Button_Value=get(ubutton(ck),'String');
        j=ceil(ck/3);
        i=ck-((j-1)*3);
        if  Button_Value=="X"  then plfield(j,i)=1;  end
        if  Button_Value=="0" then cmfield(j,i)=1; end
    end

    // check human results
    pb=pob_diag(plfield,3) ;//processing second diag.
    sm=prod(plfield,1)+prod(plfield,2)';//processing  matrix
    if sum(sm)==1 then res=1;   end; //check winning the hor. and vert. field
    if diag(plfield,0)==1 then res=1;   end; //check winning field main diag.
    if  pb==1 then res=1;   end; //check winning field second diag.

    // check AI results
    pb=pob_diag(cmfield,3) //processing second diag.
    sm=prod(cmfield,1)+prod(cmfield,2)';//processing matrix
    if sum(sm)==1 then res=2;   end; // check winning the hor. and vert. field
    if diag(cmfield,0)==1 then res=2;   end; //check winning field main diag.
    if  pb==1 then res=2;   end; //check winning field second diag.

    //  Deciding the winner
    if  res==1 then set(label1,'String',"You Win");   end
    if  res==2 then set(label1,'String',"Computer Win");   end
    if  (ffield>=9) & (res==0) then set(label1,'String',"No Winner");   end
endfunction

function mult=pob_diag(A,N)
      //  analysis of the secondary diagonal matrix
    mult=1;
    for i=1:N

        mult=mult*A(i,N+1-i);
    end
endfunction

function mult=find_one(Win)
   // analysis of the columns of the matrix
    mult=1;
    prod(Win,1)+prod(Win,2)'
    for i=1:2
        mult=mult+i;
    end
endfunction

function newgame()
    // restart game (reset values)

    global ffield;
    global Win;
    global res;
    for i=1:9
        y=ceil(i/3);
        x=i-((y-1)*3);
        set(ubutton(i),'String',' ');
    end;
    ffield=0;
    res=0
    Win=0;
    set(label1, 'String','Game in progress (click on the square button)');
endfunction

error: pathspec '4.tick-tack-toe.sce' did not match any file(s) known to git


CONVERTED: new file pblib_write_wire_type.sci

exec pblib_write_varint.sci
function [buffer] = pblib_write_wire_type(value, wire_type)
//pblib_write_wire_type
//
//   buffer = pblib_write_wire_type(value, wire_type)
//
//   These values must match the WireType enum in
//   http://protobuf.googlecode.com/svn/trunk/src/google/protobuf/wire_format.h
//
//   All Wire Types Are (in order, 0 based):
//     0: 'varint'
//     1: '64bit'
//     2: 'length_delimited'
//     3: 'start_group'
//     4: 'end_group'
//     5: '32bit'
//

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  select wire_type
    case 0 then
      buffer = pblib_write_varint(value);
    case 1 then
      buffer = value;
    case 2 then
      len_buffer = pblib_write_varint(uint32(length(value)));
      buffer = [len_buffer value];
    case 3 then
      warning "Start Group not implemented"
    case 4 then
      warning "End Group not implemented"
    case 5 then
      buffer = value;
  end

endfunction

error: pathspec 'protobuflib/pblib_write_wire_type.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 09:27:36 sw 1.1.2.1: #114449#

-o ucb.UcbContentProviderProxyFactory
-o ucb.UcbPropertiesManager
-o ucb.UcbStore
-o ucb.UniversalContentBroker
-o ucpchelp.CHelpContentProvider
-o ucpdav.WebDAVContentProvider
-o ucpfile.FileProvider
-o ucpftp.FTPContentProvider
-o ucphier.HierarchyContentProvider
-o ucphier.HierarchyDataSource
-o ucppkg.PackageContentProvider

error: pathspec 'ucb/qa/unoapi/ucb.sce' did not match any file(s) known to git


CONVERTED: new file pblib_type_to_estimated_encoding_length.sci

Affected by uint64 function absence

function len = pblib_type_to_estimated_encoded_length(type)
// pblib_type_to_estimated_encoded_length
//   function len = pblib_type_to_estimated_encoded_length(type)
//
//   Converts from proto type to estimated encoded length.
//
//   This function is currently only used in the local function read_packed_field in
//   pblib_generic_parse_from_string.m.  It is used to estimate how much space we need to
//   store the incoming packed values to avoid many reallocations. We can probably improve
//   this to switch on wire type and read all the values in, without storing them, to
//   calculate how many values are encoded in a buffer, but this is good enough until it
//   isn't.

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  type_to_estimated_encoded_length = [...
      8, ... // double => always 8 bytes
      4, ... // float => always 4 bytes
      7, ... // int64 => probably large or else int32 would be used (varint can be as large as 10 bytes)
      7, ... // uint64 => same as int64
      2, ... // int32 => values < 16384 take up 2 bytes
      8, ... // fixed64 => always 8 bytes
      4, ... // fixed32 => always 4 bytes
      1, ... // bool => probably either 0 or 1, which is 1 varint encoded byte
      -1, ... // string => this function shouldn't be used to estimate string length
      -1, ... // group => groups are unsupported in matlab
      -1, ... // message => this function shouldn't be used to estimate message length
      -1, ... // bytes => this function shouldn't be used to estimate byte length
      2, ... // uint32 => values < 16384 take up 2 bytes
      1, ... // enum => values expected to be < 128, which is 1 varint encoded byte
      4, ... // sfixed32 => always 4 bytes
      8, ... // sfixed64 => always 8 bytes
      2, ... // sint32 => signed values abs value < 8192 take up 2 varint encoded bytes
      7];    // sint64 => see int64
  len = type_to_estimated_encoded_length(type);

endfunction

error: pathspec 'protobuflib/pblib_type_to_estimated_encoded_length.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/17 15:34:25 sw 1.1.2.1: #114449#

-o sw.SwAccessibleDocumentPageView
-o sw.SwAccessibleDocumentView
-o sw.SwAccessibleEndnoteView
-o sw.SwAccessibleFooterView
-o sw.SwAccessibleFootnoteView
-o sw.SwAccessibleHeaderView
-o sw.SwAccessiblePageView
-o sw.SwAccessibleParagraphView
-o sw.SwAccessibleTableCellView
-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
-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.SwXStyle
-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.SwXTextField
-o sw.SwXTextFieldMasters
-o sw.SwXTextFieldTypes
-o sw.SwXTextFrameText
-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
-o sw.SwXTextView
-o sw.SwXTextViewCursor
-o sw.SwXViewSettings
-o sw.XMLContentExporter
-o sw.XMLContentImporter
-o sw.XMLExporter
-o sw.XMLImporter
-o sw.XMLMetaExporter
-o sw.XMLMetaImporter
-o sw.XMLSettingsExporter
-o sw.XMLSettingsImporter
-o sw.XMLStylesExporter
-o sw.XMLStylesImporter
-o sw.SwXTextEmbeddedObject
-o sw.SwXTextEmbeddedObjects
-o sw.SwXTextFrame
-o sw.SwXTextGraphicObject
-o sw.SwXTextDocument

error: pathspec 'sw/qa/unoapi/sw.sce' did not match any file(s) known to git


mdaq_get_dio_config macro initial commit

Macro return number of DIO channels depending on MicroDAQ model

function dio_count = mdaq_get_dio_config()
    dio_count = -1;
    global %microdaq;
    mdaq_model = %microdaq.private.mdaq_hwid(1);
    mdaq_adc_config = %microdaq.private.mdaq_hwid(2);
    if mdaq_model == 2000 then
        dio_count = 16;
    end

    if mdaq_model == 2000 & mdaq_adc_config == 1 then
        dio_count = 32;
    end

    if mdaq_model == 1100 | mdaq_model == 1000  then
        dio_count = 32;
    end
endfunction

error: pathspec 'microdaq/macros/mdaq_get_dio_config.sci' did not match any file(s) known to git


Add reference implementation of midpoint displacement

//  Author: Ali Ghahraei Figueroa
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.

//  Function to interpolate
//
//  Arguments:
//  n -> used to get the size of the matrix
//  leftTop -> A(beginning,beginning)
//  rightTop -> A(beginning,end)
//  leftBottom -> A(end,beginning)
//  rightBottom -> A(end,end)

function [heightField] = interpolation(n, leftTop, rightTop, leftBottom, rightBottom)
    MATRIX_LENGTH = (2 ** n) + 1

    heightField(1, 1) = leftTop
    heightField(1, MATRIX_LENGTH) = rightTop
    heightField(MATRIX_LENGTH, 1) = leftBottom
    heightField(MATRIX_LENGTH, MATRIX_LENGTH) = rightBottom

    increment = MATRIX_LENGTH - 1

    interpolationStart = ceil(MATRIX_LENGTH/2)

    i = interpolationStart
    while i >= 2
        for j = interpolationStart:increment:MATRIX_LENGTH
            distanceToEdge = i-1
            for k = i:increment:MATRIX_LENGTH
                heightField(k+distanceToEdge, j) = mean([heightField(k+distanceToEdge, j+distanceToEdge),heightField(k+distanceToEdge, j-distanceToEdge)])
                heightField(k-distanceToEdge, j) = mean([heightField(k-distanceToEdge, j+distanceToEdge),heightField(k-distanceToEdge, j-distanceToEdge)])
                heightField(k, j+distanceToEdge) = mean([heightField(k+distanceToEdge, j+distanceToEdge),heightField(k-distanceToEdge, j+distanceToEdge)])
                heightField(k, j-distanceToEdge) = mean([heightField(k+distanceToEdge, j-distanceToEdge),heightField(k-distanceToEdge, j-distanceToEdge)])

                heightField(k, j) = mean([heightField(k+distanceToEdge, j), heightField(k-distanceToEdge, j), heightField(k, j+distanceToEdge), heightField(k, j-distanceToEdge)])
            end
        end

        interpolationStart = ceil(interpolationStart/2)
        increment = increment/2
        i = i - floor(i/2)
    end
endfunction

//  Graph the provided example

function graphExample()
    n = 3
    [z] = interpolation(n, 1, 20, 5, 200)
    x = [1:1:2**n+1]
    plot3d(x,x,z)
endfunction

error: pathspec 'interpolation.sci' did not match any file(s) known to git


Add function for checking if Ext mode app is loaded

function res = mdaqIsExtMode()
    res = []
    con = mdaqOpen();
    result = mlink_set_obj(con, "ext_mode", 1);
    mdaqClose(con);
    if result == -25 then
        res = %F
    else
        res = %T
    end
endfunction

error: pathspec 'microdaq/macros/mdaqIsExtMode.sci' did not match any file(s) known to git


bandpass filter (high freq 2050hz - 8000hz)

t = [0: 0.0000625: 0.02];
N = size(t, '*');
sin_100Hz = 2*sin(2*%pi*700*t);
sin_1000Hz = 2*sin(2*%pi*1000*t);
sin_5000Hz = 2*sin(2*%pi*5000*t);
testsign = sin_100Hz + sin_1000Hz + sin_5000Hz;
[LD_coeff, amplitude, frequentie] = wfir('bp',79,[2050/16000, 0.5],'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);

Frequentie_FFT = abs(fft(testsign));
f = 16000 * (0:(N/2))/N;
n = size(f, '*');
figure;

subplot(311);
plot(f, Frequentie_FFT(1:n));
plot(frequentie*16000, amplitude*N, 'black');
subplot(312);
plot(t, LD_output, 'r');
subplot(313);
plot(t, testsign)
plot(t, LD_output, 'r');
plot(t, sin_5000Hz, 'g');

error: pathspec 'HP.sce' did not match any file(s) known to git


add a small scilab computing script

add a small scilab computing script

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@3610 28e8926c-6b08-0410-baaa-805c5e19b8d6

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/laurianed/scheduling.git/'


INTEGRATION: CWS complextest1 (1.1.2); FILE ADDED 2007/06/22 14:20:16 sg 1.1.2.1: #i78662# distributed complex tests for framework

job=cmdmail.SimpleCommandMail
job=fileacc.SimpleFileAccess
job=proxyset.SOffice52ProxySettings
job=sc.ScCellFieldObj
job=sc.ScCellFieldsObj
job=sc.XMLImporter
job=sc.XMLMetaExporter
job=sd.SdDocLinkTargets
job=sd.SdDrawPage
job=sd.SdMasterPagesAccess
job=sd.SdXCustomPresentation
job=sd.SdXPresentation
job=servicemgr.uno.OServiceManager
job=sfx.SfxMacroLoader
job=simplereg.uno.SimpleRegistry
job=sm.XMLSettingsExporter
job=sm.XMLSettingsImporter
job=srtrs.SortedDynamicResultSetFactory
job=svx.SvxShapeCollection
job=svx.SvxUnoTextRangeEnumeration
job=sw.SwXBodyText
job=sw.XMLExporter
job=sw.XMLImporter
job=sw.XMLMetaExporter
job=sw.XMLSettingsExporter
job=sw.XMLSettingsImporter
job=sw.XMLStylesExporter
job=sysdtrans.SystemClipboard
job=syssh.SystemShellExecute
job=text.DefaultNumberingProvider
job=toolkit.TabControllerModel
job=toolkit.UnoControlCheckBox
job=toolkit.UnoControlTimeField
job=toolkit.UnoControlTimeFieldModel
job=typeconverter.uno.TypeConverter
job=typemgr.uno.TypeDescriptionManager
job=ucb.UcbContentProviderProxyFactory
job=ucb.UcbPropertiesManager
job=ucb.UcbStore

error: pathspec 'framework/qa/complex/api_internal/worksforme.sce' did not match any file(s) known to git


working on crossover, review the method

working on crossover, review the method

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/augustomatheuss/gal.git/'


   CONVERTED: new file pblib_generic_parse_from_string.sci

Affected by
> java.util.HashMap @line 58
> read_function absent (maybe implemented in ..generator.cc)

exec pblib_matlab_type_to_string.sci
exec pblib_type_to_estimated_encoding_length.sci
exec pblib_write_wire_type.sci
exec pblib_read_tag.sci

function [msg, num_read] = pblib_generic_parse_from_string(...
    buffer, descriptor, buffer_start, buffer_end)
//pblib_generic_parse_from_string
//   [msg, num_read] = pblib_generic_parse_from_string(buffer, descriptor, buffer_start, buffer_end)
//
//   INPUTS:
//       buffer       : buffer to parse proto message from
//       descriptor   : a proto message descriptor, as generated by one of the read functions
//       buffer_start : optional buffer start index, used so we can avoid reallocating the buffer
//       buffer_end   : optional buffer end index, used so we can avoid reallocating the buffer

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  if (argn(2) < 3)
    buffer_start = 1;
  end
  if (argn(2) < 4)
    buffer_end = length(buffer);
  end

  // Label enum
  LABEL_OPTIONAL = 1;
  LABEL_REQUIRED = 2;
  LABEL_REPEATED = 3;

  // Create the has_field map and set default values
  msg.has_field = java.util.HashMap;
  for field=descriptor.fields
    put(msg.has_field, field.name, 0);
    msg.(field.name) = field.default_value;
  end

  msg.unknown_fields = [];
  num_read = buffer_start - 1;
  while (num_read < buffer_end)
    [number, wire_type, tag_len] = pblib_read_tag(buffer, num_read + 1);
    index = get(descriptor.field_indeces_by_number, number);
    [wire_value, temp_num_read] = pblib_read_wire_type(buffer, num_read + tag_len + 1, wire_type);
    if (~isempty(index))
      field = descriptor.fields(index);
      if (field.wire_type <> wire_type && ~field.options.packed)
        error('proto:read:wire_type_mismatch', ...
              ['Wire type mismatch while reading ' field.name ...
               '. Got ' string(wire_type) ' but expected ' ...
               string(field.wire_type)]);
      end
      if field.label == LABEL_REPEATED
        if field.options.packed
          msg.(field.name) = read_packed_field(field, wire_value);
        else
          // strings and byte arrays must be stored in cell arrays
          // and so need special treatment
          if (field.matlab_type == 7 || field.matlab_type == 8) // 'string' or 'bytes'
            if (get(msg.has_field, field.name))
              msg.(field.name) = [msg.(field.name) field.read_function(wire_value)];
            else
              msg.(field.name) = {field.read_function(wire_value)};
            end
          else
            msg.(field.name) = [msg.(field.name) field.read_function(wire_value)];
          end
        end
      else
        msg.(field.name) = field.read_function(wire_value);
      end
      put(msg.has_field, field.name, 1);
    else
      msg.unknown_fields = [...
          msg.unknown_fields struct(...
              'number', number, 'wire_type', wire_type, ...
              'raw_data', buffer(num_read + 1 : num_read + tag_len + temp_num_read))];
    end
    num_read = num_read + tag_len + temp_num_read;
  end

  // Check to make sure required fields have been read in We will only issue a warning if
  // they haven't so that debugging the final message would be easier
  for field=descriptor.fields
    if field.label == LABEL_REQUIRED && ~get(msg.has_field, field.name)
      warning('proto:read:required_enforcement', ...
              'Required field not set while parsing. This is an error.')
    end
  end

endfunction

function [values] = read_packed_field(field, wire_value)
  [wire_value, buffer_start, buffer_end] = (wire_value{:});
  wire_values_length = buffer_end - buffer_start + 1;
  matlab_type_str = pblib_matlab_type_to_string(field.matlab_type);
  values = zeros(...
      [1 ceil(wire_values_length / ...
              pblib_type_to_estimated_encoded_length(field.type))], ...
      matlab_type_str);
  bytes_read_in = buffer_start - 1;
  num_values = 0;
  while bytes_read_in < buffer_end
    [num, num_read] = pblib_read_wire_type(wire_value, bytes_read_in + 1, field.wire_type);
    value = field.read_function(num);
    num_values = num_values + 1;
    values(num_values) = value;
    bytes_read_in = bytes_read_in + num_read;
  end
  values = values(1:num_values);

endfunction

error: pathspec 'protobuflib/pblib_generic_parse_from_string.sci' did not match any file(s) known to git


forgotten file (fix for SCHEDULING-1319)

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

function [ok, msg]=TestMultipleSubmit(timeout)
if ~exists('timeout')
    if (getos() == "Windows")
        timeout = 500000;
    else
        timeout = 200000;
    end
end

disp('...... Testing PAsolve with multiple submits');

disp('..........................submit 1');
resl1 = PAsolve('factorial',1,2,3,4,5);
disp('..........................submit 2');
resl2 = PAsolve('factorial',1,2,3,4,5);
disp('..........................submit 3');
resl3 = PAsolve('factorial',1,2,3,4,5);
disp('..........................submit 4');
resl4 = PAsolve('factorial',1,2,3,4,5);
disp('..........................submit 5');
resl5 = PAsolve('factorial',1,2,3,4,5);

val1=PAwaitFor(resl1,timeout)
val2=PAwaitFor(resl2,timeout)
val3=PAwaitFor(resl3,timeout)
val4=PAwaitFor(resl4,timeout)
val5=PAwaitFor(resl5,timeout)

[ok,msg]=checkValuesFact(val1);
if ~ok error(msg),return; end
[ok,msg]=checkValuesFact(val2);
if ~ok error(msg),return; end
[ok,msg]=checkValuesFact(val3);
if ~ok error(msg),return; end
[ok,msg]=checkValuesFact(val4);
if ~ok error(msg),return; end
[ok,msg]=checkValuesFact(val5);
if ~ok error(msg),return; end
endfunction

function [ok,msg]=checkValuesFact(val)
[ok,msg]=checkValues(val,list(1,2,6,24,120),'factorial');
endfunction

function [ok,msg]=checkValues(val,right,name)
if length(right) ~= length(val)
    ok = %f;
    msg = 'Wrong number of outputs';
else
    for i=1:length(right)
        if typeof(val) == 'list'
            if val(i) ~= right(i)
                ok = %f;
                msg = 'TestBasic::Wrong value of '+ name+ '(' + string(i) +'), received '+ string(val(i))+ ', expected ' + string(right(i));
            else
                ok = %t;
                msg = [];
            end
        else
            if val(i) ~= right(i)
                ok = %f;
                msg = 'TestBasic::Wrong value of '+ name +'(' + string(i)+ '), received '+ string(val(i))+ ', expected ' + string(right(i));

            else
                ok = %t;
                msg = [];
            end
        end
    end
    if ~ok then
        disp('Received:');
        disp(val)
    end

end
endfunction

error: pathspec 'extensions/scilab/PAscheduler/unit_tests/TestMultipleSubmit.sci' did not match any file(s) known to git


fix for SCHEDULING-1553

error: pathspec 'extensions/scilab/PAscheduler/macros/who_user1.sci' did not match any file(s) known to git


working crossover

working crossover


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/19 14:32:46 sw 1.1.2.1: #114449#

-o forms.OButtonControl
-o forms.OButtonModel
-o forms.OCheckBoxControl
-o forms.OCheckBoxModel
-o forms.OComboBoxControl
-o forms.OComboBoxModel
-o forms.OCurrencyControl
-o forms.OCurrencyModel
-o forms.ODatabaseForm
-o forms.ODateControl
-o forms.ODateModel
-o forms.OEditControl
-o forms.OEditModel
-o forms.OFileControlModel
-o forms.OFixedTextModel
-o forms.OFormattedControl
-o forms.OFormattedFieldWrapper
-o forms.OFormsCollection
-o forms.OGridControlModel
-o forms.OGroupBoxControl
-o forms.OGroupBoxModel
-o forms.OHiddenModel
-o forms.OImageButtonControl
-o forms.OImageButtonModel
-o forms.OImageControlControl
-o forms.OImageControlModel
-o forms.OListBoxControl
-o forms.OListBoxModel
-o forms.ONumericControl
-o forms.ONumericModel
-o forms.OPatternControl
-o forms.OPatternModel
-o forms.ORadioButtonControl
-o forms.ORadioButtonModel
-o forms.OTimeControl
-o forms.OTimeModel
-o forms.OSpinButtonModel
-o forms.OScrollBarModel

error: pathspec 'forms/qa/unoapi/forms.sce' did not match any file(s) known to git


scilab script ok, but need changes in crossover and mutation


CONVERTED: new file pblib_read_Varint32.sci

function [num, num_read] = pb_read_varint32(buffer, offset)
//pb_read_varint32
//   function [num, num_read] = pb_read_varint32(buffer, offset)

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  current_byte = uint32(buffer(offset));
  num = bitset(current_byte, 8, 0);
  index = 1;
  while (current_byte > 127)
    current_byte = uint32(buffer(index + offset));

    // Instead of bitshift, we are multiplying by 2
    num = bitor(num,  bitset(current_byte, 8, 0) * (2 ** 7*index));
    index = index + 1;
  end
  num_read = index;

endfunction

error: pathspec 'protobuflib/pblib_read_varint32.sci' did not match any file(s) known to git


add an example of a  scilab script

add an example of a  scilab script

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@3627 28e8926c-6b08-0410-baaa-805c5e19b8d6


version basique de codes scilab

version basique de codes scilab

// IMMUNOGENEIC_TUMOR_GROWTH model for tumor immune interaction
//
//   REFERENCE: Kuznetsov et al. (1994) Bull Math Biol 56, 295-321
//
//   University Lyon 1 - 2014-2015

function dXdt = oderhs(t,X)
    // F rhs of the ODE system dX/dt = f(X)
    //
    //   X = (x,y)
    //
    //   dx/dt = sigma + rho*x*y/(eta + y) - mu*x*y - delta*x
    //   dy/dt = alpha*y*(1-beta*y) - x*y

    // Non-dimensional model
    // System parameters
    sigma = 0.1181;
    rho = 1.131;
    eta = 20.19;
    mu = 0.00311;
    delta = 0.3743;
    alpha = 1.636;
    beta_par = 1e-2;

    x = X(1);
    y = X(2);

    dXdt = [sigma + rho*x.*y./(eta + y) - mu*x.*y - delta*x;
            alpha*y.*(1-beta_par*y) - x.*y];

endfunction

function x = nullx(y)
    // NULLX nullcline for x (dxdt = 0 when x = nullx(y))

    // Non-dimensional model
    // System parameters
    sigma = 0.1181;
    rho = 1.131;
    eta = 20.19;
    mu = 0.00311;
    delta = 0.3743;
    alpha = 1.636;
    beta_par = 1e-2;

    x = sigma./(delta+mu*y-rho*y./(eta+y));

endfunction

function x = nully(y)
    // NULLX nullcline for y (dydt = 0 when x = nully(y))

    // Non-dimensional model
    // System parameters
    sigma = 0.1181;
    rho = 1.131;
    eta = 20.19;
    mu = 0.00311;
    delta = 0.3743;
    alpha = 1.636;
    beta_par = 1e-2;

    x = alpha*(1-beta_par*y);

endfunction

// Simulations
// Compute a single trajectory with defined initial condition in interval [0,tfinal]
ic = [0.7616; 268.7980];
t0 = 0;
tspan = 0:100;
X = ode(ic,t0,t,oderhs);

//// Plot the trajectory in the phase space
figure(1); clf;
plot(X(1,:),X(2,:))
// plot the positive x-nullcline
yy = logspace(-1,3,300);
yyp = yy(nullx(yy)>0)
plot(nullx(yyp),yyp,'k')
// plot the y-nullcline
plot(nully(yy),yy,'r')
axis([1e-1 5 1e-1 1e3])
xlabel('x')
ylabel('y')

error: pathspec 'immunogeneic_tumor_growth/immunogeneic_tumor_growth.sce' did not match any file(s) known to git


CONVERTED: new file pblib_read_tag.sci

   CONVERTED: new file pblib_read_tag.sci

Affected by bitshift support

exec pblib_read_varint32.sci

function [number, type, num_read] = pblib_read_tag(buffer, offset)
//pblib_read_tag
//   function [number, type, num_read] = pblib_read_tag(buffer, offset)

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  [num, num_read] = pblib_read_varint32(buffer, offset);
  number = num * (2 ** -3);
  type = bitand(num, 7);

error: pathspec 'protobuflib/pblib_read_tag.sci' did not match any file(s) known to git


INTEGRATION: CWS qadev15 (1.1.2); FILE ADDED 2003/12/18 14:32:32 sw 1.1.2.1: #114449#

-o svtools.AccessibleBrowseBox
-o svtools.AccessibleBrowseBoxHeaderBar
-o svtools.AccessibleBrowseBoxHeaderCell
-o svtools.AccessibleBrowseBoxTable
-o svtools.AccessibleBrowseBoxTableCell
-o svtools.AccessibleIconChoiceCtrl
-o svtools.AccessibleIconChoiceCtrlEntry
-o svtools.AccessibleTabBar
-o svtools.AccessibleTabBarPage
-o svtools.AccessibleTabBarPageList
-o svtools.AccessibleTreeListBox
-o svtools.AccessibleTreeListBoxEntry

error: pathspec 'svtools/qa/unoapi/svtools.sce' did not match any file(s) known to git


CONVERTED: new file pblib_write_varint.sci

Affected by bitshift function absence

function [buffer] = pblib_write_varint(value)
//pblib_write_varint
//   buffer = pblib_write_varint(value)
//
//   Encodes a uint value as a varint.
//
//   The value passed in can be any uint up to uint64.  We do a hand coded
//   binary search tree like Google's C++ code generation to quickly decide how
//   many bytes we'll need for the encoding, or at least estimate.

//   protobuf-matlab - FarSounder's Protocol Buffer support for Matlab
//   Copyright (c) 2008, FarSounder Inc.  All rights reserved.
//   http://code.google.com/p/protobuf-matlab/
//
//   Redistribution and use in source and binary forms, with or without
//   modification, are permitted provided that the following conditions are met:
//
//       * Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer.
//
//       * Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions and the following disclaimer in the
//   documentation and/or other materials provided with the distribution.
//
//       * Neither the name of the FarSounder Inc. nor the names of its
//   contributors may be used to endorse or promote products derived from this
//   software without specific prior written permission.
//
//   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
//   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
//   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
//   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
//   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
//   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
//   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
//   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
//   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
//   POSSIBILITY OF SUCH DAMAGE.

//   Author: fedor.labounko@gmail.com (Fedor Labounko)
//   Support function used by Protobuf compiler generated .m files.

  if (value < uint64(268435456)) // 2^28
    if (value < uint64(16384)) // 2^14
      if (value < uint64(128)) // 2^7
        buffer = zeros([1 1], 'uint8');
      else
        buffer = zeros([1 2], 'uint8');
      end
    else
      if (value < uint64(2097152)) // 2^21
        buffer = zeros([1 3], 'uint8');
      else
        buffer = zeros([1 4], 'uint8');
      end
    end
  else
    if (value < uint64(4398046511104)) // 2^42
      if (value < uint64(34359738368)) // 2^35
        buffer = zeros([1 5], 'uint8');
      else
        buffer = zeros([1 6], 'uint8');
      end
    else
      if (value < uint64(72057594037927936)) // 2^56
        buffer = zeros([1 8], 'uint8');
      else
        buffer = zeros([1 10], 'uint8');
      end
    end
  end
  num_bytes = 0;
  while (value > 127)
    num_bytes = num_bytes + 1;
    buffer(num_bytes) = bitset(bitand(value, 127), 8);
    value = bitshift(value, -7);
  end
  num_bytes = num_bytes + 1;
  buffer(num_bytes) = value;
  buffer = buffer(1 : num_bytes);

endfunction

error: pathspec 'protobuflib/pblib_write_varint.sci' did not match any file(s) known to git


INTEGRATION: CWS pbrwuno (1.1.2); FILE ADDED 2006/02/15 09:52:40 fs 1.1.2.1: scenario file for UNO API tests in module 'extensions'

error: pathspec 'extensions/qa/unoapi/extensions.sce' did not match any file(s) known to git