Patent ID: 8719716

Claim:
A method comprising: providing a block diagram model for display via a display device, providing the block diagram model for display being performed by a device, the block diagram model including a plurality of blocks, and the block diagram model, when executed, simulating a behavior of a system; receiving a selection of a block of the plurality of blocks, receiving the selection being performed by the device, and the block: being displayed as part of the block diagram model, and being associated with implementation details; locking the block, locking the block including: allowing the block to be executed during the execution of the block diagram model, and preventing the implementation details from being displayed or edited; generating code from the block diagram model while the block is locked, generating the code being performed by the device, and generating the code including: generating obfuscated code for the block, the obfuscated code the obfuscating code for the block in the code generated from the block diagram model, the obfuscated code preventing unauthorized access to the code for the block; determining an attempt to access the implementation details of the block, determining the attempt being performed by the device; generating a graphical prompt for proof of authorization, generating the graphical prompt being performed by the device; receiving proof of authorization via the graphical prompt, receiving the proof of authorization being performed by the device; unlocking, based on receiving the proof of authorization, the block, unlocking the block being performed by the device; displaying, based on unlocking the block, the implementation details for the selected block, displaying the implementation details being performed by the device; and modifying, based on unlocking the block, the code generated from the model to cause the code for the block to be non-obfuscated in the code generated from the block diagram model when the code generated from the block diagram model is displayed, modifying the code generated from the block diagram model being performed by the device.