@@ -463,8 +463,7 @@ and one Integer value is added, serialized and finally sent using UDP.
463
463
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.PartialSerialPackager;
464
464
import Modelica_DeviceDrivers.Packaging.alignAtByteBoundary;
465
465
parameter Integer n = 1 "Vector size" ;
466
- Modelica.Blocks.Interfaces.BooleanOutput y[
467
- n]
466
+ discrete Modelica.Blocks.Interfaces.BooleanOutput y[n](each start= 0 , each fixed= true )
468
467
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
469
468
protected
470
469
Integer y_int[n];
@@ -484,7 +483,7 @@ and one Integer value is added, serialized and finally sent using UDP.
484
483
end when ;
485
484
486
485
for i in 1 :n loop
487
- y[i] = if (y_int[i] == 1 ) then true else false ;
486
+ y[i] = if (y_int[i] == 1 ) then true else false ;
488
487
end for ;
489
488
490
489
annotation (Icon(graphics={
@@ -511,7 +510,7 @@ and one Integer value is added, serialized and finally sent using UDP.
511
510
import Modelica_DeviceDrivers.Utilities.Types.ByteOrder;
512
511
parameter Integer n = 1 "Vector size" ;
513
512
parameter ByteOrder byteOrder = ByteOrder.LE;
514
- Modelica.Blocks.Interfaces.IntegerOutput y[n]
513
+ discrete Modelica.Blocks.Interfaces.IntegerOutput y[n]( each start = 0 , each fixed = true )
515
514
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
516
515
protected
517
516
Real dummy;
@@ -554,7 +553,7 @@ and one Integer value is added, serialized and finally sent using UDP.
554
553
import Modelica_DeviceDrivers.Utilities.Types.ByteOrder;
555
554
parameter Integer n = 1 "Vector size" ;
556
555
parameter ByteOrder byteOrder = ByteOrder.LE;
557
- Modelica.Blocks.Interfaces.RealOutput y[n]
556
+ discrete Modelica.Blocks.Interfaces.RealOutput y[n]( each start = 0 , each fixed = true )
558
557
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
559
558
protected
560
559
Real dummy;
@@ -601,7 +600,7 @@ and one Integer value is added, serialized and finally sent using UDP.
601
600
import Modelica_DeviceDrivers.Utilities.Types.ByteOrder;
602
601
parameter Integer n = 1 "Vector size" ;
603
602
parameter ByteOrder byteOrder = ByteOrder.LE;
604
- Modelica.Blocks.Interfaces.RealOutput y[n]
603
+ discrete Modelica.Blocks.Interfaces.RealOutput y[n]( each start = 0 , each fixed = true )
605
604
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
606
605
protected
607
606
Real dummy;
@@ -645,7 +644,7 @@ and one Integer value is added, serialized and finally sent using UDP.
645
644
import Modelica.Utilities.Strings.length;
646
645
parameter Integer bufferSize = 40
647
646
"Buffer size (in bytes) reserved for String (ensure that same buffer size is used in corresponding AddString block!)" ;
648
- output String data;
647
+ discrete output String data(start = "" , fixed = true ) ;
649
648
protected
650
649
Real dummy;
651
650
equation
0 commit comments