摘要:
In a computational device, a method is provided for determining attributes for results of arithmetic operations with fixed-point numbers, in an environment for fixed-point algorithm development. An indication is received of a plurality of possible word lengths to be used for storing a plurality of digits representing a result of arithmetic operation with fixed-point numbers. An indication is received of how a placement of a radix point is to be determined in the plurality of digits representing the results of the arithmetic operation with fixed-point numbers. When calculating a selected fixed-point arithmetic operation, one of the word lengths in the plurality of possible word lengths is employed for storing the plurality of digits representing a result of the selected fixed-point arithmetic operation. A placement of a radix point in the plurality of digits representing the result of the selected fixed-point arithmetic operation is based on the received indication of how the radix point is to be determined.
摘要:
In an exemplary embodiment, a computer-implemented method for obtaining a persistent design portion of an executable model is provided. The model includes on or more design details, a design detail specifying one or more aspects or elements of the model. The method also includes obtaining a design description of the model and a user selection specifying a design detail to be included in the design portion. The method further includes generating a selection specification from the user selection, obtaining the design portion by processing the design description according to the selection specification, and making the design portion persistent.
摘要:
A method and system are provided for deriving a property value of a data type in a graphical modeling environment. A graphical model in the graphical modeling environment includes at least one signal having a data type having a precision property, a minimum data value property, or a maximum data value property. These properties may be defined by a user of the graphical modeling environment. The graphical modeling environment may also include instrumentation and diagnostics for signals. Heuristics and algorithms may be provided for auto scaling and selection of data types for signals.
摘要:
A computer-implemented method for generating code based on a graphical model may include: translating the graphical model into a graphical model code, the graphical model code including a first graphical model code function; performing a lookup of the first graphical model code function in a hardware specific library, the hardware specific library comprising a plurality of relationships between graphical model code functions and hardware specific functions, where the first graphical model code function is one of the graphical model code functions; obtaining a matched hardware specific function based on the lookup, wherein the matched hardware specific function is one of the hardware specific functions from the hardware specific library; and modifying the graphical model code based on the matched hardware specific function.
摘要:
A computer-implemented method for generating code based on a graphical model may include: translating the graphical model into a graphical model code, the graphical model code including a first graphical model code function; performing a lookup of the first graphical model code function in a hardware specific library, the hardware specific library comprising a plurality of relationships between graphical model code functions and hardware specific functions, where the first graphical model code function is one of the graphical model code functions; obtaining a matched hardware specific function based on the lookup, wherein the matched hardware specific function is one of the hardware specific functions from the hardware specific library; and modifying the graphical model code based on the matched hardware specific function.
摘要:
Methods and systems for automatically locking down the attributes of signals in modeling and execution systems are disclosed. Signal attributes automatic latch components are placed on the path of the signals. The signal attributes automatic latch components automatically collect all of the information on the attributes of the signals and lock down the attributes of the signals. Alternatively, automatic signal attributes latch functions may be implemented in components, such as input and output port components. The components perform the automatic signal attributes latch functions that enable the components to automatically collect all of the information on the attributes of the signals and lock down the attributes of the signals. If the attributes of the signals are locked down, even if the design of a target system is changed, the locked attributes of the signals do not change.
摘要:
A catalyst monitoring system is provided for monitoring catalyst efficiency in a catalytic converter of a motor vehicle. The catalyst monitoring system includes a catalyst monitor receiving electrical signals indicative of oxygen in the exhaust gas from a first oxygen sensor positioned between the vehicle's engine and the catalytic converter and a second oxygen sensor positioned downstream from the catalytic converter. Each of these input signals are filtered in the catalyst monitor such that a particular range of frequencies that encapsulate information regarding catalyst efficiency are passed. The filtered signals are then used to establish an amplitude ratio between the downstream oxygen signal and the upstream oxygen signal, such that the algorithm output linearly correlates to catalyst efficiency of the catalytic converter. Digital signal filtering is preferably implemented using a finite impulse response bandpass filter, a full-wave rectifier, a low pass filter, a sampler and a signal normalizer. A means for detecting a stabilized output signal may optionally be used in conjunction with the catalyst monitor.
摘要:
A computer-implemented method for generating code based on a graphical model may include: translating the graphical model into a graphical model code, the graphical model code including a first graphical model code function; performing a lookup of the first graphical model code function in a hardware specific library, the hardware specific library comprising a plurality of relationships between graphical model code functions and hardware specific functions, where the first graphical model code function is one of the graphical model code functions; obtaining a matched hardware specific function based on the lookup, wherein the matched hardware specific function is one of the hardware specific functions from the hardware specific library; and modifying the graphical model code based on the matched hardware specific function.
摘要:
Software for building a block diagram representation of a system includes instructions for defining a propagation block having an input port for receiving information indicative of an attribute set of an input signal and an output port for providing information indicative of an attribute set of an output signal on the basis of the attributes of the input signal. The software includes instructions for associating, with the propagation block, a rule-set for determining the output attribute set on the basis of the input attribute-set.
摘要:
A method is provided for monitoring catalyst efficiency in a catalytic converter of a motor vehicle, comprising the steps of: (a) detecting an oxygen level of an exhaust gas from the vehicle's engine by using an oxygen sensor positioned at the outlet of the catalytic converter; (b) terminating fuel flow to the vehicle's engine; (c) detecting a change in the oxygen level in response to terminating fuel flow; (d) determining a time period from termination of fuel flow to detection of the change in oxygen level; and then (e) compensating this time period with respect to an exhaust flowrate, such that the compensated time period is indicative of catalyst efficiency of the catalytic converter. More specifically, the exhaust flowrate is determined from a manifold absolute pressure and an engine rotational speed of the engine. To achieve reliable and consistent results, catalyst monitoring of the present invention is only enabled under preferred vehicle operating conditions. In addition, catalyst monitoring may also determine a second measurement of the catalyst by determining a similar time period for catalyst response once the fuel flow returns to the engine.