US20070260442A1 - Signal definitions or descriptions in graphical modeling environments - Google Patents

Signal definitions or descriptions in graphical modeling environments Download PDF

Info

Publication number
US20070260442A1
US20070260442A1 US11/827,465 US82746507A US2007260442A1 US 20070260442 A1 US20070260442 A1 US 20070260442A1 US 82746507 A US82746507 A US 82746507A US 2007260442 A1 US2007260442 A1 US 2007260442A1
Authority
US
United States
Prior art keywords
signal
block diagram
graphical
block
attributes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US11/827,465
Inventor
Thomas Gaudette
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MathWorks Inc
Original Assignee
MathWorks Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MathWorks Inc filed Critical MathWorks Inc
Priority to US11/827,465 priority Critical patent/US20070260442A1/en
Assigned to MATHWORKS, INC., THE reassignment MATHWORKS, INC., THE ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: GAUDETTE, THOMAS
Publication of US20070260442A1 publication Critical patent/US20070260442A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • G06F30/3308Design verification, e.g. functional simulation or model checking using simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]

Definitions

  • the present invention relates generally to graphical modeling environments and more particularly to methods, systems and computer program products for providing signal definitions or descriptions in the graphical modeling environments.
  • the interaction between the digital units, such as a controller, and the analog units, such as a controlled plant, of the system is critical.
  • This interaction is accomplished generally by signal conditioning hardware, such as analog-to-digital (AD) and digital-to-analog (DA) converters.
  • the signal conditioning hardware transforms low-power electrical signals in the operational range of logic signals (e.g., 0-5V) to high power signals to drive transducers, such as pumps, motors and valves, or vice versa.
  • Smart sensors alleviate the burden of signal communication between the digital and analog units of a system.
  • the smart sensor includes a microprocessor that contains information about the measurement of the sensor, such as the unit and accuracy of the measurement.
  • the microprocessor then communicates directly in terms of signal values instead of having to convert them in binary representations that concur with the selected digitization and gain of the signal conditioning hardware.
  • AWALAS Abbreviated Test Language for All Systems
  • APPLY APPLY
  • MEASURE VERIFY
  • Another example of the signal definition or description standard can be found in the “IEEE P1641” standard.
  • graphical programming environments are widely employed to model and simulate engineering and scientific systems, including embedded control systems.
  • the graphical modeling environments provide tools for creating graphical models of the systems and for executing the graphical models.
  • Exemplary graphical modeling environments can be found in time-based block diagram modeling environments, such as those found within Simulink® from The MathWorks, Inc. of Natick, Mass., state-based and flow diagram modeling environments, such as those found within Stateflow® from The MathWorks, Inc. of Natick, Mass., data-flow diagram modeling environments and Unified Modeling Language (UML) modeling environments.
  • UML Unified Modeling Language
  • the high-level definitions or descriptions of signals are also needed for the users to create and simulate the graphical models regardless of the hardware that generate or measure the signals.
  • the present invention provides a graphical modeling environment in which a graphical model is generated and executed.
  • elements are provided to represent physical signals associated with resources that are coupled to the graphical modeling environment.
  • the elements include information to define or describe the physical signals associated with the resources regardless of the hardware of the resources.
  • Users are allowed to use the high-level signal definition or description elements to generate and execute the graphical model.
  • Users are able to create and execute the graphical model using the elements describing physical signals instead of incorporating elements that represent the hardware of the resources.
  • the users With the use of high-level signal definition or description elements, the users have the capability to deal with the physical signals transmitted to/from the resources without the specific knowledge of the hardware of the resources.
  • a method for describing physical signals in a graphical modeling environment.
  • the method includes the step of providing a graphical element for describing physical signals associated with a hardware component that transmits or receives the physical signals.
  • the method also includes the step of incorporating the element in the model.
  • a method for defining signals for a model in a graphical modeling environment.
  • the method includes the step of determining resources coupled to the modeling environment.
  • the method also includes the step of generating graphical elements that describe signals associated with the resources.
  • the graphical elements describe the signals associated with the resources regardless of hardware of the resources.
  • a system for describing signals for a model in a graphical modeling environment.
  • the system includes resources coupled to the modeling environment.
  • the system also includes a data structure for graphical elements that describe signals associated with the resources.
  • the data structure describes the signals associated with the resources regardless of hardware of the resources.
  • a computer program product holds instructions executable in a computer that provides an environment for modeling a system.
  • the computer program product provides a graphical element that describes signals associated with a hardware component that transmits or receives the signals.
  • the computer program product enables users to incorporate the element in the model.
  • a computer program product holds instructions executable in a computer that provides an environment for modeling a system.
  • the computer program product determines resources coupled to the modeling environment.
  • the computer program product generates graphical elements that describe signals associated with the resources.
  • the graphical elements describe the signals associated with the resources regardless of hardware of the resources.
  • FIG. 1 shows an exemplary computational device suitable for practicing the illustrative embodiment of the present invention
  • FIG. 2 depicts an exemplary block diagram modeling environment provided in the illustrative embodiment of the present invention
  • FIG. 3 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for creating and simulating a model in the block diagram modeling environment;
  • FIG. 4 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for generating signal definition or description elements in the block diagram modeling environment;
  • FIG. 5 displays a library that contains exemplary signal definition or description elements generated in the block diagram modeling environment
  • FIG. 6 is an exemplary model created in the block diagram modeling environment using the signal definition or description elements.
  • the illustrative embodiment of the present invention provides a graphical modeling environment in which a graphical model is generated and simulated/executed.
  • execution of the graphical model is also referred to as simulation.
  • the illustrative embodiment will be described solely for illustrative purposes relative to a block diagram modeling environment. Although the illustrative embodiment will be described relative to the block diagram modeling environment, one of skill in the art will appreciate that the present invention may apply to other graphical modeling environments including data flow modeling environments and Unified Modeling Language (UML) modeling environments.
  • UML Unified Modeling Language
  • One of skill in the art will also appreciate that the present invention may apply to other graphing tools including Microsoft Graph from Microsoft Corporation of Redmond, Wash.
  • Simulink® provides tools for modeling and simulating a variety of dynamic systems in one integrated, graphical environment. Simulink® enables users to design a block diagram for a target system, simulate the system's behavior, analyze the performance of the system, and refine the design of the system. Simulink® allows users to design target systems through a user interface that allows drafting of block diagram models of the target systems. All of the blocks in a block library provided by Simulink® and other programs are available to users when the users are building the block diagram of the target systems.
  • Simulink® there is also a textual interface with a set of commands that allow interaction with the graphical editor, such as the textual interface provided in MATLAB®. Using this textual interface, users may write special scripts that perform automatic editing operations on the block diagram. Simulink® also allows users to simulate the designed target systems to determine the behavior of the systems.
  • block elements are provided to define or describe signals associated with resources that are coupled to the block diagram modeling environment. Users are allowed to create and execute the block diagram model using the signal definition or description block elements.
  • This high-level signal definition or description block element defines or describes the signals associated with the resources regardless of the hardware of the resources. Therefore, users are able to create and execute the block diagram model without incorporating block elements representing the hardware of the resources. With the use of high-level signal definition or description elements, the users can deal with the signals associated with the resources without the specific knowledge about the hardware of the resources.
  • FIG. 1 is an exemplary computational device 100 suitable for practicing the illustrative embodiment of the present invention, which provides a block diagram modeling environment.
  • the computational device 100 is intended to be illustrative and not limiting of the present invention.
  • the computational device 100 may take many forms, including but not limited to a workstation, server, network computer, quantum computer, optical computer, bio computer, Internet appliance, mobile device, a pager, a tablet computer, and the like.
  • the computational device 100 may be electronic and include a Central Processing Unit (CPU) 110 , memory 120 , storage 130 , an input control 140 , a modem 150 , a network interface 160 , a display 170 , etc.
  • the CPU 110 controls each component of the computational device 100 to provide the block diagram modeling environment.
  • the memory 120 temporarily stores instruction and data and provides them to the CPU 110 so that the CPU 110 operates the computational device 100 and runs the block diagram modeling environment.
  • the storage 130 usually contains software tools for applications.
  • the storage 130 includes, in particular, code 131 for the operating system (OS) of the device, code 132 for applications running on the operation system including applications for the block diagram modeling environment, and data 133 for the models created in the block diagram modeling environment.
  • OS operating system
  • the input control 140 may interface with a keyboard 180 , a mouse 190 , and other input devices.
  • the computational device 100 may receive through the input control 140 input data necessary for creating models in the block diagram modeling environment, such as the selection of the attributes and operations of component blocks in the models.
  • the computational device 100 may display in the display 170 user interfaces for the users to edit the models in the block diagram modeling environment.
  • the network interface 160 and the MODEM 150 enable the computational device 100 to communicate with other electronic devices through communication networks, such as Internet, intranet, LAN (Local Area Network), WAN (Wide Area Network) and MAN (Metropolitan Area Network).
  • the communication facilities may support the distributed implementations of the present invention.
  • the computational device 100 which runs the block diagram model, may be coupled to various resources 195 .
  • the resources 195 may include signal source devices from which data or signals are provided, such as function generators.
  • the signal source devices may provide DC signals, AC signals, and many other waveforms of signals, for example, step signals, square wave signals, triangular signals, etc.
  • the resources 195 may also include signal sink devices to which data or signals are provided, such as transducers including pumps, motors and valves.
  • the resources 195 may include signal conditioning devices, such as an analog-to-digital (AD) converter that transforms high power signals to low-power logic signals in the range of, for example, 0-5V, and a digital-to-analog (DA) converter that transforms low-power logic signals to high power signals to drive the transducers.
  • the signal conditioning devices can provide interfaces between a digital controller and an analog plant in an embedded control system.
  • FIG. 2 depicts an exemplary block diagram modeling environment 200 provided in the illustrative embodiment.
  • the block diagram modeling environment 200 may include at least a model editor 210 , a model processing engine 220 and a model execution engine 230 .
  • FIG. 3 is a flow chart showing an exemplary operation of the block diagram modeling environment 200 in the illustrative embodiment.
  • Users may create their block diagram model 240 using the model editor 210 (step 310 ).
  • the editor 210 allows users to perform such actions as draw, edit, annotate, save, and print out block diagram representations of systems.
  • the block diagram model editor 210 may provide a graphical user interface (GUI) component that allows drafting of block diagram model 240 by the users. Methods used in editing are called by the block diagram editor 210 in order to render the block appropriately in the GUI of its parent block diagram.
  • the block diagram model editor 210 may allow users to specify the parameters for the block when they use it in their models.
  • GUI graphical user interface
  • the users may use block elements provided in the block diagram modeling environment 200 .
  • the block elements may be contained in the library 250 .
  • An exemplary block library can be found in Blocksets from The MathWorks, Inc. of Natick, Mass., including Gauges Blockset, Aerospace Blockset, Signal Processing Blockset, etc.
  • the users may also define their own block elements with desired functions and use them in the block diagram model 240 .
  • the users may define their own block elements using, for example, the S-function provided in Simulink®.
  • the block diagram modeling environment 200 provides signal definition or description block elements to define or describe signals associated with the resources 195 that are coupled to the block diagram modeling environment 200 .
  • Users can create the block diagram model 240 using the signal definition or description block elements.
  • the high-level signal definition or description block elements define or describe the signals associated with the resources 195 regardless of the hardware of the resources 195 . Therefore, users are able to create and execute the block diagram model 240 without incorporating block elements representing the hardware of the resources. With the use of high-level signal definition or description elements, the users can deal with the signals associated with the resources without the specific knowledge about the hardware of the resources.
  • FIG. 4 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for generating signal definition or description block elements in the block diagram modeling environment 200 .
  • Users may input a request for determining resources 195 coupled to the block diagram modeling environment 200 (step 410 ).
  • users may input a “getresources” command in a MATLAB® command line, which provides a foundation for Simulink®.
  • the block diagram modeling environment 200 determines the resources 195 coupled to the block diagram modeling environment 200 (step 420 ).
  • the resources 195 coupled to the block diagram modeling environment 200 can be determined using many kinds of tools provided by various vendors, such as Instrument Control Toolbox and Data Acquisition Tools provided by The MathWorks, Inc. of Natick, Mass.
  • the resources 195 are determined in response to the request from the users in the illustrative embodiment, one of skill in the art will appreciate that the determination can is made in a different manner, for example, when the block diagram modeling environment 200 is initialized or each time when a new resource is coupled to the block diagram modeling environment 200 . It may be preferable to have the resources 195 determined during initialization time and not force the user to enter the “getresource” command.
  • the block diagram modeling environment 200 looks up the resources 195 in the database of the block diagram modeling environment 200 (step 430 ).
  • the block diagram modeling environment 200 searches a directory, or other suitable database, such as files or look up tables, for the resources 195 .
  • users may download information for the resources 195 from a remote data center that retains data for the resources 195 .
  • the block diagram modeling environment 200 can build the block elements for defining or describing signals associated with the resources 195 and store the block elements in the library 250 so that users can use the signal definition or description block elements in creating or editing the model 240 (step 440 ).
  • XML can be used to map the resources 195 to the corresponding block elements for defining or describing signals associated with the resources 195 .
  • the Instrument Definition XML from IEEE can help map the resource instrument to the corresponding block element.
  • FIG. 5 shows an exemplary library 500 that contains exemplary signal definition or description block elements 510 and 520 for the resources 195 .
  • the exemplary library 500 contains a DC voltage definition or description block 510 and an AC voltage definition or description block 520 for Resource 1 - 1 and Resource 1 - 2 , respectively, which are coupled to the block diagram modeling environment 200 .
  • the block elements 510 and 520 are illustrative and the present invention may generate many other kinds of block elements describing different signals, such as an analog-to-digital converter block 530 .
  • the analog-to-digital (AD) converter block 530 may transform high power analog signals to their digital equivalent in the range of, for example, 0-5V.
  • the analog-to-digital (AD) converter block 530 may define or describe the transformation necessary for the mapping from the high power signals.
  • a typical base data-structure for the block elements 510 and 520 for the resources 195 may be represented as follows: class Block ⁇ public: // Access methods for setting/getting block data . . . // Methods for block editing virtual ErrorStatus BlockDrawIcon( ); virtual BlockParameterData BlockGetParameterData( ); . . . // Methods for block compilation . . . // Methods for block execution ........................................
  • the block data structure has a set of associated methods that may be categorized as access methods to data fields, methods used in editing, methods used in compilation and methods used in execution. Access methods to data fields help in setting and getting the various data fields of the block.
  • Methods used in editing are called by the block diagram editor in order to render the block appropriately in the GUI of its parent block diagram. For instance, this set of methods may include a BlockDrawIcon method that determines the shape the block icon has on the GUI.
  • Methods used in compilation are methods that are called by the block diagram compilation engine. They help validate the connections of the block to other blocks on the block diagram.
  • the methods used in execution include a number of different run-time methods that are required for execution.
  • the data fields of the block data structure may include a graphical attributes field, a functional attributes field, a compiled attributes field and an execution data field.
  • the graphical attributes field is responsible for storing information relevant for graphical rendering of the block within its parent block diagram's GUI. Attributes specific to the block icon, such as font, color, name and icon-image, are stored in this field. It should be noted that modifying these attributes does not affect the dynamics of the model using this block.
  • the functional attributes field is responsible for specifying block attributes that may potentially affect the dynamics of the model using this block. These attributes are specified for the block as a whole and the input and output ports of the block. Examples of block attributes include block sample times and restrictive flags. Block sample times specify if the block corresponds to an elemental, continuous, discrete, or hybrid dynamic system. If the block is an elemental discrete-time system, then the attribute specifies the spacing between time instants at which the block response should be traced. A restrictive flag disallows the use of blocks in certain modeling contexts. For example, one may impose the restriction that there may only be one instance of given block in a model.
  • Block port attributes specify properties of the data that is either available or produced at that port.
  • Block port attributes include dimensions, datatypes, sample rates, and direct feedthrough.
  • Dimension attributes are individual dimensions of a multi-dimensional matrix that is used as a container for data elements.
  • Datatype attributes are the datatype of each element of data in the data container.
  • a complexity attribute is a flag to specify if each data element is real or complex.
  • a sample rate attribute specifies how when the signal corresponding to an input or output port will be used. The port sample times may sometimes be used to implicitly infer the block's sample time.
  • the direct feedthrough attribute is specified only for input ports and indicates whether or not the Output and/or GetTimeOfNextHit equations of the block are a function of the given input. This attribute helps in determining the sequence in which block methods should be executed while executing the block diagram.
  • the data structure of the block elements 510 and 520 also include attributes for describing signals associated with the resources 195 coupled to the block diagram modeling environment 200 .
  • the attributes of the signals may include the type of signals, such as voltage signals, defined with respect to time.
  • One of ordinary skill in the art will appreciate that the attributes of the signals may define or describe other types of signals, such as signals representing events.
  • the DC voltage description block 510 may include following exemplary attributes depending on the waveform of the signal. WAVEFORM ATTRIBUTES Constant Amplitude Step Amplitude, Start Time Single Trapezoid Amplitude, Start Time, Rise Time, Pulse Width, Fall Time Single Ramp Amplitude, Start Time, Rise Time
  • the constant signal has one property, the amplitude of the signal.
  • the step signal makes transition from zero to a give level.
  • the step signal has two properties, the start time of the transition and the final amplitude level. Before the start time, the value is zero and after the art time, the value is the amplitude.
  • the AC voltage resource 520 may include following exemplary attributes depending on the shape of the signal.
  • WAVEFORM ATTRIBUTES Sinusoidal Amplitude, Frequency, Phase Trapezoid Amplitude, Period, Rise Time, Pulse Width, Fall Time Ramp Amplitude, Period, Rise Time Triangle Amplitude, Period, Duty Cycle Square Wave Amplitude, Period, Duty Cycle Waveform Ramp Amplitude, Period, Sampling Interval, Points Waveform Step Amplitude, Period, Sampling Interval, Points
  • the sinusoidal signal has amplitude, frequency and phase as parameters.
  • the block elements 510 and 520 may include values, such as a physical value and an associated dimension described by the units.
  • the value property assigns the complete physical value to the attributes of the signals. Changing property values may not affect other property values.
  • the following shows exemplary quantities and units.
  • the compiled attributes field of the block data structure holds the attributes of the block and its ports that mirror the functional attributes listed above. This field is filled in during block diagram compilation by utilizing the functional attributes of the block in conjunction with the functional and compiled attributes of the blocks that are connected to it. This process of determining the compiled attributes from the functional attributes is termed attribute propagation.
  • the execution data field is mainly responsible for storing the memory locations that are going to serve as sources for block inputs, outputs, states, parameters, and other work areas during execution of blocks.
  • the block elements 510 and 520 can be built using basic signal components that cannot be decomposed into simpler components.
  • the block elements 510 and 520 may contain a single basic signal component or combined basic signal components to define more complex signals.
  • the basic signal components can define static signals where the signals do not change over time.
  • the signal component can also define dynamic signal where the value of the attributes or the signal changes while the signal is being used.
  • the basic signal components are described in “IEEE P1641” standard in more detail with reference to a text-based programming language.
  • FIG. 6 is an exemplary model 600 created using the signal definition or description elements in the block diagram modeling environment 200 .
  • This simple model 600 includes the DC voltage definition or description block 510 , the AC voltage definition or description block 520 , and the analog-to-digital converter block 530 , which are depicted in FIG. 5 .
  • the model 600 also includes DC Amplitude block 610 , an AC Amplitude block 620 and a Scope block 630 .
  • the DC Amplitude block 610 may set the output level ( 1 in the model 600 ) of the DC power generator represented by the DC voltage definition or description block 510 .
  • the AC Amplitude block 620 may set the output level ( 10 in the model 600 ) of the AC power generator represented by the AC voltage definition or description block 520 .
  • the output signal or data of the analog-to-digital converter represented by the analog-to-digital converter block 530 is displayed in the Scope block 630 .
  • the DC voltage definition or description block 510 , the AC voltage definition or description block 520 and the analog-to-digital converter block 530 describe signals associated with resources, such as a DC signal generator, an AC signal generator and an analog-to-digital converter, that are coupled to the block diagram modeling environment 200 .
  • the DC voltage definition or description block 510 , the AC voltage definition or description block 520 and the analog-to-digital converter block 530 describe the signals in a manner that is independent of the hardware of the DC signal generator, the AC signal generator and the analog-to-digital converter, respectively.
  • the DC voltage description block 510 may describe signals produced by 33220A power supply from Agilent Technologies or by DAS 16/16-AO board from Measurement Computing Corp.
  • the DC voltage description block 5 10 , the AC voltage definition or description block 520 and the analog-to-digital converter block 530 can describe signals regardless of the hardware of the resources, the users can use the DC voltage description block 510 , the AC voltage definition or description block 520 and the analog-to-digital converter block 530 without any knowledge about the hardware of the resources associated with the signals.
  • the block diagram model 240 is compiled and executed by the model processing engine 220 and the model execution engine 230 , respectively.
  • the model processing engine 220 carries out the task of compiling and linking the block diagram to produce an “in-memory executable” version of the model that is used for generating code and/or simulating or linearizing a block diagram model (step 320 ).
  • the compilation stage involves preparing data structures and evaluating parameters, configuring and propagating block characteristics, determining block connectivity, and performing block reduction and block insertion.
  • the model processing engine 220 uses the result of the compiled stage to allocate memory needed for the execution of the various components of the block diagram.
  • the linking stage also produces block method execution lists which are used by the simulation or linearization of the block diagram.
  • the model processing engine 220 may generate code. If this stage is performed, then the stages that follow use the generated code during the execution of the block diagram. If this stage is skipped completely, then the execution engine 230 uses an interpretive mode of execution for the block diagram (step 330 ).

Abstract

Methods, system and computer program products are disclosed for providing a graphical modeling environment in which a graphical model is generated and executed. In the graphical modeling environment, elements are provided to define or describe signals associated with resources that are coupled to the graphical modeling environment. The high-level signal definition or description elements define or describe the signals associated with the resources regardless of the hardware of the resources. With the use of high-level signal definition or description elements, the users have the capability to deal with the signals transmitted to/from the resources without the specific knowledge of the hardware of the resources.

Description

    RELATED APPLICATION
  • This application is a continuation of copending U.S. patent application Ser. No. 11/012,376, which was filed on Dec. 14, 2004, by Thomas Gaudette for Signal Definitions Or Descriptions In Graphical Modeling Environments.
  • FIELD OF THE INVENTION
  • The present invention relates generally to graphical modeling environments and more particularly to methods, systems and computer program products for providing signal definitions or descriptions in the graphical modeling environments.
  • BACKGROUND OF THE INVENTION
  • In an embedded control system, the interaction between the digital units, such as a controller, and the analog units, such as a controlled plant, of the system is critical. This interaction is accomplished generally by signal conditioning hardware, such as analog-to-digital (AD) and digital-to-analog (DA) converters. The signal conditioning hardware transforms low-power electrical signals in the operational range of logic signals (e.g., 0-5V) to high power signals to drive transducers, such as pumps, motors and valves, or vice versa.
  • ‘Smart sensors’ (such as the IEEE 1451 standard) alleviate the burden of signal communication between the digital and analog units of a system. The smart sensor includes a microprocessor that contains information about the measurement of the sensor, such as the unit and accuracy of the measurement. The microprocessor then communicates directly in terms of signal values instead of having to convert them in binary representations that concur with the selected digitization and gain of the signal conditioning hardware.
  • In some text-based programming environments, users are allowed to use high-level signal definitions or descriptions instead of having to provide a sequence of hardware dependent commands to obtain a certain set of data. The high-level signal definitions or descriptions define or describe signals regardless of the hardware that generates or measures the signals. There are many standard signal definition or description languages available for traditional text-based programming languages that allow users to define or describe signals, apply signals, and measure signals. In those languages, users do not need to care about the hardware used to generate or measure the signals. For example, the Abbreviated Test Language for All Systems (ATLAS) allows standard signal operations, such as APPLY, MEASURE and VERIFY. Another example of the signal definition or description standard can be found in the “IEEE P1641” standard.
  • Recently, graphical programming environments are widely employed to model and simulate engineering and scientific systems, including embedded control systems. The graphical modeling environments provide tools for creating graphical models of the systems and for executing the graphical models. Exemplary graphical modeling environments can be found in time-based block diagram modeling environments, such as those found within Simulink® from The MathWorks, Inc. of Natick, Mass., state-based and flow diagram modeling environments, such as those found within Stateflow® from The MathWorks, Inc. of Natick, Mass., data-flow diagram modeling environments and Unified Modeling Language (UML) modeling environments. In these graphical modeling environments, the high-level definitions or descriptions of signals are also needed for the users to create and simulate the graphical models regardless of the hardware that generate or measure the signals.
  • SUMMARY OF THE INVENTION
  • The present invention provides a graphical modeling environment in which a graphical model is generated and executed. In the graphical modeling environment, elements are provided to represent physical signals associated with resources that are coupled to the graphical modeling environment. The elements include information to define or describe the physical signals associated with the resources regardless of the hardware of the resources. Users are allowed to use the high-level signal definition or description elements to generate and execute the graphical model. Users are able to create and execute the graphical model using the elements describing physical signals instead of incorporating elements that represent the hardware of the resources. With the use of high-level signal definition or description elements, the users have the capability to deal with the physical signals transmitted to/from the resources without the specific knowledge of the hardware of the resources.
  • In one aspect of the present invention, a method is provided for describing physical signals in a graphical modeling environment. The method includes the step of providing a graphical element for describing physical signals associated with a hardware component that transmits or receives the physical signals. The method also includes the step of incorporating the element in the model.
  • In another aspect of the present invention, a method is provided for defining signals for a model in a graphical modeling environment. The method includes the step of determining resources coupled to the modeling environment. The method also includes the step of generating graphical elements that describe signals associated with the resources. The graphical elements describe the signals associated with the resources regardless of hardware of the resources.
  • In another aspect of the present invention, a system is provided for describing signals for a model in a graphical modeling environment. The system includes resources coupled to the modeling environment. The system also includes a data structure for graphical elements that describe signals associated with the resources. The data structure describes the signals associated with the resources regardless of hardware of the resources.
  • In another aspect of the present invention, a computer program product is provided that holds instructions executable in a computer that provides an environment for modeling a system. The computer program product provides a graphical element that describes signals associated with a hardware component that transmits or receives the signals. The computer program product enables users to incorporate the element in the model.
  • In another aspect of the present invention, a computer program product is provided that holds instructions executable in a computer that provides an environment for modeling a system. The computer program product determines resources coupled to the modeling environment. The computer program product generates graphical elements that describe signals associated with the resources. The graphical elements describe the signals associated with the resources regardless of hardware of the resources.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The aforementioned features and advantages, and other features and aspects of the present invention, will become better understood with regard to the following description and accompanying drawings, wherein:
  • FIG. 1 shows an exemplary computational device suitable for practicing the illustrative embodiment of the present invention;
  • FIG. 2 depicts an exemplary block diagram modeling environment provided in the illustrative embodiment of the present invention;
  • FIG. 3 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for creating and simulating a model in the block diagram modeling environment;
  • FIG. 4 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for generating signal definition or description elements in the block diagram modeling environment;
  • FIG. 5 displays a library that contains exemplary signal definition or description elements generated in the block diagram modeling environment; and
  • FIG. 6 is an exemplary model created in the block diagram modeling environment using the signal definition or description elements.
  • DETAILED DESCRIPTION
  • Certain embodiments of the present invention are described below. It is, however, expressly noted that the present invention is not limited to these embodiments, but rather the intention is that additions and modifications to what is expressly described herein also are included within the scope of the invention. Moreover, it is to be understood that the features of the various embodiments described herein are not mutually exclusive and can exist in various combinations and permutations, even if such combinations or permutations are not made express herein, without departing from the spirit and scope of the invention.
  • The illustrative embodiment of the present invention provides a graphical modeling environment in which a graphical model is generated and simulated/executed. In the description of the illustrative embodiment, execution of the graphical model is also referred to as simulation. The illustrative embodiment will be described solely for illustrative purposes relative to a block diagram modeling environment. Although the illustrative embodiment will be described relative to the block diagram modeling environment, one of skill in the art will appreciate that the present invention may apply to other graphical modeling environments including data flow modeling environments and Unified Modeling Language (UML) modeling environments. One of skill in the art will also appreciate that the present invention may apply to other graphing tools including Microsoft Graph from Microsoft Corporation of Redmond, Wash.
  • An exemplary block diagram modeling environment can be found in Simulink® from The MathWorks, Inc. of Natick, Mass. Simulink® provides tools for modeling and simulating a variety of dynamic systems in one integrated, graphical environment. Simulink® enables users to design a block diagram for a target system, simulate the system's behavior, analyze the performance of the system, and refine the design of the system. Simulink® allows users to design target systems through a user interface that allows drafting of block diagram models of the target systems. All of the blocks in a block library provided by Simulink® and other programs are available to users when the users are building the block diagram of the target systems. Individual users may be able to customize this model block to: (a) reorganize blocks in some custom format, (b) delete blocks they do not use, and (c) add custom blocks they have designed. The blocks may be dragged through some human-machine interface (such as a mouse or keyboard) from the block library on to the window (i.e., model canvas). In Simulink®, there is also a textual interface with a set of commands that allow interaction with the graphical editor, such as the textual interface provided in MATLAB®. Using this textual interface, users may write special scripts that perform automatic editing operations on the block diagram. Simulink® also allows users to simulate the designed target systems to determine the behavior of the systems.
  • The illustrative embodiment will be described below relative a block diagram model in Simulink®. Nevertheless, those of skill in the art will appreciate that the present invention may be practiced relative to models implemented in other graphical modeling environments, including but not limited to LabVIEW from National Instruments Corporation of Austin, Tex., and Rational Rose from IBM of White Plains, N.Y.
  • In the illustrative embodiment, block elements are provided to define or describe signals associated with resources that are coupled to the block diagram modeling environment. Users are allowed to create and execute the block diagram model using the signal definition or description block elements. This high-level signal definition or description block element defines or describes the signals associated with the resources regardless of the hardware of the resources. Therefore, users are able to create and execute the block diagram model without incorporating block elements representing the hardware of the resources. With the use of high-level signal definition or description elements, the users can deal with the signals associated with the resources without the specific knowledge about the hardware of the resources.
  • FIG. 1 is an exemplary computational device 100 suitable for practicing the illustrative embodiment of the present invention, which provides a block diagram modeling environment. One of ordinary skill in the art will appreciate that the computational device 100 is intended to be illustrative and not limiting of the present invention. The computational device 100 may take many forms, including but not limited to a workstation, server, network computer, quantum computer, optical computer, bio computer, Internet appliance, mobile device, a pager, a tablet computer, and the like.
  • The computational device 100 may be electronic and include a Central Processing Unit (CPU) 110, memory 120, storage 130, an input control 140, a modem 150, a network interface 160, a display 170, etc. The CPU 110 controls each component of the computational device 100 to provide the block diagram modeling environment. The memory 120 temporarily stores instruction and data and provides them to the CPU 110 so that the CPU 110 operates the computational device 100 and runs the block diagram modeling environment. The storage 130 usually contains software tools for applications. The storage 130 includes, in particular, code 131 for the operating system (OS) of the device, code 132 for applications running on the operation system including applications for the block diagram modeling environment, and data 133 for the models created in the block diagram modeling environment.
  • The input control 140 may interface with a keyboard 180, a mouse 190, and other input devices. The computational device 100 may receive through the input control 140 input data necessary for creating models in the block diagram modeling environment, such as the selection of the attributes and operations of component blocks in the models. The computational device 100 may display in the display 170 user interfaces for the users to edit the models in the block diagram modeling environment. The network interface 160 and the MODEM 150 enable the computational device 100 to communicate with other electronic devices through communication networks, such as Internet, intranet, LAN (Local Area Network), WAN (Wide Area Network) and MAN (Metropolitan Area Network). The communication facilities may support the distributed implementations of the present invention.
  • The computational device 100, which runs the block diagram model, may be coupled to various resources 195. The resources 195 may include signal source devices from which data or signals are provided, such as function generators. The signal source devices may provide DC signals, AC signals, and many other waveforms of signals, for example, step signals, square wave signals, triangular signals, etc. The resources 195 may also include signal sink devices to which data or signals are provided, such as transducers including pumps, motors and valves. The resources 195 may include signal conditioning devices, such as an analog-to-digital (AD) converter that transforms high power signals to low-power logic signals in the range of, for example, 0-5V, and a digital-to-analog (DA) converter that transforms low-power logic signals to high power signals to drive the transducers. The signal conditioning devices can provide interfaces between a digital controller and an analog plant in an embedded control system. One of ordinary skill in the art will appreciate that the resources 195 described above are illustrative and any other resources can be coupled to the computational device 100.
  • FIG. 2 depicts an exemplary block diagram modeling environment 200 provided in the illustrative embodiment. The block diagram modeling environment 200 may include at least a model editor 210, a model processing engine 220 and a model execution engine 230. FIG. 3 is a flow chart showing an exemplary operation of the block diagram modeling environment 200 in the illustrative embodiment. Users may create their block diagram model 240 using the model editor 210 (step 310). The editor 210 allows users to perform such actions as draw, edit, annotate, save, and print out block diagram representations of systems. The block diagram model editor 210 may provide a graphical user interface (GUI) component that allows drafting of block diagram model 240 by the users. Methods used in editing are called by the block diagram editor 210 in order to render the block appropriately in the GUI of its parent block diagram. The block diagram model editor 210 may allow users to specify the parameters for the block when they use it in their models.
  • In creating the block diagram model 240, the users may use block elements provided in the block diagram modeling environment 200. The block elements may be contained in the library 250. An exemplary block library can be found in Blocksets from The MathWorks, Inc. of Natick, Mass., including Gauges Blockset, Aerospace Blockset, Signal Processing Blockset, etc. The users may also define their own block elements with desired functions and use them in the block diagram model 240. The users may define their own block elements using, for example, the S-function provided in Simulink®.
  • In the illustrative embodiment, the block diagram modeling environment 200 provides signal definition or description block elements to define or describe signals associated with the resources 195 that are coupled to the block diagram modeling environment 200. Users can create the block diagram model 240 using the signal definition or description block elements. The high-level signal definition or description block elements define or describe the signals associated with the resources 195 regardless of the hardware of the resources 195. Therefore, users are able to create and execute the block diagram model 240 without incorporating block elements representing the hardware of the resources. With the use of high-level signal definition or description elements, the users can deal with the signals associated with the resources without the specific knowledge about the hardware of the resources.
  • FIG. 4 is a flow chart showing an exemplary operation of the illustrative embodiment of the present invention for generating signal definition or description block elements in the block diagram modeling environment 200. Users may input a request for determining resources 195 coupled to the block diagram modeling environment 200 (step 410). For example, users may input a “getresources” command in a MATLAB® command line, which provides a foundation for Simulink®. In response to the request from the users, the block diagram modeling environment 200 determines the resources 195 coupled to the block diagram modeling environment 200 (step 420). The resources 195 coupled to the block diagram modeling environment 200 can be determined using many kinds of tools provided by various vendors, such as Instrument Control Toolbox and Data Acquisition Tools provided by The MathWorks, Inc. of Natick, Mass. Although the resources 195 are determined in response to the request from the users in the illustrative embodiment, one of skill in the art will appreciate that the determination can is made in a different manner, for example, when the block diagram modeling environment 200 is initialized or each time when a new resource is coupled to the block diagram modeling environment 200. It may be preferable to have the resources 195 determined during initialization time and not force the user to enter the “getresource” command.
  • If the resources 195 are determined, the block diagram modeling environment 200 looks up the resources 195 in the database of the block diagram modeling environment 200 (step 430). The block diagram modeling environment 200 searches a directory, or other suitable database, such as files or look up tables, for the resources 195. One of ordinary skill in the art will appreciate that users may download information for the resources 195 from a remote data center that retains data for the resources 195. Using available information for the resources 195, the block diagram modeling environment 200 can build the block elements for defining or describing signals associated with the resources 195 and store the block elements in the library 250 so that users can use the signal definition or description block elements in creating or editing the model 240 (step 440). XML can be used to map the resources 195 to the corresponding block elements for defining or describing signals associated with the resources 195. For example, the Instrument Definition XML from IEEE can help map the resource instrument to the corresponding block element.
  • FIG. 5 shows an exemplary library 500 that contains exemplary signal definition or description block elements 510 and 520 for the resources 195. The exemplary library 500 contains a DC voltage definition or description block 510 and an AC voltage definition or description block 520 for Resource 1-1 and Resource 1-2, respectively, which are coupled to the block diagram modeling environment 200. One of ordinary skill in the art will also appreciate that the block elements 510 and 520 are illustrative and the present invention may generate many other kinds of block elements describing different signals, such as an analog-to-digital converter block 530. The analog-to-digital (AD) converter block 530 may transform high power analog signals to their digital equivalent in the range of, for example, 0-5V. The analog-to-digital (AD) converter block 530 may define or describe the transformation necessary for the mapping from the high power signals.
  • The information obtained for the resources 195 from the database of the block diagram modeling environment 200 or from a remote data center is used to build the data structure of the block elements 510 and 520 for the resources 195. A typical base data-structure for the block elements 510 and 520 for the resources 195 may be represented as follows:
    class Block {
     public:
       // Access methods for setting/getting block data
      . . .
       // Methods for block editing
       virtual ErrorStatus BlockDrawIcon( );
       virtual BlockParameterData BlockGetParameterData( );
      . . .
       // Methods for block compilation
      . . .
       // Methods for block execution
      .............................................
       virtual ErrorStatus BlockOutput( )  = 0;
       virtual ErrorStatus BlockDerivative( ) = 0;
       virtual ErrorStatus BlockUpdate( )  = 0;
      . . .
     private:
       BlockGraphicalData blkGraphicalAttributes;
       BlockFunctionalData blkFunctionalAttributes;
       BlockCompiledData blkCompiledAttributes;
       BlockExecutionData blkExecutionData;
      . . .
    };
  • Although the example of the data structure above is written in C++, those skilled in the art will recognize that equivalent data structures written in other languages may also be used.
  • The block data structure has a set of associated methods that may be categorized as access methods to data fields, methods used in editing, methods used in compilation and methods used in execution. Access methods to data fields help in setting and getting the various data fields of the block. Methods used in editing are called by the block diagram editor in order to render the block appropriately in the GUI of its parent block diagram. For instance, this set of methods may include a BlockDrawIcon method that determines the shape the block icon has on the GUI. Methods used in compilation are methods that are called by the block diagram compilation engine. They help validate the connections of the block to other blocks on the block diagram. The methods used in execution include a number of different run-time methods that are required for execution. These include the BlockOutput, BlockUpdate, BlockDerivative methods that realize the Output, Update, and Derivative equations discussed earlier in the context of dynamic systems. In addition, to these methods Simulink includes several other run-time methods, such as the Jacobian, Projection, ZeroCrossings, Enable, Disable, Initialize, EvalParams (check and process parameters), and GetTimeOfNextHit methods. It should be noted that there is no explicit method for algebraic equations because these are represented and processed
  • The data fields of the block data structure may include a graphical attributes field, a functional attributes field, a compiled attributes field and an execution data field.
  • The graphical attributes field is responsible for storing information relevant for graphical rendering of the block within its parent block diagram's GUI. Attributes specific to the block icon, such as font, color, name and icon-image, are stored in this field. It should be noted that modifying these attributes does not affect the dynamics of the model using this block.
  • The functional attributes field is responsible for specifying block attributes that may potentially affect the dynamics of the model using this block. These attributes are specified for the block as a whole and the input and output ports of the block. Examples of block attributes include block sample times and restrictive flags. Block sample times specify if the block corresponds to an elemental, continuous, discrete, or hybrid dynamic system. If the block is an elemental discrete-time system, then the attribute specifies the spacing between time instants at which the block response should be traced. A restrictive flag disallows the use of blocks in certain modeling contexts. For example, one may impose the restriction that there may only be one instance of given block in a model.
  • Attributes of block ports specify properties of the data that is either available or produced at that port. Block port attributes include dimensions, datatypes, sample rates, and direct feedthrough. Dimension attributes are individual dimensions of a multi-dimensional matrix that is used as a container for data elements. Datatype attributes are the datatype of each element of data in the data container. A complexity attribute is a flag to specify if each data element is real or complex. A sample rate attribute specifies how when the signal corresponding to an input or output port will be used. The port sample times may sometimes be used to implicitly infer the block's sample time. The direct feedthrough attribute is specified only for input ports and indicates whether or not the Output and/or GetTimeOfNextHit equations of the block are a function of the given input. This attribute helps in determining the sequence in which block methods should be executed while executing the block diagram.
  • The data structure of the block elements 510 and 520 also include attributes for describing signals associated with the resources 195 coupled to the block diagram modeling environment 200. The attributes of the signals may include the type of signals, such as voltage signals, defined with respect to time. One of ordinary skill in the art will appreciate that the attributes of the signals may define or describe other types of signals, such as signals representing events.
  • The DC voltage description block 510 may include following exemplary attributes depending on the waveform of the signal.
    WAVEFORM ATTRIBUTES
    Constant Amplitude
    Step Amplitude, Start Time
    Single Trapezoid Amplitude, Start Time, Rise Time, Pulse Width, Fall
    Time
    Single Ramp Amplitude, Start Time, Rise Time
  • For example, the constant signal has one property, the amplitude of the signal. The step signal makes transition from zero to a give level. Thus, the step signal has two properties, the start time of the transition and the final amplitude level. Before the start time, the value is zero and after the art time, the value is the amplitude. One of ordinary skill in the art will appreciate that the signals described above are illustrative and many other types of DC signals can be defined or described in other embodiments.
  • The AC voltage resource 520 may include following exemplary attributes depending on the shape of the signal.
    WAVEFORM ATTRIBUTES
    Sinusoidal Amplitude, Frequency, Phase
    Trapezoid Amplitude, Period, Rise Time, Pulse Width, Fall Time
    Ramp Amplitude, Period, Rise Time
    Triangle Amplitude, Period, Duty Cycle
    Square Wave Amplitude, Period, Duty Cycle
    Waveform Ramp Amplitude, Period, Sampling Interval, Points
    Waveform Step Amplitude, Period, Sampling Interval, Points
  • For example, a sinusoidal is a signal whereby the amplitude of the dependent variable is given by the formula:
    a=A sin(ωt+φ),
    where A is the amplitude, ω is 2π×frequency, and φ is the initial phase angle. The sinusoidal signal has amplitude, frequency and phase as parameters. One of ordinary skill in the art will appreciate that the signals described above are illustrative and many other types of AC signals can be defined or described in other embodiments.
  • The block elements 510 and 520 may include values, such as a physical value and an associated dimension described by the units. The value property assigns the complete physical value to the attributes of the signals. Changing property values may not affect other property values. The following shows exemplary quantities and units.
    QUANTITY UNIT
    Current Ampere (A)
    Frequency Hertz (Hz)
    Power Watt (W)
    Time Second/Minute/Hour (S/M/H)
    Voltage Volt (V)
  • One of ordinary skill in the art will appreciate that the quantities and units of signals described above are illustrative and many other quantities and their units can be used to describe signals in other embodiments.
  • The compiled attributes field of the block data structure holds the attributes of the block and its ports that mirror the functional attributes listed above. This field is filled in during block diagram compilation by utilizing the functional attributes of the block in conjunction with the functional and compiled attributes of the blocks that are connected to it. This process of determining the compiled attributes from the functional attributes is termed attribute propagation. The execution data field is mainly responsible for storing the memory locations that are going to serve as sources for block inputs, outputs, states, parameters, and other work areas during execution of blocks.
  • The block elements 510 and 520 can be built using basic signal components that cannot be decomposed into simpler components. The block elements 510 and 520 may contain a single basic signal component or combined basic signal components to define more complex signals. The basic signal components can define static signals where the signals do not change over time. The signal component can also define dynamic signal where the value of the attributes or the signal changes while the signal is being used. The basic signal components are described in “IEEE P1641” standard in more detail with reference to a text-based programming language.
  • FIG. 6 is an exemplary model 600 created using the signal definition or description elements in the block diagram modeling environment 200. This simple model 600 includes the DC voltage definition or description block 510, the AC voltage definition or description block 520, and the analog-to-digital converter block 530, which are depicted in FIG. 5. The model 600 also includes DC Amplitude block 610, an AC Amplitude block 620 and a Scope block 630. The DC Amplitude block 610 may set the output level (1 in the model 600) of the DC power generator represented by the DC voltage definition or description block 510. In a like manner, the AC Amplitude block 620 may set the output level (10 in the model 600) of the AC power generator represented by the AC voltage definition or description block 520. The output signal or data of the analog-to-digital converter represented by the analog-to-digital converter block 530 is displayed in the Scope block 630.
  • The DC voltage definition or description block 510, the AC voltage definition or description block 520 and the analog-to-digital converter block 530 describe signals associated with resources, such as a DC signal generator, an AC signal generator and an analog-to-digital converter, that are coupled to the block diagram modeling environment 200. The DC voltage definition or description block 510, the AC voltage definition or description block 520 and the analog-to-digital converter block 530 describe the signals in a manner that is independent of the hardware of the DC signal generator, the AC signal generator and the analog-to-digital converter, respectively. For example, the DC voltage description block 510 may describe signals produced by 33220A power supply from Agilent Technologies or by DAS 16/16-AO board from Measurement Computing Corp. Because the DC voltage description block 5 10, the AC voltage definition or description block 520 and the analog-to-digital converter block 530 can describe signals regardless of the hardware of the resources, the users can use the DC voltage description block 510, the AC voltage definition or description block 520 and the analog-to-digital converter block 530 without any knowledge about the hardware of the resources associated with the signals.
  • Referring back to FIG. 3, when the block diagram model 240 is created or edited, the block diagram model 240 is compiled and executed by the model processing engine 220 and the model execution engine 230, respectively. The model processing engine 220 carries out the task of compiling and linking the block diagram to produce an “in-memory executable” version of the model that is used for generating code and/or simulating or linearizing a block diagram model (step 320). The compilation stage involves preparing data structures and evaluating parameters, configuring and propagating block characteristics, determining block connectivity, and performing block reduction and block insertion. In the link stage, the model processing engine 220 uses the result of the compiled stage to allocate memory needed for the execution of the various components of the block diagram. The linking stage also produces block method execution lists which are used by the simulation or linearization of the block diagram. After linking has been performed, the model processing engine 220 may generate code. If this stage is performed, then the stages that follow use the generated code during the execution of the block diagram. If this stage is skipped completely, then the execution engine 230 uses an interpretive mode of execution for the block diagram (step 330).
  • It will thus be seen that the invention attains the objectives stated in the previous description. Since certain changes may be made without departing from the scope of the present invention, it is intended that all matter contained in the above description or shown in the accompanying drawings be interpreted as illustrative and not in a literal sense. For example, the illustrative embodiment of the present invention may be practiced in any other graphical modeling environments, such as a state-based modeling environment. Practitioners of the art will realize that the sequence of steps and architectures depicted in the figures may be altered without departing from the scope of the present invention and that the illustrations contained herein are singular examples of a multitude of possible depictions of the present invention.

Claims (25)

1. A method for defining a signal in a graphical modeling environment to model a physical signal transmitted or received by a hardware component, the method comprising:
determining the hardware component is coupled to a computational device running the graphical modeling environment;
searching a database for information descriptive of the hardware component;
determining one or more signal attributes of the physical signal transmitted or received by the hardware component from the information descriptive of the hardware component;
generating a graphical element in the graphical modeling environment that represents the one or more signal attributes rather than the hardware component;
coupling the graphical element to one or more other graphical elements in a model in the graphical modeling environment, the graphical element to transmit the signal to, or receive the signal from, the one or more other graphical elements.
2. The method of claim 1 wherein the model is a block diagram and the graphical element is a block.
3. The method of claim 1 further comprising:
setting a level of the signal in response to a value provided by another graphical element in the model.
4. The method of claim 3 wherein the value is a signal amplitude.
5. The method of claim 1 further comprising:
displaying a level of the signal with another graphical element in the model.
6. The method of claim 1 wherein the database is located in a data center remote from the graphical modeling environment and the step of searching further comprises:
downloading the information descriptive of the hardware component from the data center to the graphical modeling environment.
7. The method of claim 1 wherein the step of generating further comprises:
building a data structure of the graphical element, the data structure including the one or more signal attributes, one or more graphical attributes descriptive of a graphical rendering of the graphical element, one or more functional attributes descriptive of dynamics of the model, and one or more port attributes descriptive of data transmitted or received by the graphical element.
8. The method of claim 1 wherein each of the one or more signal attributes has a type, and the type and number of the one or more signal attributes depends upon a waveform of the physical signal.
9. The method of claim 8 wherein at least one of the one or more signal attributes is selected from the group consisting of amplitude, start time, rise time, pulse width, fall time, frequency, phase, period, duty cycle, and sampling interval.
10. A computer-readable storage media comprising instructions for defining a signal in a block diagram modeling environment to model a physical signal transmitted or received by a resource, the instructions executable by a computer to:
determine the resource is coupled to the block diagram modeling environment;
perform a look-up operation to obtain information descriptive of the resource;
determine one or more signal attributes of the physical signal transmitted or received by the resource from the information descriptive of the resource;
generate a block in the block diagram modeling environment that represents the one or more signal attributes;
provide the block in a library of blocks available for use in the block diagram modeling environment; and
receive user input to couple the block to one or more other blocks in a block diagram of the block diagram modeling environment, to define the signal in the block diagram.
11. The computer-readable storage media of claim 10 wherein the instructions are further executable by the computer to:
transmit the signal to, or receive the signal from, the one or more other blocks in the block diagram.
12. The computer-readable storage media of claim 10 wherein the instructions are further executable by the computer to:
set a level of the signal in response to a value provided by another block in the block diagram.
13. The computer-readable storage media of claim 10 wherein the instructions are further executable by the computer to:
display a level of the signal with another block of the block diagram.
14. The computer-readable storage media of claim 10 wherein the look-up operation includes a download of the information descriptive of the resource from a remote data center.
15. The computer-readable storage media of claim 10 wherein the instructions are further executable by the computer to:
build a data structure of the block, the data structure including the one or more signal attributes, one or more graphical attributes descriptive of a graphical rendering of the graphical block, one or more functional attributes descriptive of dynamics of the model, and one or more port attributes descriptive of data transmitted or received by the block.
16. The computer-readable storage media of claim 10 wherein each of the one or more signal attributes has a type, and the type and number of the one or more signal attributes depends upon a waveform of the physical signal.
17. The computer-readable storage media of claim 16 wherein at least one of the one or more signal attributes is selected from the group consisting of amplitude, start time, rise time, pulse width, fall time, frequency, phase, period, duty cycle, and sampling interval.
18. An apparatus for defining a signal in a block diagram to model a physical signal transmitted or received by a hardware component, the apparatus comprising:
means for determining the hardware component is coupled to an environment associated with the block diagram;
means for determining a signal attribute of the physical signal transmitted or received by the hardware component.
means for generating a block that represents the signal attribute rather than the hardware component;
means for providing the block for use in the block diagram; and
means for coupling the block to one or more other blocks in the block diagram to define the signal in the block diagram.
19. The apparatus of claim 18 further comprising:
means for transmitting the signal to, or receiving the signal from, the one or more other blocks in the block diagram.
20. The apparatus of claim 18 further comprising:
means for setting a level of the signal in the block diagram.
21. The apparatus of claim 18 further comprising:
means for displaying a level of the signal in the block diagram
22. An apparatus for defining a signal in a graphical modeling environment to model a physical signal transmitted or received by a hardware component, the apparatus comprising:
a database including information descriptive of the hardware component, the database configured to be searched in response to detection of the hardware component being couple to the graphical modeling environment, the database to return the information descriptive of the hardware component;
a data structure of a graphical element, the data structure configured to store one or more signal attributes of the physical signal transmitted or received by the hardware component, the one or more signal attributes set in response to the information descriptive of the hardware component;
a library configured to provide the graphical element to a user; and
a model editor configured to allow the user to couple the graphical element to one or more other graphical elements in a model in the graphical modeling environment, to have the graphical element transmit the signal to, or receive the signal from, the one or more other graphical elements.
23. The apparatus of claim 22 wherein the model is a block diagram and the graphical element is a block.
24. The apparatus of claim 22 wherein the model editor is further configured to allow the user to set a level of the signal by coupling the graphical element to another graphical element in the model.
25. The apparatus of claim 22 wherein the mode editor is further configured to allow the user to display a level of the signal by coupling the graphical element to another graphical element in the model.
US11/827,465 2004-12-14 2007-07-11 Signal definitions or descriptions in graphical modeling environments Abandoned US20070260442A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/827,465 US20070260442A1 (en) 2004-12-14 2007-07-11 Signal definitions or descriptions in graphical modeling environments

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US11/012,376 US8849642B2 (en) 2004-12-14 2004-12-14 Signal definitions or descriptions in graphical modeling environments
US11/827,465 US20070260442A1 (en) 2004-12-14 2007-07-11 Signal definitions or descriptions in graphical modeling environments

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US11/012,376 Continuation US8849642B2 (en) 2004-12-14 2004-12-14 Signal definitions or descriptions in graphical modeling environments

Publications (1)

Publication Number Publication Date
US20070260442A1 true US20070260442A1 (en) 2007-11-08

Family

ID=36074650

Family Applications (2)

Application Number Title Priority Date Filing Date
US11/012,376 Expired - Fee Related US8849642B2 (en) 2004-12-14 2004-12-14 Signal definitions or descriptions in graphical modeling environments
US11/827,465 Abandoned US20070260442A1 (en) 2004-12-14 2007-07-11 Signal definitions or descriptions in graphical modeling environments

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US11/012,376 Expired - Fee Related US8849642B2 (en) 2004-12-14 2004-12-14 Signal definitions or descriptions in graphical modeling environments

Country Status (3)

Country Link
US (2) US8849642B2 (en)
EP (1) EP1831806A2 (en)
WO (1) WO2006065620A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296723B2 (en) * 2008-12-11 2012-10-23 International Business Machines Corporation Configurable unified modeling language building blocks

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005270A1 (en) * 2001-06-29 2003-01-02 Bartlett Andrew C. Programmable control of data attributes
US20030016234A1 (en) * 2001-07-18 2003-01-23 Ramamurthy Mani Implicit frame-based processing for block-diagram simulation
US20030107595A1 (en) * 2001-07-24 2003-06-12 Ciolfi John Edward Handling parameters in block diagram modeling
US20040210831A1 (en) * 2003-04-16 2004-10-21 Haihua Feng Signal navigation and label propagation in block diagrams
US20040210592A1 (en) * 2003-04-16 2004-10-21 Ciolfi John Edward System and method for using execution contexts in block diagram modeling
US20050039160A1 (en) * 2003-08-15 2005-02-17 Santori Michael L. Mixed signal analysis system and method of use

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6606588B1 (en) * 1997-03-14 2003-08-12 Interuniversitair Micro-Elecktronica Centrum (Imec Vzw) Design apparatus and a method for generating an implementable description of a digital system
US6226776B1 (en) * 1997-09-16 2001-05-01 Synetry Corporation System for converting hardware designs in high-level programming language to hardware implementations
US6298320B1 (en) * 1998-02-17 2001-10-02 Applied Microsystems Corporation System and method for testing an embedded microprocessor system containing physical and/or simulated hardware
US6425762B1 (en) * 1998-02-24 2002-07-30 Wind River Systems, Inc. System and method for cosimulation of heterogeneous systems
US6272451B1 (en) * 1999-07-16 2001-08-07 Atmel Corporation Software tool to allow field programmable system level devices
FR2797958B1 (en) * 1999-08-31 2001-10-26 Alstom METHOD AND DEVICE FOR TESTING THE OPERATION OF AN ELECTRONIC UNIT BY SIMULATION AND INSTALLATION FOR TESTING UNIT ON BOARD ON RAILWAY EQUIPMENT OR AN ELECTRIC VEHICLE
US7107202B1 (en) * 2000-01-31 2006-09-12 Intel Corporation Method and apparatus for hardware and software co-simulation
US6993469B1 (en) * 2000-06-02 2006-01-31 Arm Limited Method and apparatus for unified simulation
US7627462B2 (en) * 2001-11-27 2009-12-01 Arm Limited Hardware simulation using a test scenario manager
US7472054B2 (en) * 2002-06-03 2008-12-30 Broadcom Corporation Method and system for deterministic control of an emulation
US7440885B2 (en) * 2002-06-03 2008-10-21 Broadcom Corporation Method and system for deterministic control of an emulation
US7472055B2 (en) * 2002-06-03 2008-12-30 Broadcom Corporation Method and system for deterministic control of an emulation
US7366651B1 (en) * 2003-03-14 2008-04-29 Xilinx, Inc. Co-simulation interface
US7316009B2 (en) * 2003-08-06 2008-01-01 National Instruments Corporation Emulation of a programmable hardware element
US7191111B2 (en) * 2003-09-11 2007-03-13 International Business Machines Corporation Method, apparatus, and computer program product for implementing dynamic cosimulation
US20050066305A1 (en) * 2003-09-22 2005-03-24 Lisanke Robert John Method and machine for efficient simulation of digital hardware within a software development environment
US7490032B1 (en) * 2004-09-20 2009-02-10 The Mathworks, Inc. Framework for hardware co-simulation by on-demand invocations from a block model diagram design environment
US7568178B2 (en) * 2006-10-18 2009-07-28 National Insturments Corporation System simulation and graphical data flow programming in a common environment using wire data flow
US8600722B1 (en) * 2007-05-22 2013-12-03 Xilinx, Inc. Method and apparatus for providing program-based hardware co-simulation of a circuit design

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005270A1 (en) * 2001-06-29 2003-01-02 Bartlett Andrew C. Programmable control of data attributes
US20030016234A1 (en) * 2001-07-18 2003-01-23 Ramamurthy Mani Implicit frame-based processing for block-diagram simulation
US20030107595A1 (en) * 2001-07-24 2003-06-12 Ciolfi John Edward Handling parameters in block diagram modeling
US20040210831A1 (en) * 2003-04-16 2004-10-21 Haihua Feng Signal navigation and label propagation in block diagrams
US20040210592A1 (en) * 2003-04-16 2004-10-21 Ciolfi John Edward System and method for using execution contexts in block diagram modeling
US20050039160A1 (en) * 2003-08-15 2005-02-17 Santori Michael L. Mixed signal analysis system and method of use

Also Published As

Publication number Publication date
US8849642B2 (en) 2014-09-30
WO2006065620A2 (en) 2006-06-22
WO2006065620A3 (en) 2006-09-14
EP1831806A2 (en) 2007-09-12
US20060129369A1 (en) 2006-06-15

Similar Documents

Publication Publication Date Title
US10235140B2 (en) Defining attributes of variables in a state chart of a technical computing environment
JP4982020B2 (en) Graphical programming system with distributed block diagram execution and user interface display
US7725877B2 (en) Graphical program which includes an I/O node for hardware abstraction
US7720662B1 (en) Visual representation of model execution results contributing to a failure condition in a model
US7599823B2 (en) Automated approach to resolving artificial algebraic loops
US8700368B1 (en) Variants in graphical modeling environments
US7650316B2 (en) Automatic generation of help information for specified systems
US7681151B2 (en) Management of functions for block diagrams
US7865350B1 (en) Partitioning a model in modeling environments
US8176471B2 (en) Static binding of nodes to virtual instruments in a graphical program
US7216334B2 (en) Self-determining behavior node for use in creating a graphical program
US8015544B1 (en) Model and subsystem function signatures
US8219923B2 (en) Automatic generation of documentation for specified systems
US20110093835A1 (en) Non-graphical model dependencies in graphical modeling environments
US7974823B1 (en) Test postcondition items for automated analysis and test generation
US20060036799A1 (en) Multi-platform development and execution of graphical programs
US20050107998A1 (en) Propagation of characteristics in a graphical model environment
US6874148B1 (en) System and method for exporting a graphical program to a shared library
US7412366B1 (en) Rate grouping during code generation for multi-rate models
US7900191B1 (en) System and method of using an active link in a state programming environment to locate an element in a graphical programming environment
US8849642B2 (en) Signal definitions or descriptions in graphical modeling environments
US7835895B1 (en) Signal inheritance in a graphical model environment
DeSoi et al. A graphical environment for user-interface design and development
Scott Hypernode model support for software design methodology modelling
Jablonski et al. Architecture of the DaltOn Data Integration System for Scientific Applications

Legal Events

Date Code Title Description
AS Assignment

Owner name: MATHWORKS, INC., THE, MASSACHUSETTS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:GAUDETTE, THOMAS;REEL/FRAME:019631/0499

Effective date: 20041220

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION