Patent ID: 8707190

Claim:
A non-transitory computer-readable medium storing instructions, the instructions comprising: one or more instructions that, when executed by at least one processor, cause the at least one processor to: provide a block diagram model for display, the block diagram model representing a system; receive a selection of a block included in the block diagram model; encrypt, based on the selection, code associated with the block to lock the block, other code associated with the block diagram model remaining unencrypted, and locking the block preventing a functionality associated with the block from being accessed; receive an input for executing the block diagram model; prevent an execution of the block diagram model based on the block being locked; receive an authorization to unlock the functionality associated with the block via an interface; unlock the block based on receiving the authorization; generate code for the block diagram model based on unlocking the block; and execute the generated code to simulate a behavior of the system.