Guest User

Untitled

a guest
May 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. # time 0:
  2. # *****************************************************************************
  3.  
  4. # Start SoM Dialog
  5. objMMI.sl_StartDialog(DriverId,
  6. TrainNbr,
  7. TrainLength,
  8. TrainMaxV)
  9.  
  10.  
  11. # Input driver ID
  12. objMMI.sl_EnterDriverId(DriverId)
  13.  
  14. # wait until all messages in Consumer 0 are consumed and switch to next state
  15. Activation_1_Controller["ROC_0_A1"].wait4completed()
  16.  
  17. # time A:
  18. # *****************************************************************************
  19.  
  20. # wait until all messages in Consumer A are consumed and switch to next state
  21. Activation_1_Controller["ROC_A_A1"].wait4completed()
  22.  
  23. # Enter train data
  24.  
  25. # time B:
  26. # *****************************************************************************
  27.  
  28. objMMI.sl_EnterTrainData( TrainLength,
  29. TrainMaxV,
  30. TrainBrt,
  31. TrainCapa)
  32.  
  33. # wait until all messages in Consumer B are consumed and switch to next state
  34. Activation_1_Controller["ROC_B_A1"].wait4completed()
  35.  
  36. # time C:
  37. # *****************************************************************************
  38.  
  39. # driver selects 'START' button (immediately)
  40. objMMI.sl_StartOfMission()
  41.  
  42. # wait until all messages in Consumer C are consumed and switch to next state
  43. Activation_1_Controller["ROC_C_A1"].wait4completed()
Add Comment
Please, Sign In to add comment