主权项 |
1. A method comprising:
determining a hardware component coupled to a graphical modeling environment,
determining the hardware component being performed by a device; obtaining information identifying one or more hardware characteristics of the hardware component based on the hardware component being coupled to the graphical modeling environment,
obtaining the information being performed by the device; generating a block, associated with the hardware component, based on a first method,
the first method being associated with setting one or more data fields,
the one or more data fields being associated with the block, andthe first method being determined based on the information,generating the block being performed by the device, andthe block including:
one or more block attributes for describing, in the graphical modeling environment, one or more signals transmitted between the hardware component and the graphical modeling environment, anda high-level signal definition of the one or more signals,
the high-level signal definition defining the one or more signals independently of the one or more hardware characteristics of the hardware component; storing the block in a block library associated with the graphical modeling environment,
storing the block being performed by the device; generating a graphical model, that includes the block, in the graphical modeling environment,
generating the graphical model being performed by the device; compiling, based on a second method, the graphical model,
the second method being associated with compiling the graphical model,the second method being determined based on the information, andcompiling the graphical model being performed by the device; executing, based on a third method, the compiled graphical model to simulate a behavior of a system represented by the graphical model,
the third method being associated with executing the graphical model,the third method being determined based on the information,executing the compiled graphical model being performed by the device, andthe graphical model interfacing, via the block, with the one or more signals using the high-level signal definition provided by the block during an execution of the compiled graphical model; and outputting, via the graphical modeling environment, a result of the execution,
outputting the result being performed by the device. |