1. A computer-implemented method in a graphical modeling environment, the method comprising:
providing a first control initiator, where the first control initiator is connected to a first subgraph by a first control signal, where:
the control initiator is a block that uses a control signal output to explicitly control execution of one or more subgraphs;
executing the first subgraph in a first thread whose execution is explicitly controlled;
providing a second control initiator, where the second control initiator is connected to a second subgraph by a second control signal;
executing the second subgraph in a second thread whose execution is explicitly controlled; and
interacting with a data synchronization block, where:
the interacting allows a result from the first subgraph to be used by the second subgraph when the second subgraph is executing, and
the data synchronization block waits for the first thread to finish executing before allowing the first result to be used by the second subgraph when the second subgraph is executing.
2. The method of claim 1, where the graphical modeling environment includes a graphical representation that represents the first control initiator and the second control initiator.
3. The method of claim 2, where the graphical representation is a block.
4. The method of claim 1, where graphical modeling environment further includes a splitter block, where the splitter block connects the first control initiator to the first subgraph and the second control initiator to the second subgraph.
5. The method of claim 1, where the synchronization block includes a timeout threshold.
6. The method of claim 5, further comprising:
producing an error when the timeout threshold is exceeded.
7. The method of claim 1, where the control initiator is a state chart.
8. The method of claim 1, where the model is a time-based model, a data flow model, or an event-based model.
9. The method of claim 1, where the control signal is a function-call or an action signal.
10. The method of claim 1, where the model includes one or more data signals.
11. A computer-implemented method in a graphical modeling environment, the method comprising:
providing a spawn control initiator, the spawn control initiator executing on a main thread in the modeling environment where:
the spawn control initiator is a block that uses a control signal output to explicitly control execution of one or more subgraphs;
providing a subgraph in the modeling environment, where:
the subgraph includes one or more blocks, and the subgraph is connected to the spawn control initiator via a control signal;
directly providing inputs to the subgraph; and
executing the subgraph in a separate thread, the separate thread differing from the main thread, the executing producing a result.
12. The method of claim 11, where the modeling environment further includes:
a synchronization block, connected to the output of the subgraph the synchronization block waiting for the separate thread to finish executing before allowing the result to be used by the main thread.
13. The method of claim 11, where the modeling environment produces an error when the result is used in the main thread without first passing through a synchronization block.
14. The method of claim 13, where the synchronization block is the last block executed on the main thread.
15. The method of claim 13, where the synchronization block includes additional inputs, the additional inputs depicting when the result is needed by the main thread.
16. The method of claim 13, where the synchronization block includes a timeout threshold.
17. The method of claim 16, further comprising:
producing an error when the timeout threshold is exceeded.
18. The method of claim 11, where the control initiator is a state chart.
19. The method of claim 11, where the model is a time-based model, a data flow model, or an event-based model.
20. The method of claim 11, where the control signal is a function-call or an action signal.
21. The method of claim 11, where the model includes one or more data signals.
22. A non-transitory computer-readable medium holding executable instructions that when executed on a processor control subgraph execution in a model, the medium holding one or more instructions for:
providing a first control initiator, where the first control initiator is connected to a first subgraph by a first control signal where:
the control initiator is a block that uses a control signal output to explicitly control execution of one or more subgraphs;
executing the first subgraph in a first thread whose execution is explicitly controlled;
providing a second control initiator, where the second control initiator is connected to a second subgraph by a second control signal where:
the control initiator is a block that uses a control signal output to explicitly control execution of one or more subgraphs;
executing the second subgraph in a second thread whose execution is explicitly controlled; and
interacting with a data synchronization block, where: the interacting allows a result from the first subgraph to be used by the second subgraph when the second subgraph is executing, and
the data synchronization block waits for the first thread to finish executing before allowing the first result to be used by the second subgraph when the second subgraph is executing.
23. A non-transitory computer-readable medium holding executable instructions that when executed on a processor control execution of a subgraph in a model, the medium holding one or more instructions for:
providing a spawn control initiator, the spawn control initiator executing on a main thread in the modeling environment where:
the spawn control initiator is a block that uses a control signal output to explicitly control execution of one or more subgraphs;
providing a subgraph in the modeling environment, where:
the subgraph includes one or more blocks, and
the subgraph is connected to the spawn control initiator via a control signal;
directly providing inputs to the subgraph; and
executing the subgraph in a separate thread, the separate thread differing from the main thread, the executing producing a result.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A method for processing data, the method comprising:
coding a data item to obtain a coded data item that includes a predefinable number of bits;
influencing bits of the coded data item to obtain a changed data item;
decoding the changed data item by using a fault-correcting code to obtain a decoded data item; and
processing the decoded data item.
2. The method of claim 1, wherein for the step of coding, a fault-correcting code is used, in particular a Hamming code.
3. The method of claim 1, wherein the step of influencing includes at least one of inverting and deleting bits of the coded data item.
4. The method of claim 1, wherein the step of processing includes carrying out at least a part of a cryptographic method or comparing data with predefinable reference data.
5. The method of claim 1, wherein at least one of the coded data item, the changed data item, and the decoded data item is stored at least temporarily.
6. The method of claim 1, wherein the influencing is carried out as a function of at least one of a deterministic process and a stochastic process.
7. The method of claim 1, wherein the decoding is carried out in such a way that a time for the decoding of the changed data item is not constant between different performances of the decoding.
8. A device for processing data, the device comprising:
processing circuitry, wherein the processing circuitry is configured to:
code a data item to obtain a coded data item that includes a predefinable number of bits;
influence bits of the coded data item to obtain a changed data item;
decode the changed data item by using a fault-correcting code to obtain a decoded data item; and
process the decoded data item.
9. The device of claim 8, wherein the coding includes use of a fault-correcting code.
10. The device of claim 9, wherein the fault-correcting code is a Hamming code.
11. The device of claim 8, wherein the influencing includes at least one of inverting and deleting bits of the coded data item.
12. The device of claim 8, further comprising a memory, wherein the processing circuitry is configured to store at least one of the coded data item, the changed data item, and the decoded data item at least temporarily in the memory.