 |
Asynchronous Logic
Example A
- Sample interval is 10 seconds
- Script finishes after 5 seconds
@01:00:00
- 1st sample
- Toolkit sampler executes the script
@01:00:05 - Toolkit sampler sends the update to the Gateway. Toolkit dataview gets updated.
@01:00:10
- 2nd sample
- Toolkit sampler checks the status of the script;
- If the script is done, the sampler executes the script again. (This is what happens during this sample.)
- If the script is not yet done, the sampler the sampler does not do anything.
Example B
- Sample interval is 10 seconds
- Script finishes after 15 seconds
@01:00:00
- 1st sample
- Toolkit sampler executes the script
@01:00:10
- 2nd sample
- Toolkit sampler checks the status of the script;
- If the script is done, the sampler executes the script again.
- If the script is not yet done, the sampler the sampler does not do anything. (This is what happens during this sample.)
@01:00:15 - Toolkit sampler sends the update to the Gateway. Toolkit dataview gets updated.
@01:00:20
- 3rd sample
- Toolkit sampler checks the status of the script;
- If the script is done, the sampler executes the script again. (This is what happens during this sample.)
- If the script is not yet done, the sampler the sampler does not do anything.
|
Comments
0 comments
Please sign in to leave a comment.