User Tools

Site Tools


getting_started:tutorials:controlsystem3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
getting_started:tutorials:controlsystem3 [2019/02/28 21:38] grafgetting_started:tutorials:controlsystem3 [2019/02/28 21:40] graf
Line 18: Line 18:
 The system will start in level ''initializing''. The time domain is still in the stopped state and hence, the signal value of the output of the gain block is NaN. After three seconds the system switches to level ''running'' and the output signal is the value of the constant block times the gain of the gain block. \\ The system will start in level ''initializing''. The time domain is still in the stopped state and hence, the signal value of the output of the gain block is NaN. After three seconds the system switches to level ''running'' and the output signal is the value of the constant block times the gain of the gain block. \\
   - In order to test what happens if you read from an unconnected input comment line number 44 and recompile. This removes the connection between the constant block and the gain block. As soon as the time domain tries to run the gain block a ''NotConnectedFault'' is thrown. This causes the time domain to trigger a ''go to emergency'' event. In the safety level ''emergency'' the time domain is stopped to prevent further faults.   - In order to test what happens if you read from an unconnected input comment line number 44 and recompile. This removes the connection between the constant block and the gain block. As soon as the time domain tries to run the gain block a ''NotConnectedFault'' is thrown. This causes the time domain to trigger a ''go to emergency'' event. In the safety level ''emergency'' the time domain is stopped to prevent further faults.
-  - Please remove line 38, recompile and run the test. The constant block has no value assigned to it. This causes the time domain to calculate the peripheral output value to be NaN and a ''NaNOutputFault'' is thrown. This causes the time domain to trigger a ''go to emergency'' event. In the safety level ''emergency'' the time domain is stopped to prevent further faults.+  - Please add line 44 and remove line 39, recompile and run the test. The constant block has no value assigned to it. This causes the time domain to calculate the peripheral output value to be NaN and a ''NaNOutputFault'' is thrown. This causes the time domain to trigger a ''go to emergency'' event. In the safety level ''emergency'' the time domain is stopped to prevent further faults.