US20120316851A1 - Parameter promotion in a block diagram modeling environment - Google Patents

Parameter promotion in a block diagram modeling environment Download PDF

Info

Publication number
US20120316851A1
US20120316851A1 US13/459,281 US201213459281A US2012316851A1 US 20120316851 A1 US20120316851 A1 US 20120316851A1 US 201213459281 A US201213459281 A US 201213459281A US 2012316851 A1 US2012316851 A1 US 2012316851A1
Authority
US
United States
Prior art keywords
block
parameters
computer
subset
subsystem
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.)
Granted
Application number
US13/459,281
Other versions
US9058175B2 (en
Inventor
Yogesh Kamalkishore DALAL
Sanjai Singh
Saikiran S. THUNUGUNTLA
John Edward Ciolfi
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 US13/459,281 priority Critical patent/US9058175B2/en
Assigned to THE MATHWORKS, INC. reassignment THE MATHWORKS, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CIOLFI, JOHN EDWARD, DALAL, YOGESH KAMALKISHORE, SINGH, SANJAI, THUNUGUNTLA, SAIKIRAN S.
Publication of US20120316851A1 publication Critical patent/US20120316851A1/en
Priority to US13/835,918 priority patent/US9442702B1/en
Application granted granted Critical
Publication of US9058175B2 publication Critical patent/US9058175B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Definitions

  • SimulinkTM from The MathWorks, Inc. of Natick, Mass. is an example of a graphical modeling environment, specifically a block diagram environment. SimulinkTM allows users to create a pictorial model of a dynamic system. Models generated in SimulinkTM consist of a set of symbols, called blocks. Each block can have zero or more input ports, output ports, and states. Each block represents a dynamic system whose inputs, states, and outputs can change continuously and/or discretely at specific points in time. Since each block is a dynamic system, it is represented by a set of equations. The lines are used to connect the blocks' ports to one another, and represent time-varying quantities used by the block's equations.
  • a block is referred to as ‘atomic’ if its functional definition is outside the context of the model in which it is placed.
  • SimulinkTM has a set of predefined atomic blocks (e.g. Sum, Product, Gain), and the user can also create their own atomic blocks through user-written ‘S-functions’. Being atomic, S-functions' functional definitions are specified outside the context of the model, for example using C code or MATLAB ‘m’ code.
  • a ‘composite’ block is a block whose functional definition is specified through the model, using sets of atomic and composite blocks. SimulinkTM permits the user to specify ‘subsystems’, composite blocks whose definition consists of interconnected sets of predefined blocks, user-written S-functions, and other SimulinkTM subsystems. Subsystems can be nested hierarchically, defining a ‘model hierarchy.’
  • FIGS. 1A and 1B are diagrams that depict an exemplary overview of the promotion of parameters of a block to generate a custom masked block and an associated custom mask dialog;
  • FIG. 2 is an exemplary network environment in which block parameters may be promoted to generate custom masked blocks
  • FIG. 3 is a diagram of exemplary components of a server or client of FIG. 2 ;
  • FIG. 4 is an exemplary functional diagram of the server of FIG. 2 ;
  • FIG. 5 is a flowchart of an exemplary process for promoting parameters for a block, subsystem or multiple blocks for generating a custom masked block;
  • FIGS. 6-9D are diagrams that depict exemplary dialogs, block diagrams, and/or custom masked blocks associated with the process of FIG. 5 ;
  • FIG. 10 is a flowchart of an exemplary process for retrieving a custom masked block from a block library and for using the custom masked block in a modeling block diagram;
  • FIG. 11 is a diagram that depicts an exemplary custom masked dialog associated with the process of FIG. 10 .
  • Block diagram models consisting of one or more blocks, are utilized in a variety of modeling paradigms and application contexts in engineering and science.
  • a block can include elements from which models can be built and contains fields, called block parameters, which can be used to enter values that customize the behavior of the block.
  • reusable components for design can be packaged in groups (e.g., groups of blocks) and provided to build more complex systems.
  • a subsystem block can include a set of blocks that have been replaced by a single block called a subsystem block. As a model increases in size and complexity, the model can be simplified by grouping blocks into subsystems. Often, component designers abstract out the complexity of such complex systems from the end-user by providing a simplified external interface.
  • component designers need a mechanism to ensure that certain artifacts of these reusable components can be abstracted out and be controlled by an external interface. Also, in certain cases, component designers may feel the need to fix or limit some of the options available in the complex systems, thereby preventing such options from being visible to, or selectable by, the end-user. This allows component designers to enforce pre-configured sets of rules. Traditionally, the designs to achieve this desired behavior and flexibility, suffer from drawbacks in syntactic clarity, run-time performance, added complexity and poor error checking, resulting in a loosely integrated system.
  • a complex system communicates with different reusable components packaged inside the complex system using parameters controlling those reusable components. This can require the ability to control multiple parameters from multiple reusable components at different levels (e.g., hierarchical levels) inside of a complex system using a single point of control. It may also require the ability to choose and move parameters that are modifiable by the end-user in the system hierarchy.
  • Exemplary embodiments described herein overcome these and possibly other drawbacks of conventional approaches and allow component and system designers to build interfaces to those systems with a finer, flexible, syntactically better and automated approach.
  • a mask can be a customer user interface (e.g., a dialog) for a block (e.g., a Simulink block).
  • the mask hides the native user interface of the underlying block, substituting an icon and a parameters dialog box defined by the mask.
  • the component designer can provide interface customization, logic encapsulation, and data hiding or obfuscation.
  • the component designer can specify mask parameters which can provide an external user interface allowing users to communicate with different reusable components wrapped under the mask.
  • Parameter promotion can introduce a new mask parameter type referred to as promote, which component designers can use to promote parameters from different levels inside of a complex system to that mask parameter.
  • This mask parameter in turn controls the parameters associated with it. Setting the value of the mask parameter also sets the value of all the associated promoted parameters.
  • the mask parameter of promote type itself can be promoted thereby allowing building a complex nested chain of promoted parameters. This provides greater flexibility to the component designer while assimilating different reusable components to build a complex system.
  • any direct edit of the parameter's value may be disallowed.
  • the parameter may, in some implementations, only be set via the mask parameter to which this parameter is promoted.
  • the mask parameter of promote type also inherits various key properties from the associated promoted parameters. This helps the component designer in building a highly integrated interface. It also ensures that if some of these properties of the promoted parameters are changed in the future version the mask parameter will inherit them providing auto-update functionality with minimal to no overhead on the part of the component designer.
  • the mask editor may be the user interface that allows the component designer to define the mask. Using the mask editor, the component designer may be presented with a tree view of all the valid blocks inside the components whose parameters can be promoted. Each of these blocks may show all of the valid parameters which the component designer can choose to promote. The component designer can decide to promote multiple parameters to a single mask parameter provided they satisfy all the rules for multiple parameters to be promoted together. Appropriate error checking is done to ensure that only valid parameters can be coupled together thereby ensuring the sanity of the external interface.
  • FIGS. 1A and 1B illustrate an overview of the promotion of parameters of a block to generate a custom masked block and an associated custom mask dialog.
  • a block diagram model 100 may include multiple blocks (sine wave, Gain, and Scope shown as an example), and a block author 105 (e.g., a library block author) may select a block 110 from model 100 for parameter promotion and the generation of a custom masked block (Gain block shown being selected in FIG. 1A ).
  • Block author 105 may use a mask editor dialog 115 and a promoted parameter selector dialog 120 to promote a set of selected mask parameters 130 , from built-in block parameters, to a custom masked block 125 .
  • a built-in block, and its corresponding built-in parameters represent a standardized block and its associated parameters that were previously created and stored in memory for use in modeling a system or subsystem.
  • the promoted set of mask parameters 130 represent a portion (e.g., a subset) of the built-in parameters from the original block that may be editable by an eventual block user when creating a customized masked block that can be used in a block model diagram.
  • promoting a built-in parameter for a block to a mask parameter includes block author 105 selecting what block specific parameters of custom masked block 125 may be editable by an eventual block user when customizing the masked block 125 for use in a block model diagram.
  • block author 105 may add custom information to custom masked block 125 (e.g., company notes, custom parameters, etc.).
  • Custom masked block 125 may further include other block parameters 135 that were not promoted to custom masked block 125 (i.e., other built-in block parameters of block 110 ).
  • custom masked block 125 may be subsequently stored in a block library 140 for future retrieval and use by a block user 145 .
  • Block user 145 may retrieve custom masked block 125 from block library 140 via a custom mask dialog 150 that may present the promoted mask parameters 130 (i.e., the specific promoted block parameters that may be edited) to block user 145 for editing their values.
  • Custom masked block 125 with promoted and/or edited mask parameters, may be used by block user 145 in a block model diagram 155 to model a system or subsystem.
  • Custom mask dialog 150 may be realized as a non-modal or modal window separate from other windows, or it can be a region of an existing window, or other graphical interface.
  • Promotion of block parameters to a mask can provide the block author (e.g., block author 105 ) the ability to choose a valid parameter from any block and move it up in the model hierarchy. Promotion of block parameters to a mask further gives the block author the ability to control multiple parameters at any level in the model hierarchy via a single parameter and to lock down a parameter that the block author does not want to expose to block users. Promotion of block parameters to a mask further allows the building of a nested chain of promoted parameters inside complex system models.
  • the block user 145 can configure the custom block 125 using the custom mask dialog 150 or the block user 145 can configure the custom block parameters defined using a textual (programmatic) Application Programming Interface (API) (not shown) which lets block user 145 programmatically set the promoted parameters 130 and, possibly, additional (other) parameters (e.g., other block parameters 135 ) using an API which accepts the parameter names and values.
  • API Application Programming Interface
  • An example API using the MATLAB programming language would be:
  • the first argument for setparam may either be a string or handle to the custom masked block 125
  • the second argument may be the name of the promoted mask parameter 130 or the additional other parameter(s)
  • the third argument may be the value for the parameter
  • Promotion of parameters simplifies the construction of new blocks from existing blocks by re-using existing parameter elements.
  • development of a custom block dialog required creating a new parameter and associating it with an existing parameter. Having to create new parameters and form the association takes more steps and is error prone. For example, when creating new parameters and associating them with existing parameters, it is very easy to make mistakes where the properties of the new parameter are not identical to the associated parameter.
  • the use of promoted parameters both simplifies the creation of new custom block dialogs and eliminates common failure modes.
  • FIG. 2 is an exemplary network environment 200 in which block parameters may be promoted to generate custom masked blocks.
  • Network environment 200 may include one or more clients 210 - 1 through 210 - n that may connect to a server 220 via one or more network(s) 230 .
  • Network environment 200 may additionally include block library 140 , shown in FIGS. 1A and 1B , as a separate network entity from clients 210 - 1 through 210 - n and server 220 .
  • block library 140 may be integral to clients 210 - 1 through 210 - n and/or server 220 .
  • Multiple clients 210 and one server 220 have been illustrated as connected to network(s) 230 for simplicity. In practice, there may be more or fewer clients and servers.
  • a client may perform one or more functions of a server and a server may perform one or more functions of a client.
  • Clients 210 - 1 through 210 - n may include devices, such as a computer (e.g., desktop, laptop, palmtop or tablet computer), a wireless telephone, a personal digital assistant (PDA), a lap top, or another type of computation or communication device, a thread or process running on one of these devices, and/or an object executable by one of these devices.
  • Block author 105 may use, for example, server 220 to generate one or more custom masked blocks for storage in block library 140 .
  • Block users (not shown in FIG. 2 ) may further use respective clients 210 - 1 through 210 - n for retrieving the generated custom masked blocks from block library 140 and using the custom masked blocks in block diagram models for modeling systems or subsystems.
  • Server 220 may include one or more devices capable of executing instructions to perform an operation.
  • Server 220 may include, for example, a computer, a wireless device, a lap top, or another type of computation or communication device, a thread or process running on one of these devices, and/or an object executable by one of these devices.
  • Network(s) 230 may include one or more networks of any type, including a local area network (LAN); a wide area network (WAN); a metropolitan area network (MAN); a satellite network; a telephone network, such as the Public Switched Telephone Network (PSTN) or a Public Land Mobile Network (PLMN); an intranet, the Internet; or a combination of networks.
  • the PLMN(s) may further include a packet-switched sub-network, such as, for example, General Packet Radio Service (GPRS), Cellular Digital Packet Data (CDPD), or Mobile IP sub-network.
  • GPRS General Packet Radio Service
  • CDPD Cellular Digital Packet Data
  • FIG. 3 is a diagram of exemplary components of server 220 .
  • Clients 210 - 1 through 210 - n may be similarly configured.
  • Server 220 may include a bus 310 , a processing unit 315 , a main memory 320 , a read only memory (ROM) 330 , a storage device 340 , an input device 350 , an output device 360 , and a communication interface 370 .
  • Bus 310 may include a path that permits communication among the elements of server 220 .
  • Processing unit 315 may include one or more processors or microprocessors, or processing logic that may interpret and execute instructions.
  • Main memory 320 may include a random access memory (RAM) or another type of dynamic storage device that may store information and instructions for execution by processing unit 315 .
  • ROM 330 may include a ROM device or another type of static storage device that may store static information and instructions for use by processing unit 315 .
  • Storage device 340 may include a magnetic and/or optical recording medium and its corresponding drive.
  • Input device 350 may include a mechanism that permits an operator (e.g., block author 105 ) to input information to server 220 , such as a keyboard, a mouse, a pen, voice recognition and/or biometric mechanisms, etc.
  • Output device 360 may include a mechanism that outputs information to the operator, including a display, a printer, a speaker, etc.
  • Communication interface 370 may include any transceiver that enables server 220 to communicate with other devices and/or systems.
  • communication interface 370 may include mechanisms for communicating with another device or system via a network, such as network(s) 230 .
  • Server 220 may perform certain operations or processes, as will be described below. Server 220 may perform these operations in response to processing unit 315 executing software instructions contained in a computer-readable medium, such as memory 320 .
  • a computer-readable medium may be defined as a physical or logical memory device.
  • the software instructions may be read into memory 320 from another computer-readable medium, such as data storage device 340 , or from another device via communication interface 370 .
  • the software instructions contained in memory 320 may cause processing unit 315 to perform operations or processes that will be described later.
  • processing unit 315 may be used in place of or in combination with software instructions to implement embodiments described herein.
  • implementations described herein are not limited to any specific combination of hardware circuitry and software.
  • FIG. 4 is an exemplary functional diagram of server 220 .
  • the diagram of FIG. 4 depicts functional components that may be implemented by processing unit 315 , or in the case of data, implemented in memory 320 , ROM 330 or storage device 340 .
  • server 220 may include a technical computing environment (TCE) 410 , a graphical user interface (GUI) 420 , and block library 140 .
  • TCE technical computing environment
  • GUI graphical user interface
  • TCE 410 may include any hardware and/or software based logic that provides a computing environment that allows users to perform tasks related to disciplines, such as, but not limited to, mathematics, science, engineering, medicine, business, etc.
  • TCE 410 may include a dynamically-typed programming language (e.g., the M language) that can be used to express problems and/or solutions in mathematical notations.
  • M language e.g., the M language
  • TCE 410 may be adapted to perform matrix and/or vector formulations that can be used for data analysis, data visualization, application development, simulation, modeling, algorithm development, etc. These matrix and/or vector formulations may be used in many areas, such as statistics, image processing, signal processing, control design, life sciences modeling, discrete event analysis and/or design, state based analysis and/or design, etc.
  • TCE 410 may further provide mathematical functions and/or graphical tools (e.g., for creating plots, surfaces, images, volumetric representations, etc.). In one implementation, TCE 410 may provide these functions and/or tools using toolboxes (e.g., toolboxes for signal processing, image processing, data plotting, parallel programming, etc.). In another implementation, TCE 410 may provide these functions as block sets. In still another implementation, TCE 410 may provide these functions in another way, such as via a library, etc.
  • toolboxes e.g., toolboxes for signal processing, image processing, data plotting, parallel programming, etc.
  • TCE 410 may provide these functions as block sets. In still another implementation, TCE 410 may provide these functions in another way, such as via a library, etc.
  • TCE 410 may be implemented as a text-based environment (e.g., the MATLAB® programming language from “The MathWorks”); Octave; Python; Comsol Script; MATRIXx from National Instruments; Mathematica from Wolfram Research, Inc.; Mathcad from Mathsoft Engineering & Education Inc.; Maple from Maplesoft; Extend from Imagine That Inc.; Scilab from The French Institution for Research in Computer Science and Control (INRIA); Virtuoso from Cadence; Modelica or Dymola from Dynasim; Ptolemy from the University of California at Berkeley; etc.), a graphically-based environment (e.g., Simulink®, Stateflow®, SimEventsTM, etc., by The MathWorks, Inc.; VisSim by Visual Solutions; LabViewt by National Instruments; Dymola by Dynasim; SoftWIRE by Measurement Computing; WiT by DALSA Coreco; VEE Pro or SystemVue by Agilent; Vision Program Manager from PPT Vision; Khoros from Khoral Research;
  • GUI 420 may include any type of graphical interface that may receive user input for generating and/or using custom masked blocks. GUI 420 may present mask editor dialogs, promoted parameter selector dialogs, and custom mask dialogs.
  • Block library 140 may include a library of blocks, including built-in blocks and custom masked blocks, and their associated parameters. Block library 140 may be accessed to retrieve built-in blocks or custom masked blocks.
  • Client 210 may, in some implementations, include the same or similar functional components as those shown in FIG. 4 . In some implementations, server 220 or client 210 may include fewer, different or additional functional components than those depicted in FIG. 4 .
  • FIG. 5 is a flowchart of an exemplary process for promoting parameters for a block, subsystem or multiple blocks, for generating a custom masked block.
  • the process exemplified by FIG. 5 may be implemented by processing unit 315 of server 220 .
  • the process exemplified by FIG. 5 may be implemented by processing unit 315 of client 210 .
  • the exemplary process may include receiving selection of a block, subsystem or multiple blocks from a block diagram modeling environment (block 500 ).
  • Block author 105 may select either a single block, a subsystem (i.e., comprising multiple blocks arranged in a single subsystem), or multiple blocks (e.g., multiple related or interconnected blocks).
  • a subsystem may include a set of underlying blocks that has been graphically replaced by a single block called a subsystem block.
  • a subsystem block reduces the number of blocks displayed in a block diagram window and enables the component designer to establish a hierarchical block diagram, where the subsystem block is in one layer of the block diagram, and child blocks that make up the subsystem are in another layer of the subsystem block.
  • a subsystem can include two or more layers of child blocks arranged in hierarchies within the subsystem.
  • the component designer may create a mask to the subsystem which acts as a user interface that allows block users to communicate with child blocks.
  • the component designer may promote necessary child block parameters to the subsystem mask, including promoting multiple child block parameters to a single mask that can control the multiple child block parameters.
  • Large models may contain thousands of blocks, and the component designer may promote parameters from multiple blocks within the model that may not be in a subsystem.
  • the multiple blocks may be in a same hierarchy, and a multi-block mask may be created that promotes block parameters of selected blocks to the mask. Setting the mask may automatically set the block parameters.
  • FIG. 6 depicts a block diagram 600 from which a block author (not shown) has selected 610 a Gain block. Selection may include, for example, hovering a cursor over the block to be selected and clicking on the underlying block. A create mask selection may be received for the block, subsystem or multiple blocks selected in block 500 (block 510 ). FIG. 6 depicts window 620 displayed over block diagram 600 that permits the block author to select the option create mask from other permissible options. For example, the block author may right click on the Gain block to display window 620 , move the cursor to hover over the create mask option, and then left click to select the create mask option from window 620 .
  • a mask editor dialog may be presented (block 520 ) and a parameter promotion selection may be received from the mask editor (block 530 ).
  • the mask editor dialog may permit block author 105 to promote all built-in block parameters to the mask in a single click.
  • the mask editor dialog may also permit block author 105 to promote selected block parameters to the mask.
  • FIG. 7 depicts a mask editor 700 that may be presented to block author 105 in response to selection of the create mask option in block 510 .
  • Block author 105 may select a button 710 that promotes all of the built-in block parameters to the mask.
  • Block author 105 may alternatively select a button 720 that permits the promotion of selected parameters to the mask via a promoted parameter selector dialog.
  • a parameter promotion selection dialog may be presented (block 540 ) and selection of parameters for promotion may be received via the parameter promotion dialog (block 550 ).
  • FIG. 8 depicts a promoted parameter selector dialog 800 presented to block author 105 in response to selection of button 720 from mask editor 700 .
  • Promoted parameter selector dialog 800 permits block author 105 to select one or more blocks, and their associated parameters, for promotion to the mask.
  • promoted parameter selector 800 may include a block field 810 that displays a list of blocks that may be selected for promotion to the mask. In the example of FIG. 8 , only a single block (e.g., Gain) has been selected for promotion to the mask.
  • Promoted parameter selector 800 may further include a promotable parameters field 820 that displays a list of parameters for the block selected in field 810 .
  • Block author 105 may select one or more parameters from field 820 for promotion to the mask.
  • Promoted parameter selector 800 may further include a promoted parameters field 830 that displays a list of parameters promoted to the mask by block author 105 from list 820 .
  • FIG. 9A depicts another example in which a block diagram 900 includes a subsystem block 905 having multiple child blocks.
  • FIG. 9A depicts a second block diagram 910 that includes the multiple child blocks 912 , 914 , 916 and 920 of subsystem block 905 . As further shown in FIG.
  • Block author 105 may select multiple child blocks from child blocks field 927 of a promoted parameter selector dialog 925 , and then may further select one or more parameters for promotion from promotable parameters field 930 of promoted parameter selector dialog 925 for each selected child block. Therefore, multiple promoted parameters of child blocks of a subsystem may be controlled via a single custom masked block. In some implementations, the block author may add custom information to the custom masked block (e.g., company notes, custom parameters, etc.).
  • FIG. 9C depicts a custom masked block dialog 935 for subsystem block 905 with promoted mask parameters 940 , 942 and 945 .
  • the values of promoted mask parameters 940 , 942 and 945 specified by block author 105 or block user 145 may be automatically applied to the child blocks of subsystem block 905 (e.g., child blocks 912 , 916 and 920 ), selected using child blocks field 927 of promoted parameter selector dialog 925 .
  • FIG. 9C further shows child dialog 950 for child block 912 having values for promoted mask parameters 940 , 942 and 945 from custom masked block dialog 935 .
  • FIG. 9C also depicts child dialog 955 for child block 916 having values for promoted mask parameters 942 and 945 from custom masked block dialog 935 .
  • FIG. 9C additionally shows child dialog 960 for child block 920 having a value for promoted mask parameter 945 from customer masked block dialog 935 .
  • FIG. 9D depicts an example of the selection of multiple selected blocks for parameter promotion from a larger model having many blocks to create a multi-block mask that promotes block parameters of the selected multiple blocks.
  • blocks 970 and 973 may be selected from block diagram 965 .
  • certain parameters shown as circled in FIG. 9D
  • block diagram 975 for block 973
  • block diagram 978 for block 970
  • custom masked block 980 may include the multiple parameters 985 promoted from block diagrams 975 and 978 for blocks 973 and 970 .
  • setting of the values of parameters of multi-block customer masked block 980 automatically sets the corresponding parameters of blocks 937 and 970 .
  • a custom masked block may be generated based on the promoted parameters (block 560 ).
  • the custom masked block may specify the parameters of the underlying built-in block or blocks that have been selected for promotion.
  • the promoted parameters may represent the parameters of the custom masked block that may be exposed to block user 145 for editing of the parameter values.
  • the generated custom masked block may be stored in a block library (block 570 ). Upon completion of parameter promotion selection, and generation of the custom masked block, the custom masked block may be stored in block library 140 for future retrieval by block user 145 .
  • FIG. 10 is a flowchart of an exemplary process for retrieving a custom masked block from block library 140 and for using the custom masked block in a block diagram.
  • the exemplary process of FIG. 10 may be implemented by processing unit 315 of server 220 or client 210 .
  • the exemplary process may include receiving selection of a custom masked block (block 1000 ).
  • Block user 145 at, for example, client 210 , may select a custom masked block, previously generated by library block author 105 , from storage in block library 140 .
  • a custom mask dialog for the custom masked block may be presented (block 1010 ).
  • the custom mask dialog may expose only the promoted parameters of the selected custom masked block for editing of their values by block user 145 (i.e., disallowing edits of values of other parameters of the custom masked block). Values of other parameters of the custom masked block may not be edited by block user 145 .
  • FIG. 11 depicts a custom mask dialog 1100 for a Gain block, and a typical dialog 1110 for a built-in Gain block. Edits of values of promoted parameters may be received via the custom mask dialog (block 1020 ). As shown in FIG. 11 , the block user may only edit values for a promoted parameter via custom mask dialog 1100 (e.g., values for the multiplication parameter in custom mask dialog 1100 shown in FIG. 11 . The custom masked block, with values edited by block user 145 , may subsequently be used in a block diagram modeling environment to model a system or subsystem.
  • logic may be implemented as “logic” or a “unit” that performs one or more functions.
  • This logic or unit may include hardware, such as one or more processors, microprocessors, application specific integrated circuits, or field programmable gate arrays, software, or a combination of hardware and software.
  • Logic for practicing aspects described herein may be provided to a client via a license.
  • This license may, in some implementations, be tiered so that users have varying degrees of flexibility and/or speed based on the licenses that they have.

Abstract

A computational device receives, from a user, a selection of a block, a subsystem or multiple blocks from a block diagram modeling environment, and presents, to the user, a set of parameters associated with the block, subsystem, or multiple blocks. The computational device receives, from the user, selection of a first subset of parameters from the set of parameters, and creates a customized dialog box by promoting the selected first subset of parameters to the customized dialog box, wherein the customized dialog box permits editing of values associated only with the first subset of parameters.

Description

    CROSS REFERENCE TO RELATED APPLICATION
  • This application claims priority from provisional application No. 61/494,213, filed Jun. 7, 2011, the disclosure of which is incorporated by reference herein in its entirety.
  • BACKGROUND
  • Simulink™ from The MathWorks, Inc. of Natick, Mass., is an example of a graphical modeling environment, specifically a block diagram environment. Simulink™ allows users to create a pictorial model of a dynamic system. Models generated in Simulink™ consist of a set of symbols, called blocks. Each block can have zero or more input ports, output ports, and states. Each block represents a dynamic system whose inputs, states, and outputs can change continuously and/or discretely at specific points in time. Since each block is a dynamic system, it is represented by a set of equations. The lines are used to connect the blocks' ports to one another, and represent time-varying quantities used by the block's equations.
  • A block is referred to as ‘atomic’ if its functional definition is outside the context of the model in which it is placed. Simulink™ has a set of predefined atomic blocks (e.g. Sum, Product, Gain), and the user can also create their own atomic blocks through user-written ‘S-functions’. Being atomic, S-functions' functional definitions are specified outside the context of the model, for example using C code or MATLAB ‘m’ code. A ‘composite’ block is a block whose functional definition is specified through the model, using sets of atomic and composite blocks. Simulink™ permits the user to specify ‘subsystems’, composite blocks whose definition consists of interconnected sets of predefined blocks, user-written S-functions, and other Simulink™ subsystems. Subsystems can be nested hierarchically, defining a ‘model hierarchy.’
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate one or more embodiments described herein and, together with the description, explain these embodiments. In the drawings,
  • FIGS. 1A and 1B are diagrams that depict an exemplary overview of the promotion of parameters of a block to generate a custom masked block and an associated custom mask dialog;
  • FIG. 2 is an exemplary network environment in which block parameters may be promoted to generate custom masked blocks;
  • FIG. 3 is a diagram of exemplary components of a server or client of FIG. 2;
  • FIG. 4 is an exemplary functional diagram of the server of FIG. 2;
  • FIG. 5 is a flowchart of an exemplary process for promoting parameters for a block, subsystem or multiple blocks for generating a custom masked block;
  • FIGS. 6-9D are diagrams that depict exemplary dialogs, block diagrams, and/or custom masked blocks associated with the process of FIG. 5;
  • FIG. 10 is a flowchart of an exemplary process for retrieving a custom masked block from a block library and for using the custom masked block in a modeling block diagram; and
  • FIG. 11 is a diagram that depicts an exemplary custom masked dialog associated with the process of FIG. 10.
  • DETAILED DESCRIPTION
  • The following detailed description refers to the accompanying drawings. The same reference numbers in different drawings may identify the same or similar elements. Also, the following detailed description does not limit the invention.
  • Block diagram models, consisting of one or more blocks, are utilized in a variety of modeling paradigms and application contexts in engineering and science. A block can include elements from which models can be built and contains fields, called block parameters, which can be used to enter values that customize the behavior of the block. In modeling paradigms, reusable components for design can be packaged in groups (e.g., groups of blocks) and provided to build more complex systems. A subsystem block can include a set of blocks that have been replaced by a single block called a subsystem block. As a model increases in size and complexity, the model can be simplified by grouping blocks into subsystems. Often, component designers abstract out the complexity of such complex systems from the end-user by providing a simplified external interface.
  • In doing so, component designers need a mechanism to ensure that certain artifacts of these reusable components can be abstracted out and be controlled by an external interface. Also, in certain cases, component designers may feel the need to fix or limit some of the options available in the complex systems, thereby preventing such options from being visible to, or selectable by, the end-user. This allows component designers to enforce pre-configured sets of rules. Traditionally, the designs to achieve this desired behavior and flexibility, suffer from drawbacks in syntactic clarity, run-time performance, added complexity and poor error checking, resulting in a loosely integrated system.
  • A complex system communicates with different reusable components packaged inside the complex system using parameters controlling those reusable components. This can require the ability to control multiple parameters from multiple reusable components at different levels (e.g., hierarchical levels) inside of a complex system using a single point of control. It may also require the ability to choose and move parameters that are modifiable by the end-user in the system hierarchy.
  • Exemplary embodiments described herein overcome these and possibly other drawbacks of conventional approaches and allow component and system designers to build interfaces to those systems with a finer, flexible, syntactically better and automated approach.
  • While building complex systems, component designers often abstract out the complexity of these systems by providing a simplified external interface. Masking may be used to provide such a custom user interface. A mask can be a customer user interface (e.g., a dialog) for a block (e.g., a Simulink block). The mask hides the native user interface of the underlying block, substituting an icon and a parameters dialog box defined by the mask. Using masks, the component designer can provide interface customization, logic encapsulation, and data hiding or obfuscation. The component designer can specify mask parameters which can provide an external user interface allowing users to communicate with different reusable components wrapped under the mask.
  • Parameter promotion can introduce a new mask parameter type referred to as promote, which component designers can use to promote parameters from different levels inside of a complex system to that mask parameter. This mask parameter in turn controls the parameters associated with it. Setting the value of the mask parameter also sets the value of all the associated promoted parameters.
  • The mask parameter of promote type itself can be promoted thereby allowing building a complex nested chain of promoted parameters. This provides greater flexibility to the component designer while assimilating different reusable components to build a complex system. Once the parameter is promoted, any direct edit of the parameter's value may be disallowed. The parameter may, in some implementations, only be set via the mask parameter to which this parameter is promoted.
  • The mask parameter of promote type also inherits various key properties from the associated promoted parameters. This helps the component designer in building a highly integrated interface. It also ensures that if some of these properties of the promoted parameters are changed in the future version the mask parameter will inherit them providing auto-update functionality with minimal to no overhead on the part of the component designer.
  • The mask editor may be the user interface that allows the component designer to define the mask. Using the mask editor, the component designer may be presented with a tree view of all the valid blocks inside the components whose parameters can be promoted. Each of these blocks may show all of the valid parameters which the component designer can choose to promote. The component designer can decide to promote multiple parameters to a single mask parameter provided they satisfy all the rules for multiple parameters to be promoted together. Appropriate error checking is done to ensure that only valid parameters can be coupled together thereby ensuring the sanity of the external interface.
  • Overview
  • FIGS. 1A and 1B illustrate an overview of the promotion of parameters of a block to generate a custom masked block and an associated custom mask dialog. As shown in FIG. 1A, a block diagram model 100 may include multiple blocks (sine wave, Gain, and Scope shown as an example), and a block author 105 (e.g., a library block author) may select a block 110 from model 100 for parameter promotion and the generation of a custom masked block (Gain block shown being selected in FIG. 1A).
  • Block author 105 may use a mask editor dialog 115 and a promoted parameter selector dialog 120 to promote a set of selected mask parameters 130, from built-in block parameters, to a custom masked block 125. A built-in block, and its corresponding built-in parameters represent a standardized block and its associated parameters that were previously created and stored in memory for use in modeling a system or subsystem. The promoted set of mask parameters 130 represent a portion (e.g., a subset) of the built-in parameters from the original block that may be editable by an eventual block user when creating a customized masked block that can be used in a block model diagram. Thus, promoting a built-in parameter for a block to a mask parameter includes block author 105 selecting what block specific parameters of custom masked block 125 may be editable by an eventual block user when customizing the masked block 125 for use in a block model diagram. In some implementations, block author 105 may add custom information to custom masked block 125 (e.g., company notes, custom parameters, etc.). Custom masked block 125 may further include other block parameters 135 that were not promoted to custom masked block 125 (i.e., other built-in block parameters of block 110).
  • As shown in FIG. 1B, custom masked block 125 may be subsequently stored in a block library 140 for future retrieval and use by a block user 145. Block user 145 may retrieve custom masked block 125 from block library 140 via a custom mask dialog 150 that may present the promoted mask parameters 130 (i.e., the specific promoted block parameters that may be edited) to block user 145 for editing their values. Custom masked block 125, with promoted and/or edited mask parameters, may be used by block user 145 in a block model diagram 155 to model a system or subsystem. Custom mask dialog 150 may be realized as a non-modal or modal window separate from other windows, or it can be a region of an existing window, or other graphical interface.
  • Promotion of block parameters to a mask can provide the block author (e.g., block author 105) the ability to choose a valid parameter from any block and move it up in the model hierarchy. Promotion of block parameters to a mask further gives the block author the ability to control multiple parameters at any level in the model hierarchy via a single parameter and to lock down a parameter that the block author does not want to expose to block users. Promotion of block parameters to a mask further allows the building of a nested chain of promoted parameters inside complex system models.
  • The block user 145 can configure the custom block 125 using the custom mask dialog 150 or the block user 145 can configure the custom block parameters defined using a textual (programmatic) Application Programming Interface (API) (not shown) which lets block user 145 programmatically set the promoted parameters 130 and, possibly, additional (other) parameters (e.g., other block parameters 135) using an API which accepts the parameter names and values. An example API using the MATLAB programming language would be:

  • set_param(‘argument 1’,‘argument 2’,‘argument 3’)
  • where the first argument for setparam may either be a string or handle to the custom masked block 125, the second argument may be the name of the promoted mask parameter 130 or the additional other parameter(s), and the third argument may be the value for the parameter.
  • Promotion of parameters simplifies the construction of new blocks from existing blocks by re-using existing parameter elements. Prior to the invention of promoted parameters, development of a custom block dialog required creating a new parameter and associating it with an existing parameter. Having to create new parameters and form the association takes more steps and is error prone. For example, when creating new parameters and associating them with existing parameters, it is very easy to make mistakes where the properties of the new parameter are not identical to the associated parameter. The use of promoted parameters both simplifies the creation of new custom block dialogs and eliminates common failure modes.
  • Exemplary Network Environment
  • FIG. 2 is an exemplary network environment 200 in which block parameters may be promoted to generate custom masked blocks. Network environment 200 may include one or more clients 210-1 through 210-n that may connect to a server 220 via one or more network(s) 230. Network environment 200 may additionally include block library 140, shown in FIGS. 1A and 1B, as a separate network entity from clients 210-1 through 210-n and server 220. However, in some implementations, block library 140 may be integral to clients 210-1 through 210-n and/or server 220. Multiple clients 210 and one server 220 have been illustrated as connected to network(s) 230 for simplicity. In practice, there may be more or fewer clients and servers. Also, in some instances, a client may perform one or more functions of a server and a server may perform one or more functions of a client.
  • Clients 210-1 through 210-n may include devices, such as a computer (e.g., desktop, laptop, palmtop or tablet computer), a wireless telephone, a personal digital assistant (PDA), a lap top, or another type of computation or communication device, a thread or process running on one of these devices, and/or an object executable by one of these devices. Block author 105 may use, for example, server 220 to generate one or more custom masked blocks for storage in block library 140. Block users (not shown in FIG. 2) may further use respective clients 210-1 through 210-n for retrieving the generated custom masked blocks from block library 140 and using the custom masked blocks in block diagram models for modeling systems or subsystems.
  • Server 220 may include one or more devices capable of executing instructions to perform an operation. Server 220 may include, for example, a computer, a wireless device, a lap top, or another type of computation or communication device, a thread or process running on one of these devices, and/or an object executable by one of these devices.
  • Network(s) 230 may include one or more networks of any type, including a local area network (LAN); a wide area network (WAN); a metropolitan area network (MAN); a satellite network; a telephone network, such as the Public Switched Telephone Network (PSTN) or a Public Land Mobile Network (PLMN); an intranet, the Internet; or a combination of networks. The PLMN(s) may further include a packet-switched sub-network, such as, for example, General Packet Radio Service (GPRS), Cellular Digital Packet Data (CDPD), or Mobile IP sub-network.
  • Exemplary Client/Server Architecture
  • FIG. 3 is a diagram of exemplary components of server 220. Clients 210-1 through 210-n may be similarly configured. Server 220 may include a bus 310, a processing unit 315, a main memory 320, a read only memory (ROM) 330, a storage device 340, an input device 350, an output device 360, and a communication interface 370. Bus 310 may include a path that permits communication among the elements of server 220.
  • Processing unit 315 may include one or more processors or microprocessors, or processing logic that may interpret and execute instructions. Main memory 320 may include a random access memory (RAM) or another type of dynamic storage device that may store information and instructions for execution by processing unit 315. ROM 330 may include a ROM device or another type of static storage device that may store static information and instructions for use by processing unit 315. Storage device 340 may include a magnetic and/or optical recording medium and its corresponding drive.
  • Input device 350 may include a mechanism that permits an operator (e.g., block author 105) to input information to server 220, such as a keyboard, a mouse, a pen, voice recognition and/or biometric mechanisms, etc. Output device 360 may include a mechanism that outputs information to the operator, including a display, a printer, a speaker, etc. Communication interface 370 may include any transceiver that enables server 220 to communicate with other devices and/or systems. For example, communication interface 370 may include mechanisms for communicating with another device or system via a network, such as network(s) 230.
  • Server 220, consistent with the embodiments described herein, may perform certain operations or processes, as will be described below. Server 220 may perform these operations in response to processing unit 315 executing software instructions contained in a computer-readable medium, such as memory 320. A computer-readable medium may be defined as a physical or logical memory device.
  • The software instructions may be read into memory 320 from another computer-readable medium, such as data storage device 340, or from another device via communication interface 370. The software instructions contained in memory 320 may cause processing unit 315 to perform operations or processes that will be described later. Alternatively, hardwired circuitry may be used in place of or in combination with software instructions to implement embodiments described herein. Thus, implementations described herein are not limited to any specific combination of hardware circuitry and software.
  • Exemplary Server Functional Diagram
  • FIG. 4 is an exemplary functional diagram of server 220. The diagram of FIG. 4 depicts functional components that may be implemented by processing unit 315, or in the case of data, implemented in memory 320, ROM 330 or storage device 340. As depicted in FIG. 4, at a functional level, server 220 may include a technical computing environment (TCE) 410, a graphical user interface (GUI) 420, and block library 140.
  • TCE 410 may include any hardware and/or software based logic that provides a computing environment that allows users to perform tasks related to disciplines, such as, but not limited to, mathematics, science, engineering, medicine, business, etc. In one implementation, TCE 410 may include a dynamically-typed programming language (e.g., the M language) that can be used to express problems and/or solutions in mathematical notations. For example, one or more languages provided in TCE 410 may use an array as a basic element, where the array may not require dimensioning. TCE 410 may be adapted to perform matrix and/or vector formulations that can be used for data analysis, data visualization, application development, simulation, modeling, algorithm development, etc. These matrix and/or vector formulations may be used in many areas, such as statistics, image processing, signal processing, control design, life sciences modeling, discrete event analysis and/or design, state based analysis and/or design, etc.
  • TCE 410 may further provide mathematical functions and/or graphical tools (e.g., for creating plots, surfaces, images, volumetric representations, etc.). In one implementation, TCE 410 may provide these functions and/or tools using toolboxes (e.g., toolboxes for signal processing, image processing, data plotting, parallel programming, etc.). In another implementation, TCE 410 may provide these functions as block sets. In still another implementation, TCE 410 may provide these functions in another way, such as via a library, etc.
  • TCE 410 may be implemented as a text-based environment (e.g., the MATLAB® programming language from “The MathWorks”); Octave; Python; Comsol Script; MATRIXx from National Instruments; Mathematica from Wolfram Research, Inc.; Mathcad from Mathsoft Engineering & Education Inc.; Maple from Maplesoft; Extend from Imagine That Inc.; Scilab from The French Institution for Research in Computer Science and Control (INRIA); Virtuoso from Cadence; Modelica or Dymola from Dynasim; Ptolemy from the University of California at Berkeley; etc.), a graphically-based environment (e.g., Simulink®, Stateflow®, SimEvents™, etc., by The MathWorks, Inc.; VisSim by Visual Solutions; LabViewt by National Instruments; Dymola by Dynasim; SoftWIRE by Measurement Computing; WiT by DALSA Coreco; VEE Pro or SystemVue by Agilent; Vision Program Manager from PPT Vision; Khoros from Khoral Research; Gedae by Gedae, Inc.; Scicos from (INRIA); Virtuoso from Cadence; Rational Rose from IBM; Rhopsody or Tau from Telelogic; aspects of a Unified Modeling Language (UML) or SysML environment; etc.), or another type of environment, such as a hybrid environment that includes one or more of the above-referenced text-based environments and one or more of the above-referenced graphically-based environments.
  • GUI 420 may include any type of graphical interface that may receive user input for generating and/or using custom masked blocks. GUI 420 may present mask editor dialogs, promoted parameter selector dialogs, and custom mask dialogs. Block library 140 may include a library of blocks, including built-in blocks and custom masked blocks, and their associated parameters. Block library 140 may be accessed to retrieve built-in blocks or custom masked blocks.
  • Client 210 may, in some implementations, include the same or similar functional components as those shown in FIG. 4. In some implementations, server 220 or client 210 may include fewer, different or additional functional components than those depicted in FIG. 4.
  • Exemplary Block Parameter Promotion Process
  • FIG. 5 is a flowchart of an exemplary process for promoting parameters for a block, subsystem or multiple blocks, for generating a custom masked block. In one implementation, the process exemplified by FIG. 5 may be implemented by processing unit 315 of server 220. In another implementation, the process exemplified by FIG. 5 may be implemented by processing unit 315 of client 210.
  • The exemplary process may include receiving selection of a block, subsystem or multiple blocks from a block diagram modeling environment (block 500). Block author 105 may select either a single block, a subsystem (i.e., comprising multiple blocks arranged in a single subsystem), or multiple blocks (e.g., multiple related or interconnected blocks). As models grow in size and complexity, the component designer can simplify the model by grouping blocks into subsystems. A subsystem may include a set of underlying blocks that has been graphically replaced by a single block called a subsystem block. A subsystem block reduces the number of blocks displayed in a block diagram window and enables the component designer to establish a hierarchical block diagram, where the subsystem block is in one layer of the block diagram, and child blocks that make up the subsystem are in another layer of the subsystem block. In some embodiments, a subsystem can include two or more layers of child blocks arranged in hierarchies within the subsystem. To abstract the complexity of child blocks of a subsystem block, the component designer may create a mask to the subsystem which acts as a user interface that allows block users to communicate with child blocks. The component designer may promote necessary child block parameters to the subsystem mask, including promoting multiple child block parameters to a single mask that can control the multiple child block parameters.
  • Large models may contain thousands of blocks, and the component designer may promote parameters from multiple blocks within the model that may not be in a subsystem. The multiple blocks may be in a same hierarchy, and a multi-block mask may be created that promotes block parameters of selected blocks to the mask. Setting the mask may automatically set the block parameters.
  • FIG. 6 depicts a block diagram 600 from which a block author (not shown) has selected 610 a Gain block. Selection may include, for example, hovering a cursor over the block to be selected and clicking on the underlying block. A create mask selection may be received for the block, subsystem or multiple blocks selected in block 500 (block 510). FIG. 6 depicts window 620 displayed over block diagram 600 that permits the block author to select the option create mask from other permissible options. For example, the block author may right click on the Gain block to display window 620, move the cursor to hover over the create mask option, and then left click to select the create mask option from window 620.
  • A mask editor dialog may be presented (block 520) and a parameter promotion selection may be received from the mask editor (block 530). The mask editor dialog may permit block author 105 to promote all built-in block parameters to the mask in a single click. The mask editor dialog may also permit block author 105 to promote selected block parameters to the mask. FIG. 7 depicts a mask editor 700 that may be presented to block author 105 in response to selection of the create mask option in block 510. Block author 105 may select a button 710 that promotes all of the built-in block parameters to the mask. Block author 105 may alternatively select a button 720 that permits the promotion of selected parameters to the mask via a promoted parameter selector dialog.
  • A parameter promotion selection dialog may be presented (block 540) and selection of parameters for promotion may be received via the parameter promotion dialog (block 550). FIG. 8 depicts a promoted parameter selector dialog 800 presented to block author 105 in response to selection of button 720 from mask editor 700. Promoted parameter selector dialog 800 permits block author 105 to select one or more blocks, and their associated parameters, for promotion to the mask. For example, as shown in FIG. 8, promoted parameter selector 800 may include a block field 810 that displays a list of blocks that may be selected for promotion to the mask. In the example of FIG. 8, only a single block (e.g., Gain) has been selected for promotion to the mask. Promoted parameter selector 800 may further include a promotable parameters field 820 that displays a list of parameters for the block selected in field 810. Block author 105 may select one or more parameters from field 820 for promotion to the mask. Promoted parameter selector 800 may further include a promoted parameters field 830 that displays a list of parameters promoted to the mask by block author 105 from list 820. FIG. 9A depicts another example in which a block diagram 900 includes a subsystem block 905 having multiple child blocks. FIG. 9A depicts a second block diagram 910 that includes the multiple child blocks 912, 914, 916 and 920 of subsystem block 905. As further shown in FIG. 9B, Block author 105 may select multiple child blocks from child blocks field 927 of a promoted parameter selector dialog 925, and then may further select one or more parameters for promotion from promotable parameters field 930 of promoted parameter selector dialog 925 for each selected child block. Therefore, multiple promoted parameters of child blocks of a subsystem may be controlled via a single custom masked block. In some implementations, the block author may add custom information to the custom masked block (e.g., company notes, custom parameters, etc.).
  • FIG. 9C depicts a custom masked block dialog 935 for subsystem block 905 with promoted mask parameters 940, 942 and 945. The values of promoted mask parameters 940, 942 and 945 specified by block author 105 or block user 145 may be automatically applied to the child blocks of subsystem block 905 (e.g., child blocks 912, 916 and 920), selected using child blocks field 927 of promoted parameter selector dialog 925. FIG. 9C further shows child dialog 950 for child block 912 having values for promoted mask parameters 940, 942 and 945 from custom masked block dialog 935. FIG. 9C also depicts child dialog 955 for child block 916 having values for promoted mask parameters 942 and 945 from custom masked block dialog 935. FIG. 9C additionally shows child dialog 960 for child block 920 having a value for promoted mask parameter 945 from customer masked block dialog 935.
  • FIG. 9D depicts an example of the selection of multiple selected blocks for parameter promotion from a larger model having many blocks to create a multi-block mask that promotes block parameters of the selected multiple blocks. As shown, blocks 970 and 973 may be selected from block diagram 965. Upon selection of blocks 970 and 973, certain parameters (shown as circled in FIG. 9D) may be selected from block diagram 975 (for block 973) and block diagram 978 (for block 970) for promotion to a multi-block custom masked block 980. As shown in FIG. 9D, custom masked block 980 may include the multiple parameters 985 promoted from block diagrams 975 and 978 for blocks 973 and 970. Thereafter, setting of the values of parameters of multi-block customer masked block 980 automatically sets the corresponding parameters of blocks 937 and 970.
  • A custom masked block may be generated based on the promoted parameters (block 560). The custom masked block may specify the parameters of the underlying built-in block or blocks that have been selected for promotion. The promoted parameters may represent the parameters of the custom masked block that may be exposed to block user 145 for editing of the parameter values. The generated custom masked block may be stored in a block library (block 570). Upon completion of parameter promotion selection, and generation of the custom masked block, the custom masked block may be stored in block library 140 for future retrieval by block user 145.
  • Exemplary Block User Custom Masked Block Use Process
  • FIG. 10 is a flowchart of an exemplary process for retrieving a custom masked block from block library 140 and for using the custom masked block in a block diagram. The exemplary process of FIG. 10 may be implemented by processing unit 315 of server 220 or client 210.
  • The exemplary process may include receiving selection of a custom masked block (block 1000). Block user 145, at, for example, client 210, may select a custom masked block, previously generated by library block author 105, from storage in block library 140. A custom mask dialog for the custom masked block may be presented (block 1010). The custom mask dialog may expose only the promoted parameters of the selected custom masked block for editing of their values by block user 145 (i.e., disallowing edits of values of other parameters of the custom masked block). Values of other parameters of the custom masked block may not be edited by block user 145. FIG. 11 depicts a custom mask dialog 1100 for a Gain block, and a typical dialog 1110 for a built-in Gain block. Edits of values of promoted parameters may be received via the custom mask dialog (block 1020). As shown in FIG. 11, the block user may only edit values for a promoted parameter via custom mask dialog 1100 (e.g., values for the multiplication parameter in custom mask dialog 1100 shown in FIG. 11. The custom masked block, with values edited by block user 145, may subsequently be used in a block diagram modeling environment to model a system or subsystem.
  • CONCLUSION
  • The foregoing description of implementations provides illustration and description, but is not intended to be exhaustive or to limit the invention to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be acquired from practice of the invention. For example, while series of blocks have been described with respect to FIGS. 5 and 10, the order of the blocks may be varied in other implementations. Moreover, non-dependent blocks may be performed in parallel. Embodiments have been described herein as selecting block parameters from lists in a dialog for promotion to a mask. In other embodiments, however, the block author may drag and drop parameter widgets to a layout editor to promote the parameters for a custom masked block and a custom mask dialog.
  • Certain features described above may be implemented as “logic” or a “unit” that performs one or more functions. This logic or unit may include hardware, such as one or more processors, microprocessors, application specific integrated circuits, or field programmable gate arrays, software, or a combination of hardware and software. Logic for practicing aspects described herein may be provided to a client via a license. This license may, in some implementations, be tiered so that users have varying degrees of flexibility and/or speed based on the licenses that they have.
  • No element, act, or instruction used in the description of the present application should be construed as critical or essential to the invention unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
  • In the preceding specification, various embodiments have been described with reference to the accompanying drawings. It will, however, be evident that various modifications and changes may be made thereto, and additional embodiments may be implemented, without departing from the broader scope of the invention as set forth in the claims that follow. The specification and drawings are accordingly to be regarded in an illustrative rather than restrictive sense.

Claims (28)

1. A computer-readable medium containing instructions executable by at least one processor, the computer-readable medium comprising:
one or more instructions for receiving a selection of a block, a subsystem or multiple blocks from a block diagram modeling environment running on a computing device;
one or more instructions for presenting, to the user, a set of parameters associated with the block, subsystem, or multiple blocks;
one or more instructions for receiving, from the user, selection of a first subset of parameters from the set of parameters; and
one or more instructions for creating a customized dialog box, using the computing device, by promoting the selected first subset of parameters to the customized dialog box, wherein the customized dialog box permits editing of values associated only with the first subset of parameters.
2. The computer-readable medium of claim 1, wherein the customized dialog box does not permit editing of values associated with other parameters of the set of parameters that are not in the first subset of parameters from the set of parameters.
3. The computer-readable medium of claim 1, further comprising:
one or more instructions for receiving a second subset of parameters from the set of parameters.
4. The computer-readable medium of claim 1, wherein the customized dialog box also includes a programmatic Application Programming Interface (API) to edit the values associated only with the first subset of parameters.
5. The computer-readable medium of claim 3, wherein the customized dialog box permits editing of the first and second subset of parameters.
6. The computer-readable medium of claim 1, wherein the set of parameters comprises multiple parameters associated with different ones of the multiple blocks.
7. The computer-readable medium of claim 1, further comprising:
one or more instructions for presenting the customized dialog box to a block user; and
one or more instructions for receiving from the block user, via the customized dialog box, edits of the values associated only with the first subset of parameters.
8. The computer-readable medium of claim 1, wherein the block comprises elements from which a model can be built.
9. The computer-readable medium of claim 8, wherein each parameter of the set of parameters are associated with values that customize the behavior of the block, subsystem or multiple blocks.
10. The computer-readable medium of claim 8, wherein the subsystem comprises a set of blocks that have been replaced by a single subsystem block.
11. The computer-readable medium of claim 1, further comprising:
one or more instructions for disallowing edits of values of the first subset of parameters except via the customized dialog box or programmatic Application Programming Interface (API).
12. The computer-readable medium of claim 11, wherein the one or more instructions for disallowing edits further comprises:
one or more instructions for only allowing edits of values of the first subset of parameters via the customized dialog box and for disallowing edits of values of any other parameters of the set of parameters.
13. The computer-readable medium of claim 1, further comprising:
one or more instructions for generating a custom masked block based on the selected first subset of parameters.
14. The computer-readable medium of claim 13, further comprising:
one or more instructions for storing the custom masked block in a block library for use by one or more block users.
15. A computer-implemented method, comprising:
receiving, from a user, a selection of a block, a subsystem or multiple blocks from a block diagram modeling environment, the receiving performed using a computing device;
presenting, to the user, a set of parameters associated with the block, subsystem, or multiple blocks, the presenting performed using a computing device;
receiving, from the user, selection of a first subset of parameters from the set of parameters, the receiving performed using a computing device; and
creating a custom masked block by promoting the selected first subset of parameters to the custom masked block such that only values associated with the promoted first subset of parameters may be edited by a block user, the creating performed using a computing device.
16. The computer-implemented method of claim 15, wherein the set of parameters comprises multiple parameters associated with different ones of the multiple blocks.
17. The computer-implemented method of claim 15, further comprising:
storing the custom masked block in a block library for use by one or more block users.
18. The computer-implemented method of claim 15, wherein each of the multiple blocks are selected from different parts of a model.
19. The computer-implemented method of claim 15, wherein the block comprises elements from which a model can be built.
20. The computer-implemented method of claim 19, wherein each parameter of the set of parameters are associated with values that customize the behavior of the block, subsystem or multiple blocks.
21. The computer-implemented method of claim 20, wherein the subsystem comprises a set of blocks that have been replaced by a single subsystem block.
22. The computer-implemented method of claim 15, further comprising:
presenting a customized dialog box, associated with the custom masked block, to permit editing of values associated with the first subset of parameters by the block user.
23. The device of claim 22, wherein presenting the customized dialog box further comprises:
disallowing edits of values of any other parameters of the set of parameters.
24. A device, comprising:
one or more processing units configured to implement a user interface and configured to:
receive, via the user interface, a selection of a block, a subsystem or multiple blocks from the block author,
present, via the user interface, a set of parameters associated with the block, subsystem, or multiple blocks,
receive, via the user interface, selection of a first subset of parameters from the set of parameters, and
create a custom masked block by promoting the selected first subset of parameters to the custom masked block such that only values associated with the first subset of parameters may be edited by a user of the custom masked block.
25. The device of claim 24, wherein the user interface comprises one or more dialog boxes.
26. The device of claim 24, wherein the set of parameters comprises multiple parameters associated with different ones of the multiple blocks.
27. The device of claim 24, wherein the one or more processing units are further configured to:
present a customized dialog box, associated with the custom masked block, to permit editing of values associated with the first subset of parameters.
28. The device of claim 27, wherein, when presenting the customized dialog box, the one or more processing units are further configured to:
disallow edits of values of any other parameters of the set of parameters.
US13/459,281 2011-06-07 2012-04-30 Parameter promotion in a block diagram modeling environment Active 2033-04-04 US9058175B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US13/459,281 US9058175B2 (en) 2011-06-07 2012-04-30 Parameter promotion in a block diagram modeling environment
US13/835,918 US9442702B1 (en) 2012-04-30 2013-03-15 Overriding an interface in a graphical block diagram modeling environment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201161494213P 2011-06-07 2011-06-07
US13/459,281 US9058175B2 (en) 2011-06-07 2012-04-30 Parameter promotion in a block diagram modeling environment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/835,918 Continuation-In-Part US9442702B1 (en) 2012-04-30 2013-03-15 Overriding an interface in a graphical block diagram modeling environment

Publications (2)

Publication Number Publication Date
US20120316851A1 true US20120316851A1 (en) 2012-12-13
US9058175B2 US9058175B2 (en) 2015-06-16

Family

ID=47293892

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/459,281 Active 2033-04-04 US9058175B2 (en) 2011-06-07 2012-04-30 Parameter promotion in a block diagram modeling environment

Country Status (1)

Country Link
US (1) US9058175B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3022659A1 (en) * 2014-06-24 2015-12-25 Intersyntax RELATIVE COPY-GLUE METHOD
US20160078648A1 (en) * 2014-09-15 2016-03-17 Pratt & Whitney Canada Corp. Physical connection of network components in a graphical computer environment with one-way signal propagation
US9442702B1 (en) 2012-04-30 2016-09-13 The Mathworks, Inc. Overriding an interface in a graphical block diagram modeling environment
US9626228B1 (en) * 2014-02-04 2017-04-18 Emc Corporation Synchronizing stateless process across multiple instances
US10866815B2 (en) * 2016-05-11 2020-12-15 Advanced New Technologies Co., Ltd. Method and system for starting application

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106990953B (en) * 2017-03-02 2021-06-22 惠州Tcl移动通信有限公司 Interface locking method of mobile terminal and mobile terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5801942A (en) * 1996-04-12 1998-09-01 Fisher-Rosemount Systems, Inc. Process control system user interface including selection of multiple control languages
US20030060913A1 (en) * 2001-08-07 2003-03-27 Turner Jon B. Method and system for designing and modeling a product in a knowledge based engineering environment
US20060009942A1 (en) * 2004-07-09 2006-01-12 Jay Keck System and method for integrated data transfer, archiving and purging of semiconductor wafer data
US20060053374A1 (en) * 2004-09-07 2006-03-09 Adobe Systems Incorporated Localization of activity with respect to digital data
US7344883B2 (en) * 2000-11-15 2008-03-18 Crucell Holland B.V. Complementing cell lines
US20080177994A1 (en) * 2003-01-12 2008-07-24 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
US7546602B2 (en) * 2001-07-10 2009-06-09 Microsoft Corporation Application program interface for network software platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6868526B2 (en) 2001-07-18 2005-03-15 The Mathworks, Inc. Graphical subclassing
US7934194B2 (en) 2006-10-17 2011-04-26 The Mathworks, Inc. User-defined hierarchies of user-defined classes of graphical objects in a graphical modeling environment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5801942A (en) * 1996-04-12 1998-09-01 Fisher-Rosemount Systems, Inc. Process control system user interface including selection of multiple control languages
US7344883B2 (en) * 2000-11-15 2008-03-18 Crucell Holland B.V. Complementing cell lines
US7546602B2 (en) * 2001-07-10 2009-06-09 Microsoft Corporation Application program interface for network software platform
US20030060913A1 (en) * 2001-08-07 2003-03-27 Turner Jon B. Method and system for designing and modeling a product in a knowledge based engineering environment
US20080033710A1 (en) * 2001-08-07 2008-02-07 Ugs Plm Solutions Inc. Method and System for Designing and Modeling a Product in a Knowledge Based Engineering Environment
US20080177994A1 (en) * 2003-01-12 2008-07-24 Yaron Mayer System and method for improving the efficiency, comfort, and/or reliability in Operating Systems, such as for example Windows
US20060009942A1 (en) * 2004-07-09 2006-01-12 Jay Keck System and method for integrated data transfer, archiving and purging of semiconductor wafer data
US20060009943A1 (en) * 2004-07-09 2006-01-12 Jay Keck Method and system for managing, analyzing and automating data in the production of semiconductor wafers and for monitoring the production process
US20060010416A1 (en) * 2004-07-09 2006-01-12 Jay Keck System and method for searching for patterns of semiconductor wafer features in semiconductor wafer data
US20060053374A1 (en) * 2004-09-07 2006-03-09 Adobe Systems Incorporated Localization of activity with respect to digital data

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9442702B1 (en) 2012-04-30 2016-09-13 The Mathworks, Inc. Overriding an interface in a graphical block diagram modeling environment
US9626228B1 (en) * 2014-02-04 2017-04-18 Emc Corporation Synchronizing stateless process across multiple instances
FR3022659A1 (en) * 2014-06-24 2015-12-25 Intersyntax RELATIVE COPY-GLUE METHOD
WO2015197924A1 (en) * 2014-06-24 2015-12-30 Intersyntax Sas Method of relational copying-pasting of entities of a modelled system
US20160078648A1 (en) * 2014-09-15 2016-03-17 Pratt & Whitney Canada Corp. Physical connection of network components in a graphical computer environment with one-way signal propagation
US10719299B2 (en) * 2014-09-15 2020-07-21 Pratt & Whitney Canada Corp. Physical connection of network components in a graphical computer environment with one-way signal propagation
US10866815B2 (en) * 2016-05-11 2020-12-15 Advanced New Technologies Co., Ltd. Method and system for starting application

Also Published As

Publication number Publication date
US9058175B2 (en) 2015-06-16

Similar Documents

Publication Publication Date Title
US6868526B2 (en) Graphical subclassing
US5999911A (en) Method and system for managing workflow
EP1966689B1 (en) Non-graphical model dependencies in graphical modeling environments
US10235140B2 (en) Defining attributes of variables in a state chart of a technical computing environment
US8209663B2 (en) Dynamic generation of formatted user interfaces in software environments
US10198425B2 (en) Methods and apparatus for reusing report design components and templates
US8365141B1 (en) Aliases within a graphical model of a design
US8561048B2 (en) Late and dynamic binding of pattern components
US9058175B2 (en) Parameter promotion in a block diagram modeling environment
US7757204B2 (en) Limiting extensibility of a visual modeling language
CN106062711B (en) Method, system, and computer storage medium for compound controls
US7840935B2 (en) Restrictive visualization of a stereotype construct for entities in a visual modeling environment
US7984115B2 (en) Extensible application platform
US8156469B2 (en) Single composition of pattern modules
US20090254801A1 (en) Model navigation
US8875039B2 (en) Propagation of characteristics in a graphical model environment
US9588744B2 (en) Renaming instances of an entity in a coding environment
US9047165B1 (en) Multiversion model versioning system and method
US8751199B1 (en) Method of graphically linking multiple disjoint models
MacDonald et al. Pro Asp. Net 3.5 In C# 2008 3Rd Ed: Includes Silverlight 2
US8990766B2 (en) Construction of object-oriented programming (OOP) patterns by behavior delegation
US9170783B1 (en) Class creation assistant for textual programming languages
US9378562B1 (en) Management of variants in a graphical modeling environment
Tran et al. Systematic generation of abstract user interfaces
US8448069B2 (en) Object set property viewer

Legal Events

Date Code Title Description
AS Assignment

Owner name: THE MATHWORKS, INC., MASSACHUSETTS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:DALAL, YOGESH KAMALKISHORE;SINGH, SANJAI;THUNUGUNTLA, SAIKIRAN S.;AND OTHERS;REEL/FRAME:028124/0644

Effective date: 20120426

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8