﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4066	multiple external function calls for multiple outputs	Volker Waurich	Volker Waurich	"Hi,

In
{{{
Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.UnpackUnsignedInteger
}}}
you will find the equation:
{{{
(y,dummy) =    Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitUnpack(
        pkgIn.pkg,
        bitOffset,
        width,
        pkgIn.dummy);
}}}

Since the function has 2 outputs, we generate 2 equations. One solves the variable {{{y}}} and another one {{{dummy}}} each by calling the external function. Unfortunately, the external function {{{integerBitUnpack}}} is meant to be called only one time since it gets byte pacakges of a message and if we call it too often, the message does not fit in the buffer.

Can any of the c-runtime developers give me a hint on how to solve this issue in a practicable way?

Thanks.
"	defect	closed	high	Future	Code Generation		fixed		Martin Sjölund Adrian Pop Willi Braun Bernhard Thiele Per Östlund
