]> rtime.felk.cvut.cz Git - pes-rpp/rpp-simulink.git/commitdiff
Make block forwarding table compatible with Matlab R2018b
authorJakub <nejedjak@fel.cvut.cz>
Fri, 26 Oct 2018 08:17:29 +0000 (10:17 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 26 Jul 2019 13:55:22 +0000 (15:55 +0200)
Without this change, Matlab R2018b prints the following error message:

    Error using rpp_generate_lib (line 67)
    Entry number '1' has invalid value specified in "Old block version"
    column.

[commit message update by Michal Sojka]

rpp/blocks/rpp_generate_lib.m

index 8f07db47a68ee749b72496ae336efb7b0bb558ef..dd899552f90bdb1aa5e51488af072a05d86160d7 100644 (file)
@@ -55,14 +55,13 @@ function rpp_generate_lib()
        end
 
     % Set ForwardingTable
-    mv = 9999.9999; %get_param('rpp_lib', 'ModelVersion');
     ft = {
             {'rpp_lib/General Purpose Digital Input', ...
              'rpp_lib/General Purpose Digital Input', ...
-             0, mv, 'rpp_block_transform' },
+             '0.0', '9999.9999', 'rpp_block_transform' },
             {'rpp_lib/General Purpose Digital Output', ...
              'rpp_lib/General Purpose Digital Output', ...
-             0, mv, 'rpp_block_transform' },
+             '0.0', '9999.9999', 'rpp_block_transform' },
          };
        set_param('rpp_lib', 'ForwardingTable', ft);