bdeGetBlockReset

Gets the reset parameters of the template for block.

Syntax

reset = bdeGetBlockReset(block)

Inputs

block
The block to get the reset parameters from.
Type: block

Outputs

reset
The reset parameters of block.
Type: string

Examples

Get the reset parameters of block's template:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          loaded = bdeLoadBlockTemplate(block, 'atom');
          reset = bdeGetBlockReset(block)
        

          
            reset =
            
            iotype = vssGetInputDataType (_block, 1);
            satur = vssGetOparData (_block, 3);
            if iotype == 1
            vssSetSimFunction (_block, _simFuns (1));
            elseif iotype == 2
            vssSetSimFunction (_block, _simFuns (2));
            elseif iotype == 3
            if satur == 0
            vssSetSimFunction (_block, _simFuns (3));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (4));

            reset =   elseif satur == 2
            vssSetSimFunction (_block, _simFuns (5));
            else
            error ('Do on overflow must be Nothing, Saturate or Error.');
            end
            elseif iotype == 4
            if satur == 0
            vssSetSimFunction (_block, _simFuns (6));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (7));
            elseif satur == 2

            reset =     vssSetSimFunction (_block, _simFuns (8));
            else
            error ('Do on overflow must be Nothing, Saturate or Error.');
            end
            elseif iotype == 5
            if satur == 0
            vssSetSimFunction (_block, _simFuns (9));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (10));
            elseif satur == 2
            vssSetSimFunction (_block, _simFuns (11));

            reset =   else
            error ('Do on overflow must be Nothing, Saturate or Error.');
            end
            elseif iotype == 6
            if satur == 0
            vssSetSimFunction (_block, _simFuns (12));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (13));
            elseif satur == 2
            vssSetSimFunction (_block, _simFuns (14));
            else

            reset =     error ('Do on overflow must be Nothing, Saturate or Error.');
            end
            elseif iotype == 7
            if satur == 0
            vssSetSimFunction (_block, _simFuns (15));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (16));
            elseif satur == 2
            vssSetSimFunction (_block, _simFuns (17));
            else
            error ('Do on overflow must be Nothing, Saturate or Error.');

            reset =   end
            elseif iotype == 8
            if satur == 0
            vssSetSimFunction (_block, _simFuns (18));
            elseif satur == 1
            vssSetSimFunction (_block, _simFuns (19));
            elseif satur == 2
            vssSetSimFunction (_block, _simFuns (20));
            else
            error ('Do on overflow must be Nothing, Saturate or Error.');
            end

            reset = else
            error ('Datatype is not supported.');
            end
            gain = vssGetOparData (_block, 1);
            if ~iscomplex (gain (1))
            vssSetOparData (_block, 1, gain, iotype);
            end