Abstract:
A method for the computer-aided generation of at least one part of an executable control program, particularly a measuring, control, regulating, and/or calibration program, for controlling a control system having at least one electronic processor unit is provided. The functionality of the control program is described at least partially in at least one graphical model and the graphical model is divided in hierarchical levels into submodels. A submodel can be divided nested into submodels of a lower hierarchical level, whereby values for options for the compiling of the graphical model to program code are preset and program code is generated from the model co-compiled to the executable control program. Values for options for the compiling of the graphical model to program code and to the executable control program can be preset thereby granularly with the automatic avoidance of conflicting presettings of values for these options.
Abstract:
Source code is generated from one or a plurality of blocks of a block diagram. The block diagram is hierarchical and includes at least a first subsystem that is configured for an incremental code generation. The block diagram references a definition database which includes a first object. The method for generating the source code includes: opening, by a computer system, the block diagram including the first subsystem in a model editor; generating, by the computer system, source code for the first subsystem, wherein generating the source code for the first subsystem includes determining information about the first subsystem; storing, by the computer system, the information about the first subsystem in the first object; and generating, by the computer system, source code for the block diagram, wherein the first object is read out to influence at least one parameter for generating the source code for the block diagram.
Abstract:
A method for generating source code from one or more blocks of a block diagram includes: generating the block diagram; determining whether the descriptors of first and second block variables are concordant or different and whether or not first and second blocks are located in the same region; and implementing the first and second block variables as a single variable or as two separate variables in the source code based on the determination of whether the descriptors of the first and second block variables are concordant or different and whether or not the first and second blocks are located in the same region. The first and second block variables are implemented in the source code as a single variable if the descriptors of the first and second block variables are concordant and the first and second blocks are located in the same region.
Abstract:
A method for generating production code from a block diagram on a host computer is provided. A block in the block diagram has a number of input ports for receiving signals and a number of output ports for sending signals. The processor identifies a first block in the block diagram. The input signal is traced back to a second block upstream of the first block. Compliance with a optimization condition is checked, the optimization condition being fulfilled when a group of adjacent blocks has an assignment operation that affects one or more elements of the input signal while leaving at least one element of the composite variable unchanged. A combined production code is generated for the group of adjacent blocks when the optimization condition is fulfilled so that the combined production code includes write instructions for those elements of the composite variable that are affected by the assignment operation.
Abstract:
A computer-implemented method for generating control unit program code. The control unit program code or an intermediate representation in the generation of the control unit program code is generated from at least one first data object with at least one first software tool. The first software tool outputs at least one message about the generation process during the generation of the control unit program code or the intermediate representation, and a computer-implemented message management environment acquires the message output by the software tool. The evaluation of the messages output by the software tools during the generation process is achieved in a more effective manner in that a qualification for the acquired message at least as open or approved is acquired by the message management environment and in that a qualification precondition for a message qualified as approved is also acquired by the message management environment.