|Top Previous Next|
The Try command provides recovery from FreeFlyer error messages, such as "Spacecraft has impacted Central Body" or if a Target loop fails to converge. FreeFlyer suppresses any errors that are produced within the scope of the Try/End block of commands.
Try stepping a Spacecraft for 100 days:
Try, while incrementing an ErrorCount variable if an error is encountered:
•If the "Try sending ErrorCount to ..." syntax option is used, FreeFlyer increments the user-specified "counter" Variable every time an error is encountered and suppressed.
oIn the example shown above, if an error is encountered, the current value of myVariable will be incremented; that is, FreeFlyer will perform this change behind the scenes: myVariable += 1.
•If an error is encountered, FreeFlyer will exit the Try block and execute any remaining commands in the Mission Plan.
Send error count to