openc3-cosmos-tool-docs 5.13.0 → 5.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (586) hide show
  1. checksums.yaml +4 -4
  2. data/plugin.txt +1 -1
  3. data/tools/staticdocs/404.html +5 -5
  4. data/tools/staticdocs/assets/css/styles.dd31dbff.css +1 -0
  5. data/tools/staticdocs/assets/images/add_component-883814db1de410921a1d46247be60a87a51f1c51eb98d4a7f499875c83225294.png +0 -0
  6. data/tools/staticdocs/assets/images/add_item-4e7c51e0d6a7304260097ccfe8a64d7f2d2b428dba9758070a618ca0dcc89457.png +0 -0
  7. data/tools/staticdocs/assets/images/add_packet-74322c89982856286103da2c91c4246a4a8aa319c216bc1c169515ab28381cd6.png +0 -0
  8. data/tools/staticdocs/assets/images/add_target-f1f0d16faf5f3c1ecdfe3daa90d44d082053845d5f7a59e988d90ff0b5ba00ff.png +0 -0
  9. data/tools/staticdocs/assets/images/autonomic-a2118149a079f587f8f373d61f65d4d6d5e4b3df41ec5446362a449a3b51a1b3.png +0 -0
  10. data/tools/staticdocs/assets/images/blank_calendar-70e605942120937b862bd7039348229bab9af1f9c93d356ddbf401a3e8543c74.png +0 -0
  11. data/tools/staticdocs/assets/images/bucket_explorer-ba88a20121198c3441a6af5302ab1a6ad62a171661037e9e3bfd312ca8bdb5ef.png +0 -0
  12. data/tools/staticdocs/assets/images/calendar-dacbcbb05175c76f3406b4aaade0465444c20b72e93366c79fed1f6eec018c42.png +0 -0
  13. data/tools/staticdocs/assets/images/change_limits_set-b72da282ea28d783bd7e1d0cd48db72486dacb4e76e1cd46d52c7999028d9c0d.png +0 -0
  14. data/tools/staticdocs/assets/images/checks_rb-89f400098ff47774008ea420860c665c15ebf06819c3ee7050bed301ea0a9f46.png +0 -0
  15. data/tools/staticdocs/assets/images/cmd_packets-160c7b28230a14f05433d063cdccc63958bb5d90f4e6b80492cd9568b0761a75.png +0 -0
  16. data/tools/staticdocs/assets/images/cmd_raw-28307ac400b66050ada7ecc8b7701deffe8fb7f01129b63ec35a54857cb886b7.png +0 -0
  17. data/tools/staticdocs/assets/images/cmd_tlm_server-727ea478568988b10e4be4a3ba7255dd48ec56f6ab6444c6c1e32497fe478681.png +0 -0
  18. data/tools/staticdocs/assets/images/collect_states-565ae4b6d02449850585afd7ce35982711d4d677f5a04c1332b2c176f1ec3a25.png +0 -0
  19. data/tools/staticdocs/assets/images/command_sender-bb1543bde21fc1963405de5251d16a80a0c3a1bf5adb5fb78145d4995e2fe541.png +0 -0
  20. data/tools/staticdocs/assets/images/connecting-0f804651a891ef6112a51ba8b2e4d8dcb46e3462dcbc94e7b3c75bff20fc04e7.png +0 -0
  21. data/tools/staticdocs/assets/images/create_activity1-c05ffc03af2df852aeb3ad246f53f259af504e0e6c64cdac21f9126947c49f95.png +0 -0
  22. data/tools/staticdocs/assets/images/create_activity2-58c7da6f79dd510701148c0c54fae02c830b9ca4af662a7b132987ed3410a8f7.png +0 -0
  23. data/tools/staticdocs/assets/images/create_metadata1-a331ba8f0bd19bf5f8d7f2e083c3c7164e9b7b9936f5a7f83c4141c62a6c46f6.png +0 -0
  24. data/tools/staticdocs/assets/images/create_metadata2-c57b5420d5469b48289030ed7c64758539c2319dc742159caa0d4c8fe35050a8.png +0 -0
  25. data/tools/staticdocs/assets/images/create_note1-472b93e8e0e3e66a2e6198e0d4573cdc38cc356df87be66163f990f18137f6c0.png +0 -0
  26. data/tools/staticdocs/assets/images/create_note2-770501a149ef4aabae24d0b636f46ed61fbdcfda9537c61637c07c60257e9228.png +0 -0
  27. data/tools/staticdocs/assets/images/create_reaction1-a07e04677c269cb3eb5edd13bc7504ed6ba4c94f6a60d2b14a33680470d376fe.png +0 -0
  28. data/tools/staticdocs/assets/images/create_reaction2-63e4e9ddf06a2e8bc9911395162b5a05772f0756e8b0998bcecae64cf86c398e.png +0 -0
  29. data/tools/staticdocs/assets/images/create_reaction3-bae25e33640193d3dbbfbbfce6691479ccde16f73dbb3f0dc3023b7006259baa.png +0 -0
  30. data/tools/staticdocs/assets/images/create_trigger1-5e2f7ecf9ec2b7590aaa65503f48cd73549fea64f52e6c103370a408528538f6.png +0 -0
  31. data/tools/staticdocs/assets/images/create_trigger2-edf2c2e6aa78a2e317e07e1cdec560dfcbbd147934630459507695c71d539f3b.png +0 -0
  32. data/tools/staticdocs/assets/images/create_trigger3-e63629173ae73bbfd78b53062061336db8ea92ba4542b9a93412d8ac6ed19e7a.png +0 -0
  33. data/tools/staticdocs/assets/images/data_extractor-e0cd7006244f50f7d1811ee3f287b300aa3ccfb09f4716e1dd9990d1cc38a510.png +0 -0
  34. data/tools/staticdocs/assets/images/data_viewer-9eb6ce20988554325e15a6e404da9fef35b06c23548d5d136b4420f444ef94f7.png +0 -0
  35. data/tools/staticdocs/assets/images/debug-3103972d64395b50fff5808661fb846ae2de7d5934548ca5b88032f1ae12c541.png +0 -0
  36. data/tools/staticdocs/assets/images/delete_all_mouseover-e45ea88fcc088c18c88e03ddad5ad6fa9fa3869f67c1548bdfb3da447eceb228.png +0 -0
  37. data/tools/staticdocs/assets/images/delete_modified-ecf9beabf5e6cc6b8cc9d249ba9e313bd18d51c671ebc36029b4cebd729fa2d0.png +0 -0
  38. data/tools/staticdocs/assets/images/disable_trigger-f5bb46fbc488bd4afcb27b21888de16816485d3e4fdbd4106b874ff06042f85b.png +0 -0
  39. data/tools/staticdocs/assets/images/display_settings-726614b4eda5f74fc563e4d3b1798eb3893e152a15b9420a6053f6a2e0980944.png +0 -0
  40. data/tools/staticdocs/assets/images/edit_all_items-1de8be31edb8443427b834f03efea4ac5bceb722e5da0c0b38b2d006ff4364a7.png +0 -0
  41. data/tools/staticdocs/assets/images/edit_graph-9618076f837e0d358ea0bfbf503d43b377805d818370405536f5a1c049209e99.png +0 -0
  42. data/tools/staticdocs/assets/images/edit_screen-c655c75fe90429c0425b61cccf23835b6882975abaa56de21d58c9a4b19a4773.png +0 -0
  43. data/tools/staticdocs/assets/images/edit_temp1-545919bb22c6882d3b02cd4a4d8b9410b69e410c958b4472b8a643f48889f434.png +0 -0
  44. data/tools/staticdocs/assets/images/enabled_trigger-86ce16c7294d4b954ec8b68ff344694093ed5f451fc5974f855f438557148518.png +0 -0
  45. data/tools/staticdocs/assets/images/file_menu-1c05cfc08f9d07b3f7122d2fe1ad98ed428dc563d2c5d2edddbed71f46779eb8.png +0 -0
  46. data/tools/staticdocs/assets/images/file_menu-368e6f03ad620e01bf83fb991aace23312d45629bfcef2d3fbccd4dd9e4dbdbd.png +0 -0
  47. data/tools/staticdocs/assets/images/file_menu-470589e527d9e82ce40e0c7d4a865e33d19b42350c2429dba97186d168137b6d.png +0 -0
  48. data/tools/staticdocs/assets/images/file_menu-7880f656c65d1c95d94f11d85f83f1fb2cf1e743397022902485e1330467bdb4.png +0 -0
  49. data/tools/staticdocs/assets/images/file_menu-8a0c6243e35822617229a729a598ace78e401b6c29f66eb5e07035d77d9be1aa.png +0 -0
  50. data/tools/staticdocs/assets/images/file_menu-953e2fc0c1a5b30c90d6f748add6ee28f8b42f30fc33d0b3c8709d6c85f06585.png +0 -0
  51. data/tools/staticdocs/assets/images/file_menu-d672c1f8064e5f847a2464397c1e75ee423452f1ba4a7d0861319bc7c7891196.png +0 -0
  52. data/tools/staticdocs/assets/images/file_menu-d9ac5efbe78e58f024666452b9f28af72c6d09a3460fc7c0737c2bb74e4ea409.png +0 -0
  53. data/tools/staticdocs/assets/images/file_open-a5bc9e5ef73c12913ea4882498ceb52f93c73afaf5bb0c1083c4c1ee402f571d.png +0 -0
  54. data/tools/staticdocs/assets/images/float_minimize-a27fc649e517b279db5d2435fbd4f1de81418b9ef5f47fc83a9443bba0b1a7e0.png +0 -0
  55. data/tools/staticdocs/assets/images/four_graphs-1aa5a7cb9ce51cec815fc9d8740b40e113bd171c4977711d47ef1e6daf02719e.png +0 -0
  56. data/tools/staticdocs/assets/images/graph_menu-289cbbb168622f661c1c98a7bd2c1b43f888e9c3560ba4e1d435ab62d0aad6de.png +0 -0
  57. data/tools/staticdocs/assets/images/graph_min_max-75be4a19a7e13a1b9b7a18a9b898b170c8ded7768b01ce6c6effd566ac8e071a.png +0 -0
  58. data/tools/staticdocs/assets/images/graph_temp1-028d8660c779136ff017b0b8a9fadb294e9ff478a65d7bd73032c3c2ed4f03d0.png +0 -0
  59. data/tools/staticdocs/assets/images/graph_temp1_temp2-ad650da0ddf1fb5c6e9764b737bfab3027f5abcb935ad86d9716dfdf13032dca.png +0 -0
  60. data/tools/staticdocs/assets/images/graph_temp1_time-53c18518755d1d1c816db7f0a67e26c5408aba32b644fda519b5ecf7a7ee9b27.png +0 -0
  61. data/tools/staticdocs/assets/images/handbooks-948da6f5aad7a4175441235f2aac82668f9233c60412e412439b2e2af0bd1a45.png +0 -0
  62. data/tools/staticdocs/assets/images/history-2391436f9edc3e00104a7375f88f5de72b0967f9eb154dfecc346c0a70af4389.png +0 -0
  63. data/tools/staticdocs/assets/images/ignored-0917bd9f41f4e93704daa45cc0a7b70809bdbba03615d6de254336141b598992.png +0 -0
  64. data/tools/staticdocs/assets/images/initial_reaction-ce5d498a90cdd5a11e24471d277ed7fcb4eecc5dcaaf05220102a3178db0805e.png +0 -0
  65. data/tools/staticdocs/assets/images/inst_clear-2d5f985c879e8b917fedacdb8c6552bbd383231bf5c8ab8e560e77df4e050026.png +0 -0
  66. data/tools/staticdocs/assets/images/inst_collect-81bc422b3b33c5ebcbe4c2f489c730b32ab0d6ea6c7f81cc79d9f6bc03e9db15.png +0 -0
  67. data/tools/staticdocs/assets/images/inst_collect_hazardous-a8fb19ea296354a0cd276da1e0ad82f74479eea4e7e204fcf64b779596f2c092.png +0 -0
  68. data/tools/staticdocs/assets/images/interfaces-0fe2a4a02d9b8a16bbf178f0d4ee393a79ca606e8cf27ff7d8508bd2cb9b0643.png +0 -0
  69. data/tools/staticdocs/assets/images/limits_monitor-34ca441e5a7198b4dc57a27b2e6fcb973dddad5eaaa5e9bf0d60738f4143c73a.png +0 -0
  70. data/tools/staticdocs/assets/images/list_view-2f36ce06962e67d5a4f1f060956e5089b3f13c8ab57f33103c3781687611e7a9.png +0 -0
  71. data/tools/staticdocs/assets/images/log-6cf3276d9e6b7dc30573b2b6a5989c6c5defc658e2c0ae4c2150a5fd11fd49d3.png +0 -0
  72. data/tools/staticdocs/assets/images/log_messages-6dd20c27f64fc00c8e61ee1062193fd6cb31efa4701130385c9853abfeed8495.png +0 -0
  73. data/tools/staticdocs/assets/images/log_messages-a934181ef59dc82d2624d052faf1023ef8ff2548f074ba9d67abdb6ebfd728d4.png +0 -0
  74. data/tools/staticdocs/assets/images/logs-bfc2ef93f6e60cb3bdf409aaaf0b4315b6e98dc1b9c17bdc171e67b416d884cc.png +0 -0
  75. data/tools/staticdocs/assets/images/minimized-47ddb9b9b68b47aae3d0a12cb39ab767adf446acbe213c0b5565c1bfaf8a463f.png +0 -0
  76. data/tools/staticdocs/assets/images/mode_menu-9c112084937db5bbff02c18a5681ad038caa0838fc88438628b134a6f6823a09.png +0 -0
  77. data/tools/staticdocs/assets/images/mode_menu-9ff9a2c1b2cae1eb15a7bd95c0d2bd939cf8f183a083edfcb2b70748dd1bbfe1.png +0 -0
  78. data/tools/staticdocs/assets/images/new_screen-0d9bea0538e91fa2332346f1ff73b1dda2e418d295dcd7d6a13ba240cf32187e.png +0 -0
  79. data/tools/staticdocs/assets/images/packet_viewer-505c517c9a838a41d6fe668ff7ca2efb1b89ced4b75df638cd11a45484bc6533.png +0 -0
  80. data/tools/staticdocs/assets/images/plugin_variables-6904e1d9003a6c8c530bd1f738f7966217beca7d3064b40670e7a4ab7e200927.png +0 -0
  81. data/tools/staticdocs/assets/images/processing-25c56ec1beef6f8df3db085378c31d2dd44289280414497d87ce8d12b4beebb9.png +0 -0
  82. data/tools/staticdocs/assets/images/processing_done-1d74097c066b6067e07a73735626dbff19f3102599c548b3874eb4f52ad5335d.png +0 -0
  83. data/tools/staticdocs/assets/images/project-c521374330008c1292b4da1b9a1c8af6647ab59f1617b470f26e76a521fe8059.png +0 -0
  84. data/tools/staticdocs/assets/images/raw_tlm_logs-b293435cebbd5d4f04ab8a469ce2b4eb66f4cfd046d7b18ee417893336816b85.png +0 -0
  85. data/tools/staticdocs/assets/images/reload_file-056b240b1d48539a9fecfe2ad1bac0c27d83f5dddcd29af6cf719986869406ee.png +0 -0
  86. data/tools/staticdocs/assets/images/reloaded-516bc4c257f9b7f6ce3714f5a06eeef8ad47a8461e21613ba26989d5e56260ec.png +0 -0
  87. data/tools/staticdocs/assets/images/running_scripts-694a1b310d42791acf64cf76ea370bb273084954107d5e6e2caf15f4fb50e634.png +0 -0
  88. data/tools/staticdocs/assets/images/script_error-2061222e00f5e5190a4407be1f8999200badca9b3137659de007e27cf1708dc0.png +0 -0
  89. data/tools/staticdocs/assets/images/script_menu-5a10df89d9806a59b41ef990fc1181c46c7ffa00496021efceb22c0f31dcc9cc.png +0 -0
  90. data/tools/staticdocs/assets/images/script_messages-5c30dab8202ae3d18fa1f12cdd43f409967b1d4ac84a4a0e96bf027041ab9a07.png +0 -0
  91. data/tools/staticdocs/assets/images/script_runner-31f6bfcb631b788ff0bf792ac21da30aaa503ca926b10a22d4337114effc28f0.png +0 -0
  92. data/tools/staticdocs/assets/images/script_suite-16647c3b3de01a8749f1b5c4ab2f8b452630df8c0470e5be38652acacfc98b5d.png +0 -0
  93. data/tools/staticdocs/assets/images/simple_screen-e3de1ad836c0661d73a0ba970f991c64df8ecc7e23f9e944b6508a9a43fbc33c.png +0 -0
  94. data/tools/staticdocs/assets/images/snoozed_reaction-75ef2acab11a71f5827fbc0a1be95cf0fd6bd5b24b76f9ae6ebaf43fb293ba81.png +0 -0
  95. data/tools/staticdocs/assets/images/status-8ba274306305afaa5642162904c234b69086870b56e1048b1fdffa481aa0e96b.png +0 -0
  96. data/tools/staticdocs/assets/images/suite_checkboxes-af8452153dbc2143718fefcfc7d441e05f42c241b3c10d4f41200ae576f68063.png +0 -0
  97. data/tools/staticdocs/assets/images/table_manager-816d7a683e6883cb8049e5ec8ffef3076b37a489edcc0e5331bc5d81ab506da2.png +0 -0
  98. data/tools/staticdocs/assets/images/targets-77cde238fd55b2ed0a180ac2b906f6c1fe4677b22da718c455d61ac17c8a888f.png +0 -0
  99. data/tools/staticdocs/assets/images/telemetry_grapher-3a37c074a25b7912a76d96fd46a1431d27202d71374f78c829f273e5cb342233.png +0 -0
  100. data/tools/staticdocs/assets/images/telemetry_viewer-e4ac466930993a640f95aea4b01bb9a415eec77dfbfaa184f767cb59940ba943.png +0 -0
  101. data/tools/staticdocs/assets/images/temp1_details-4c4bbe7c2d60e636f0304ee8ac7237af8db2bdba8666c9ae2dc0a105eca248f2.png +0 -0
  102. data/tools/staticdocs/assets/images/tlm_packets-0b02f1f3799948a8278e90f11e7d7f283d9686d3dac18c68b41d25ef49568d22.png +0 -0
  103. data/tools/staticdocs/assets/images/tlm_raw-cc2223b25e8fc732557856168fd7fa04e7b3459bbd163825639fb6235a8e6180.png +0 -0
  104. data/tools/staticdocs/assets/images/trigger_groups-6d9ccc6962029baa456f2d12de0fd3d03e1dbafdbf069cea65886296d2b2bde0.png +0 -0
  105. data/tools/staticdocs/assets/images/two_full_height-ccba2940b80345f3569ea47b7ddd3390c08195de91559f5586f85e36e411afd6.png +0 -0
  106. data/tools/staticdocs/assets/images/two_full_width-0116adbf994500a24d4717e002d32098f8d6197bcece510b84b90400f23feade.png +0 -0
  107. data/tools/staticdocs/assets/images/view_menu-a02cfbd5e6fafa5d3b4f1ae76bfbd63f49388939b4732bf91709f48e44498d19.png +0 -0
  108. data/tools/staticdocs/assets/js/0686a885.b4118c45.js +1 -0
  109. data/tools/staticdocs/assets/js/0f5d161c.d4d5d4dc.js +1 -0
  110. data/tools/staticdocs/assets/js/0ff569c9.f11f548e.js +1 -0
  111. data/tools/staticdocs/assets/js/103cc3be.53ec680c.js +1 -0
  112. data/tools/staticdocs/assets/js/12.afe230eb.js +1 -0
  113. data/tools/staticdocs/assets/js/13196248.1b40932b.js +1 -0
  114. data/tools/staticdocs/assets/js/13c1b4e4.a9ce7463.js +1 -0
  115. data/tools/staticdocs/assets/js/1670.3df3e214.js +1 -0
  116. data/tools/staticdocs/assets/js/2047b354.cf71ed85.js +1 -0
  117. data/tools/staticdocs/assets/js/26b8abb2.98364dbd.js +1 -0
  118. data/tools/staticdocs/assets/js/2bb7bf90.41136655.js +1 -0
  119. data/tools/staticdocs/assets/js/3dd7ef3b.5133eebe.js +1 -0
  120. data/tools/staticdocs/assets/js/3df159b4.6c6b5f85.js +1 -0
  121. data/tools/staticdocs/assets/js/40365d27.b31cf9ac.js +1 -0
  122. data/tools/staticdocs/assets/js/42170351.99726677.js +1 -0
  123. data/tools/staticdocs/assets/js/43652efd.f9ce2508.js +1 -0
  124. data/tools/staticdocs/assets/js/{4657.9492019f.js → 4657.780d60d2.js} +2 -2
  125. data/tools/staticdocs/assets/js/54d0d530.29eb7035.js +1 -0
  126. data/tools/staticdocs/assets/js/5b233ba7.37e9a690.js +1 -0
  127. data/tools/staticdocs/assets/js/{5bc719f6.3f10a4f9.js → 5bc719f6.80666891.js} +1 -1
  128. data/tools/staticdocs/assets/js/5e3ed378.c40da631.js +1 -0
  129. data/tools/staticdocs/assets/js/5fe211ef.9938cdb0.js +1 -0
  130. data/tools/staticdocs/assets/js/6831b732.176e2062.js +1 -0
  131. data/tools/staticdocs/assets/js/6b210247.0db8db18.js +1 -0
  132. data/tools/staticdocs/assets/js/6b65133b.3b600a13.js +1 -0
  133. data/tools/staticdocs/assets/js/72c6d8a8.41b091e3.js +1 -0
  134. data/tools/staticdocs/assets/js/75e64983.6078b2bb.js +1 -0
  135. data/tools/staticdocs/assets/js/867640d5.7d9b46cc.js +1 -0
  136. data/tools/staticdocs/assets/js/89e76475.76286adb.js +1 -0
  137. data/tools/staticdocs/assets/js/8f7843ee.7aaf5f45.js +1 -0
  138. data/tools/staticdocs/assets/js/99581c43.9077ef97.js +1 -0
  139. data/tools/staticdocs/assets/js/9d6e81d0.48e17a84.js +1 -0
  140. data/tools/staticdocs/assets/js/a9987364.a33207e6.js +1 -0
  141. data/tools/staticdocs/assets/js/{aa6b6c1b.eb0299eb.js → aa6b6c1b.c81fb740.js} +1 -1
  142. data/tools/staticdocs/assets/js/b4596165.0d43540a.js +1 -0
  143. data/tools/staticdocs/assets/js/cb8c3f08.bd7af12d.js +1 -0
  144. data/tools/staticdocs/assets/js/{cd879be4.4b9bf792.js → cd879be4.5d8c0503.js} +1 -1
  145. data/tools/staticdocs/assets/js/d1bfc316.3ba6fac4.js +1 -0
  146. data/tools/staticdocs/assets/js/d5d77c37.cd2d8652.js +1 -0
  147. data/tools/staticdocs/assets/js/d9b92eba.d632d375.js +1 -0
  148. data/tools/staticdocs/assets/js/db8fa1d0.b9ed5eb0.js +1 -0
  149. data/tools/staticdocs/assets/js/dc5f7beb.002b1519.js +1 -0
  150. data/tools/staticdocs/assets/js/e501b0d1.21aadf25.js +1 -0
  151. data/tools/staticdocs/assets/js/{ebec1ccb.15788749.js → ebec1ccb.4fc9c662.js} +1 -1
  152. data/tools/staticdocs/assets/js/fd886806.823bd757.js +1 -0
  153. data/tools/staticdocs/assets/js/main.f5f96e22.js +2 -0
  154. data/tools/staticdocs/assets/js/runtime~main.023a2c4f.js +1 -0
  155. data/tools/staticdocs/docs/configuration/command.html +25 -37
  156. data/tools/staticdocs/docs/configuration/format.html +5 -5
  157. data/tools/staticdocs/docs/configuration/interfaces.html +5 -5
  158. data/tools/staticdocs/docs/configuration/plugins.html +6 -7
  159. data/tools/staticdocs/docs/configuration/protocols.html +5 -5
  160. data/tools/staticdocs/docs/configuration/ssl-tls.html +5 -5
  161. data/tools/staticdocs/docs/configuration/table.html +11 -24
  162. data/tools/staticdocs/docs/configuration/target.html +5 -5
  163. data/tools/staticdocs/docs/configuration/telemetry-screens.html +5 -5
  164. data/tools/staticdocs/docs/configuration/telemetry.html +5 -5
  165. data/tools/staticdocs/docs/configuration.html +5 -5
  166. data/tools/staticdocs/docs/development/curl.html +5 -5
  167. data/tools/staticdocs/docs/development/developing.html +5 -5
  168. data/tools/staticdocs/docs/development/host-install.html +5 -5
  169. data/tools/staticdocs/docs/development/json-api.html +5 -5
  170. data/tools/staticdocs/docs/development/log-structure.html +7 -7
  171. data/tools/staticdocs/docs/development/roadmap.html +5 -5
  172. data/tools/staticdocs/docs/development/streaming-api.html +5 -5
  173. data/tools/staticdocs/docs/development/testing.html +5 -5
  174. data/tools/staticdocs/docs/development.html +5 -5
  175. data/tools/staticdocs/docs/getting-started/generators.html +64 -0
  176. data/tools/staticdocs/docs/getting-started/gettingstarted.html +6 -6
  177. data/tools/staticdocs/docs/getting-started/installation.html +7 -7
  178. data/tools/staticdocs/docs/getting-started/key_concepts.html +6 -6
  179. data/tools/staticdocs/docs/getting-started/podman.html +6 -6
  180. data/tools/staticdocs/docs/getting-started/requirements.html +7 -7
  181. data/tools/staticdocs/docs/getting-started/upgrading.html +6 -6
  182. data/tools/staticdocs/docs/getting-started.html +5 -5
  183. data/tools/staticdocs/docs/guides/bridges.html +5 -5
  184. data/tools/staticdocs/docs/guides/cfs.html +9 -12
  185. data/tools/staticdocs/docs/guides/custom-widgets.html +7 -7
  186. data/tools/staticdocs/docs/guides/little-endian-bitfields.html +5 -5
  187. data/tools/staticdocs/docs/guides/local-mode.html +10 -13
  188. data/tools/staticdocs/docs/guides/logging.html +12 -16
  189. data/tools/staticdocs/docs/guides/monitoring.html +5 -5
  190. data/tools/staticdocs/docs/guides/performance.html +5 -5
  191. data/tools/staticdocs/docs/guides/raspberrypi.html +5 -5
  192. data/tools/staticdocs/docs/guides/script-writing.html +7 -9
  193. data/tools/staticdocs/docs/guides/scripting-api.html +6 -6
  194. data/tools/staticdocs/docs/guides.html +5 -5
  195. data/tools/staticdocs/docs/meta/contributing.html +6 -6
  196. data/tools/staticdocs/docs/meta/licenses.html +89 -0
  197. data/tools/staticdocs/docs/meta/philosophy.html +6 -6
  198. data/tools/staticdocs/docs/meta/xtce.html +6 -6
  199. data/tools/staticdocs/docs/meta.html +5 -5
  200. data/tools/staticdocs/docs/privacy.html +5 -5
  201. data/tools/staticdocs/docs/tools/autonomic.html +30 -14
  202. data/tools/staticdocs/docs/tools/bucket-explorer.html +8 -7
  203. data/tools/staticdocs/docs/tools/calendar.html +29 -32
  204. data/tools/staticdocs/docs/tools/cmd-sender.html +12 -14
  205. data/tools/staticdocs/docs/tools/cmd-tlm-server.html +15 -15
  206. data/tools/staticdocs/docs/tools/data-extractor.html +23 -33
  207. data/tools/staticdocs/docs/tools/data-viewer.html +14 -14
  208. data/tools/staticdocs/docs/tools/handbooks.html +6 -6
  209. data/tools/staticdocs/docs/tools/limits-monitor.html +29 -15
  210. data/tools/staticdocs/docs/tools/packet-viewer.html +18 -15
  211. data/tools/staticdocs/docs/tools/script-runner.html +36 -30
  212. data/tools/staticdocs/docs/tools/table-manager.html +7 -7
  213. data/tools/staticdocs/docs/tools/tlm-grapher.html +22 -23
  214. data/tools/staticdocs/docs/tools/tlm-viewer.html +16 -16
  215. data/tools/staticdocs/docs/tools.html +5 -5
  216. data/tools/staticdocs/docs.html +5 -5
  217. data/tools/staticdocs/img/autonomic/autonomic.png +0 -0
  218. data/tools/staticdocs/img/autonomic/create_reaction1.png +0 -0
  219. data/tools/staticdocs/img/autonomic/create_reaction2.png +0 -0
  220. data/tools/staticdocs/img/autonomic/create_reaction3.png +0 -0
  221. data/tools/staticdocs/img/autonomic/create_trigger1.png +0 -0
  222. data/tools/staticdocs/img/autonomic/create_trigger2.png +0 -0
  223. data/tools/staticdocs/img/autonomic/create_trigger3.png +0 -0
  224. data/tools/staticdocs/img/autonomic/disable_trigger.png +0 -0
  225. data/tools/staticdocs/img/autonomic/enabled_trigger.png +0 -0
  226. data/tools/staticdocs/img/autonomic/initial_reaction.png +0 -0
  227. data/tools/staticdocs/img/autonomic/snoozed_reaction.png +0 -0
  228. data/tools/staticdocs/img/autonomic/trigger_groups.png +0 -0
  229. data/tools/staticdocs/img/bucket_explorer/bucket_explorer.png +0 -0
  230. data/tools/staticdocs/img/calendar/blank_calendar.png +0 -0
  231. data/tools/staticdocs/img/calendar/calendar.png +0 -0
  232. data/tools/staticdocs/img/calendar/create_activity1.png +0 -0
  233. data/tools/staticdocs/img/calendar/create_activity2.png +0 -0
  234. data/tools/staticdocs/img/calendar/create_metadata1.png +0 -0
  235. data/tools/staticdocs/img/calendar/create_metadata2.png +0 -0
  236. data/tools/staticdocs/img/calendar/create_note1.png +0 -0
  237. data/tools/staticdocs/img/calendar/create_note2.png +0 -0
  238. data/tools/staticdocs/img/calendar/list_view.png +0 -0
  239. data/tools/staticdocs/img/cmd_tlm_server/cmd_packets.png +0 -0
  240. data/tools/staticdocs/img/cmd_tlm_server/cmd_raw.png +0 -0
  241. data/tools/staticdocs/img/cmd_tlm_server/cmd_tlm_server.png +0 -0
  242. data/tools/staticdocs/img/cmd_tlm_server/file_menu.png +0 -0
  243. data/tools/staticdocs/img/cmd_tlm_server/interfaces.png +0 -0
  244. data/tools/staticdocs/img/cmd_tlm_server/log_messages.png +0 -0
  245. data/tools/staticdocs/img/cmd_tlm_server/routers.png +0 -0
  246. data/tools/staticdocs/img/cmd_tlm_server/status.png +0 -0
  247. data/tools/staticdocs/img/cmd_tlm_server/targets.png +0 -0
  248. data/tools/staticdocs/img/cmd_tlm_server/tlm_packets.png +0 -0
  249. data/tools/staticdocs/img/cmd_tlm_server/tlm_raw.png +0 -0
  250. data/tools/staticdocs/img/command_sender/collect_states.png +0 -0
  251. data/tools/staticdocs/img/command_sender/command_sender.png +0 -0
  252. data/tools/staticdocs/img/command_sender/history.png +0 -0
  253. data/tools/staticdocs/img/command_sender/inst_clear.png +0 -0
  254. data/tools/staticdocs/img/command_sender/inst_collect.png +0 -0
  255. data/tools/staticdocs/img/command_sender/inst_collect_hazardous.png +0 -0
  256. data/tools/staticdocs/img/command_sender/mode_menu.png +0 -0
  257. data/tools/staticdocs/img/data_extractor/add_item.png +0 -0
  258. data/tools/staticdocs/img/data_extractor/add_packet.png +0 -0
  259. data/tools/staticdocs/img/data_extractor/add_target.png +0 -0
  260. data/tools/staticdocs/img/data_extractor/data_extractor.png +0 -0
  261. data/tools/staticdocs/img/data_extractor/delete_all_mouseover.png +0 -0
  262. data/tools/staticdocs/img/data_extractor/edit_all_items.png +0 -0
  263. data/tools/staticdocs/img/data_extractor/edit_all_mouseover.png +0 -0
  264. data/tools/staticdocs/img/data_extractor/edit_temp1.png +0 -0
  265. data/tools/staticdocs/img/data_extractor/file_menu.png +0 -0
  266. data/tools/staticdocs/img/data_extractor/mode_menu.png +0 -0
  267. data/tools/staticdocs/img/data_extractor/processing.png +0 -0
  268. data/tools/staticdocs/img/data_extractor/processing_done.png +0 -0
  269. data/tools/staticdocs/img/data_viewer/add_component.png +0 -0
  270. data/tools/staticdocs/img/data_viewer/data_viewer.png +0 -0
  271. data/tools/staticdocs/img/data_viewer/display_settings.png +0 -0
  272. data/tools/staticdocs/img/data_viewer/file_menu.png +0 -0
  273. data/tools/staticdocs/img/generator/plugin_files.png +0 -0
  274. data/tools/staticdocs/img/generator/target_files.png +0 -0
  275. data/tools/staticdocs/img/guides/local_mode/delete_modified.png +0 -0
  276. data/tools/staticdocs/img/guides/local_mode/project.png +0 -0
  277. data/tools/staticdocs/img/guides/local_mode/reload_file.png +0 -0
  278. data/tools/staticdocs/img/guides/local_mode/reloaded.png +0 -0
  279. data/tools/staticdocs/img/guides/logging/log_messages.png +0 -0
  280. data/tools/staticdocs/img/guides/logging/logs.png +0 -0
  281. data/tools/staticdocs/img/guides/logging/raw_tlm_logs.png +0 -0
  282. data/tools/staticdocs/img/guides/logging/script_messages.png +0 -0
  283. data/tools/staticdocs/img/guides/plugin_variables.png +0 -0
  284. data/tools/staticdocs/img/guides/simple_screen.png +0 -0
  285. data/tools/staticdocs/img/handbooks/handbooks.png +0 -0
  286. data/tools/staticdocs/img/limits_monitor/change_limits_set.png +0 -0
  287. data/tools/staticdocs/img/limits_monitor/file_menu.png +0 -0
  288. data/tools/staticdocs/img/limits_monitor/ignored.png +0 -0
  289. data/tools/staticdocs/img/limits_monitor/limits_monitor.png +0 -0
  290. data/tools/staticdocs/img/limits_monitor/log.png +0 -0
  291. data/tools/staticdocs/img/packet_viewer/file_menu.png +0 -0
  292. data/tools/staticdocs/img/packet_viewer/packet_viewer.png +0 -0
  293. data/tools/staticdocs/img/packet_viewer/temp1_details.png +0 -0
  294. data/tools/staticdocs/img/packet_viewer/view_menu.png +0 -0
  295. data/tools/staticdocs/img/script_runner/checks_rb.png +0 -0
  296. data/tools/staticdocs/img/script_runner/connecting.png +0 -0
  297. data/tools/staticdocs/img/script_runner/debug.png +0 -0
  298. data/tools/staticdocs/img/script_runner/edit_menu.png +0 -0
  299. data/tools/staticdocs/img/script_runner/file_menu.png +0 -0
  300. data/tools/staticdocs/img/script_runner/file_open.png +0 -0
  301. data/tools/staticdocs/img/script_runner/running_scripts.png +0 -0
  302. data/tools/staticdocs/img/script_runner/script_error.png +0 -0
  303. data/tools/staticdocs/img/script_runner/script_menu.png +0 -0
  304. data/tools/staticdocs/img/script_runner/script_runner.png +0 -0
  305. data/tools/staticdocs/img/script_runner/script_suite.png +0 -0
  306. data/tools/staticdocs/img/script_runner/suite_checkboxes.png +0 -0
  307. data/tools/staticdocs/img/table_manager/file_menu.png +0 -0
  308. data/tools/staticdocs/img/table_manager/table_manager.png +0 -0
  309. data/tools/staticdocs/img/telemetry_grapher/edit_graph.png +0 -0
  310. data/tools/staticdocs/img/telemetry_grapher/file_menu.png +0 -0
  311. data/tools/staticdocs/img/telemetry_grapher/four_graphs.png +0 -0
  312. data/tools/staticdocs/img/telemetry_grapher/graph_menu.png +0 -0
  313. data/tools/staticdocs/img/telemetry_grapher/graph_min_max.png +0 -0
  314. data/tools/staticdocs/img/telemetry_grapher/graph_temp1.png +0 -0
  315. data/tools/staticdocs/img/telemetry_grapher/graph_temp1_temp2.png +0 -0
  316. data/tools/staticdocs/img/telemetry_grapher/graph_temp1_time.png +0 -0
  317. data/tools/staticdocs/img/telemetry_grapher/minimized.png +0 -0
  318. data/tools/staticdocs/img/telemetry_grapher/telemetry_grapher.png +0 -0
  319. data/tools/staticdocs/img/telemetry_grapher/two_full_height.png +0 -0
  320. data/tools/staticdocs/img/telemetry_grapher/two_full_width.png +0 -0
  321. data/tools/staticdocs/img/telemetry_viewer/edit_screen.png +0 -0
  322. data/tools/staticdocs/img/telemetry_viewer/file_menu.png +0 -0
  323. data/tools/staticdocs/img/telemetry_viewer/float_minimize.png +0 -0
  324. data/tools/staticdocs/img/telemetry_viewer/new_screen.png +0 -0
  325. data/tools/staticdocs/img/telemetry_viewer/telemetry_viewer.png +0 -0
  326. data/tools/staticdocs/index.html +5 -5
  327. data/tools/staticdocs/lunr-index-1705623764307.json +1 -0
  328. data/tools/staticdocs/lunr-index.json +1 -1
  329. data/tools/staticdocs/markdown-page.html +5 -5
  330. data/tools/staticdocs/search-doc-1705623764307.json +1 -0
  331. data/tools/staticdocs/search-doc.json +1 -1
  332. data/tools/staticdocs/sitemap.xml +1 -1
  333. metadata +277 -261
  334. data/tools/staticdocs/assets/css/styles.6e885bef.css +0 -1
  335. data/tools/staticdocs/assets/images/add_packet-f318d0e92e8a13bd56331350aa341c88c8b12f2c54a4424f6e287817f22fb327.png +0 -0
  336. data/tools/staticdocs/assets/images/autonomic-3d6d152f700c8fc1878d0f952d013ace31fccd7872d28587dc761610a0959e9c.png +0 -0
  337. data/tools/staticdocs/assets/images/bucket_explorer-983c087ee3bdcf8626219e782620b6c580fd82bfe2e8b0c662a0f90cdca43838.png +0 -0
  338. data/tools/staticdocs/assets/images/calendar-9fbd635cf3df1ba684bb0c1ebc4f6ad34991efc582e9fd07820c8b74cbb66aa1.png +0 -0
  339. data/tools/staticdocs/assets/images/checks_rb-a6049cdd99613cea2ee12d76fcfe798ff05270e39d208e93d37da7347049b2b3.png +0 -0
  340. data/tools/staticdocs/assets/images/cmd_tlm_server-313e3f64afc0e374d9d28b46364235d7b793001f84690fc0ae90e1eefdd9142d.png +0 -0
  341. data/tools/staticdocs/assets/images/command_sender-a0b113b65368263529d0f8f2d93276a0a44ed81af0d0100f56379346ba592928.png +0 -0
  342. data/tools/staticdocs/assets/images/commands-3608d5c856fd34e771d1f9e69f9f449f52929249bdf4f0e7feed0aa2bd2d9fd7.png +0 -0
  343. data/tools/staticdocs/assets/images/connecting-6e453f3d99800d4cb8fdc78f5b8fce1e8cf1bb04840a29dec7c5caefd07c004f.png +0 -0
  344. data/tools/staticdocs/assets/images/data_extractor-62c5b1743ba9dfdff2e393bcbdf863c36effc5ef5319d845cfd17186bd757bca.png +0 -0
  345. data/tools/staticdocs/assets/images/data_viewer-8c547cb5ad2ebd179aac5e46c2f4c147889ebad53a5359a5e6b6c580de7184fe.png +0 -0
  346. data/tools/staticdocs/assets/images/date_chooser-10f7b740b9acc76604e5dc86fe409b6b777abe0fb3fa5ebf8f47cb1ac58b9676.png +0 -0
  347. data/tools/staticdocs/assets/images/debug-04088348cc04bb8e1a1063fc44920dc8e39616840ef4b09a36c823f185c28669.png +0 -0
  348. data/tools/staticdocs/assets/images/delete_all_mouseover-06083f3d3d712d39f21bc5eda45adbfff449732a2061e53cb1a0baf6c5f5d4b8.png +0 -0
  349. data/tools/staticdocs/assets/images/delete_modified-a7ec0ceb61c37398d57fcecf11ebe2453ebd0110be6cfc960a5073a13a557638.png +0 -0
  350. data/tools/staticdocs/assets/images/edit_all_items-2c57aff19d3b1ce52149c37f50dcaad8c30baa0c9931fdc629f1d163bb56ce96.png +0 -0
  351. data/tools/staticdocs/assets/images/edit_all_mouseover-f6646df5320045ee10d4c0a15d0349fed6ede075f9cea6f9e449b3785c4f4f8d.png +0 -0
  352. data/tools/staticdocs/assets/images/edit_graph-4ca61635376fae26cf5eb82fb9fd803f1a51c4d3584aaf9833a270b7916bf531.png +0 -0
  353. data/tools/staticdocs/assets/images/edit_screen-5724ae13958c1631b3c187cf7cdb6dc9672ecd71f8b0786ac17c0266001edac3.png +0 -0
  354. data/tools/staticdocs/assets/images/edit_temp1-7446e7c5b7869ccc9ddd467779fa86f44301a5e5896751b016a527587c483cb2.png +0 -0
  355. data/tools/staticdocs/assets/images/file_menu-2fe13872737c0f3fef84ba5b58b80b609082733acce536ec1f56910c36f68299.png +0 -0
  356. data/tools/staticdocs/assets/images/file_open-319761fd383fc513b3689ef0a7498c73ce9459a3967c8a395cc2da07c89240d0.png +0 -0
  357. data/tools/staticdocs/assets/images/file_save_as-44468ed6a48bea3bc4fdd8f50d802569e4582b453e5bf946bfdcba400030d499.png +0 -0
  358. data/tools/staticdocs/assets/images/four_graphs-826cf8145338fa46e037556df94c59aeb4448330b601953daa94c89de8494cfd.png +0 -0
  359. data/tools/staticdocs/assets/images/graph_min_max-80a2bd83230c71b00ba9d6da24b8c32a09e4983976cdbf32c33d2680b534b106.png +0 -0
  360. data/tools/staticdocs/assets/images/graph_temp1-de937a79b314cf856b783c936d2460a6c942bdd45e4d9b3fe488957df5bfa9bc.png +0 -0
  361. data/tools/staticdocs/assets/images/graph_temp1_temp2-e96370f7d73a6cb68beaa92bcaaf18b72e6619ce948fe835762cca1048efbd18.png +0 -0
  362. data/tools/staticdocs/assets/images/graph_temp1_time-fec5e99e3cc05ea87208abe9c4b66b63b7497bbefee55f65d034417e966b1c46.png +0 -0
  363. data/tools/staticdocs/assets/images/handbooks-1d301c83c80a7cb96c548006f5139fe8ec967ed10a49df0142b37328cd987f33.png +0 -0
  364. data/tools/staticdocs/assets/images/ignored-1e20d4ffe7fd88ffab610340957b1176294269f985e8fdb20a9af07d7a78215f.png +0 -0
  365. data/tools/staticdocs/assets/images/inst_clear-5ecb859f06f14d91d2ebba27e5a7848d6393db5ad2357f95c12e776c45f6bc64.png +0 -0
  366. data/tools/staticdocs/assets/images/inst_collect-4f4e453a6521b779e10c4d2be6a8b1acf15fcb083af0164b0df1de27ca250132.png +0 -0
  367. data/tools/staticdocs/assets/images/inst_collect_hazardous-3aeabedb96bf114b4eb56b6b2ee7bcc601302ec8905a82a16c47ae7870f97978.png +0 -0
  368. data/tools/staticdocs/assets/images/inst_collect_hazardous_history-952a6e6ff2fb1b5fdf2c6b3d84a3ccf9e303eeb310f35514dc4a6e95f2a7420e.png +0 -0
  369. data/tools/staticdocs/assets/images/inst_collect_sent-0de429f724264ce8c52a6cb22d4bbb96f14e22b559c091ff4375bb59f124a7a2.png +0 -0
  370. data/tools/staticdocs/assets/images/inst_collect_sent_3-91cf4e053d246917964330ab93534a0a5eb878b652e7ea879effca7c4eaefbea.png +0 -0
  371. data/tools/staticdocs/assets/images/interfaces-5622abf50e3df63980661a48216bf71187f38cb636bd512f48917ca4a425f083.png +0 -0
  372. data/tools/staticdocs/assets/images/items_table-2fc1bb4d03a2348c4af7df442e13cee2f310cf455228005d76cbfda7a706aa53.png +0 -0
  373. data/tools/staticdocs/assets/images/items_table_raw-c4d454679c4503ec35710dcee6be5cd1940984595145b333d8604bc505dfe291.png +0 -0
  374. data/tools/staticdocs/assets/images/items_table_temp1-ea091eaf8005cea839800f4514f72f94e9664993111b935f33e7c5aa3061ca64.png +0 -0
  375. data/tools/staticdocs/assets/images/limits_monitor-c58d70daea7586b93d5069b9df068a90cea5f7cf2e51a445f3162bf3f66db3d0.png +0 -0
  376. data/tools/staticdocs/assets/images/list_view-926f42bc1e43283c61616b0cd8fd630cad8e15c9b7298acd98536842472e673b.png +0 -0
  377. data/tools/staticdocs/assets/images/log-ba64fd307e53adafae55fcea7eb31829ee1aacdf4aafe8b40b270b793be3aa27.png +0 -0
  378. data/tools/staticdocs/assets/images/log_messages-19c3ce9c7ff86e43d459cb6591df8c05d25e1390d857728cb462a57b9d3ccc69.png +0 -0
  379. data/tools/staticdocs/assets/images/log_messages-2cfad0fd6f6f980f69b5564a4b7ecfecf3331c6256c78bcfb2b084970db305ca.png +0 -0
  380. data/tools/staticdocs/assets/images/minimized-59d0d8d8a179ff0475787e87237b77b24d59d78826d43dbc1a554a51380eb37f.png +0 -0
  381. data/tools/staticdocs/assets/images/minimized-a658bd8f2115d3f9a386844e886de770b23bbf9c0c8c55a4ca587cea67ec320e.png +0 -0
  382. data/tools/staticdocs/assets/images/minio-150460ac77a50711835de6f0150d019000e5515afae0f3adfcdda8e891484f47.png +0 -0
  383. data/tools/staticdocs/assets/images/mouseover-95b774047b3c2ca23a3bc645caf75d90511c378729dd9cfb781510a1452e09fe.png +0 -0
  384. data/tools/staticdocs/assets/images/new_screen-295720ec60219194c8c8dd64c755e8a188cc4a68c2b6cf66197b54514644d52a.png +0 -0
  385. data/tools/staticdocs/assets/images/notifications-5b32d6619542431027ddd67491eb445469fa2d16fa8352a2b0917b9298b7bbb2.png +0 -0
  386. data/tools/staticdocs/assets/images/open_config-2e61415a3c2d7a4ce427cf325f3708dd4a761092b7dd0c869279c4354dc34ae4.png +0 -0
  387. data/tools/staticdocs/assets/images/open_config-3cd3be1ce4560d9e72bb37b83dc830149091dec9a088c36187e0e72660c6ec34.png +0 -0
  388. data/tools/staticdocs/assets/images/open_config-55ef2f241d02047b252bb8201742f99cffed5680d0e9eb46b3cb53a644ca3dc9.png +0 -0
  389. data/tools/staticdocs/assets/images/open_config-f848a8b371ae0ec31776834148e9f978d9be94efef03534e5ca3a59c0ae3847f.png +0 -0
  390. data/tools/staticdocs/assets/images/packet_viewer-19c1015cc704a98d1f6d90dd0dadc13188d25f1d5d2e838b7cfb226e8c173c7b.png +0 -0
  391. data/tools/staticdocs/assets/images/plugin-variables-5bc00c744182c9a9591e84cb3bbb1c4deb53ff22e05f62ce1b807c26bed782e5.png +0 -0
  392. data/tools/staticdocs/assets/images/processing-b0c50908284739a76e1bbcfcb3eb34dc9446f8716117cb0e9089ad9df53ebed6.png +0 -0
  393. data/tools/staticdocs/assets/images/project-fe7ac90f3e45971fca8f1be94be9dbabe494bafe705e7f8f485676e9d96e47ea.png +0 -0
  394. data/tools/staticdocs/assets/images/project_update-8e7de3b0658b95d4d9931eb52ff8bf339d633cbdc273ce096eb11ceb357c009e.png +0 -0
  395. data/tools/staticdocs/assets/images/raw_command-759d93759a73a6a3dd7e30f89fc4d1a544dfb6f7355abfed03897d404279161d.png +0 -0
  396. data/tools/staticdocs/assets/images/raw_telemetry-ffeb6b603f9a9abbe0cb77afaaeb4b4f07dfee479682a5c9661f85589a679049.png +0 -0
  397. data/tools/staticdocs/assets/images/raw_tlm_logs-8dcba4f020b36f8efbb793271b70d40d9cad627196afaeb5bf6f3931ed53fa52.png +0 -0
  398. data/tools/staticdocs/assets/images/reactions-dd4a8ebf22eed921a82a5478d23178c62e2cf944d295c2b9e3f4d7ce555b0fcc.png +0 -0
  399. data/tools/staticdocs/assets/images/reload_file-8e26cd3e1bc1eab7bb6c046d9a6a8231fcd76e56682d819b1e549182890c6486.png +0 -0
  400. data/tools/staticdocs/assets/images/reloaded-9effa15527244928ee503eb0c3a48cc5e82c07cfb5d5c4300eacfcab913069d1.png +0 -0
  401. data/tools/staticdocs/assets/images/running_scripts-78bfd36a6c8c7167234e03bd188e974927c2beea1f730498583169a81639e7a3.png +0 -0
  402. data/tools/staticdocs/assets/images/save_config-0ae36ac1f8114665f2558e936ba3b30e5cba2a16cc01d3494e14ed689b4637f7.png +0 -0
  403. data/tools/staticdocs/assets/images/save_config-8b028134b07c70d6de019825cbb328623fc485d72aad9ba5b1980246b316fec2.png +0 -0
  404. data/tools/staticdocs/assets/images/save_config-e4ed80276ebdc2c4eaf9aaeb859cff8aecb380b22da8c659741c31ca66914098.png +0 -0
  405. data/tools/staticdocs/assets/images/save_config-e748a338526ffd8f9e49def5c0d15f8a80cd987f40d210ff6c6d4b61b713555c.png +0 -0
  406. data/tools/staticdocs/assets/images/script_error-ce060b3086e7b466e51a276fb6b27245b4d042f07a60fe121b0071dd65a42075.png +0 -0
  407. data/tools/staticdocs/assets/images/script_runner-7d7f01b90be962b4de46c20568727c55488eec5d9844823b53a262c9cfc470fa.png +0 -0
  408. data/tools/staticdocs/assets/images/script_suite-42832d936f91417740b76a39841996c8e4a7cf5391dbb19abe9d7b31ab07dd7d.png +0 -0
  409. data/tools/staticdocs/assets/images/select_item-f063106a8d836656496ba81e7e7428f51bd8ab95aebab0aa4eb6ad41ed42e026.png +0 -0
  410. data/tools/staticdocs/assets/images/select_packet-0b6d5a2b012445ab2bf0fd3e1545f015cd7787280d05d2bccb0a9c9220102529.png +0 -0
  411. data/tools/staticdocs/assets/images/select_packet-be9d63c49f898cccb73f9e4b2b39c4b5879cead34a8ab2ede0bb08e953498e95.png +0 -0
  412. data/tools/staticdocs/assets/images/select_target-71ebcab6cbefafd8958939130861a75f7544e99a043d90fa0734ec2f983d835f.png +0 -0
  413. data/tools/staticdocs/assets/images/simple_screen-3c9d6d2366c716c03a301396a4ce0ea418532890f349d9bc9ebb8be90983a6e6.png +0 -0
  414. data/tools/staticdocs/assets/images/status-80010882300d2f1c453fbc4cb35bdb1f06d3db578266dda95c56ea7ec230ac72.png +0 -0
  415. data/tools/staticdocs/assets/images/table_manager-9a5357ce536102bc1bb0c859be552f4ac82f62e538935a3c45a8e76d4f9744db.png +0 -0
  416. data/tools/staticdocs/assets/images/targets-d15296b133787be4997c3d5e7d43eec9030831f1758508a8f6a71d40d04478ce.png +0 -0
  417. data/tools/staticdocs/assets/images/telemetry-3f1169fc67b3d2427047ba66a9b2f3ddf71f61edf498ee70d14e78f0ef3c1e3c.png +0 -0
  418. data/tools/staticdocs/assets/images/telemetry_grapher-a96b7e0101f5e377a73a186683e967e79d748c5dff2dfed6ec0afcea5694d7c8.png +0 -0
  419. data/tools/staticdocs/assets/images/telemetry_viewer-be6ee576f1efceb39c2f744889deb4c18f571c4922c69d5d0e5f49a653776a46.png +0 -0
  420. data/tools/staticdocs/assets/images/temp1_details-f0b6e62bc28da18febacc936112735e1dbd5718ef675668f04d8b3e060d7f87a.png +0 -0
  421. data/tools/staticdocs/assets/images/time_chooser-e4ca0705d5b97c3056b0de3ab7f71f8091482b9b2e8904e69866a43ce4e616f2.png +0 -0
  422. data/tools/staticdocs/assets/images/triggers-0b0b3f9cc2850c1b83b9a7aab6f8a936626fd847c3158e993e4baa0e64b38096.png +0 -0
  423. data/tools/staticdocs/assets/images/two_full_height-7cf9d0bbdf0269ad85e312f6dcb77930e1e3c4319f9750968a9347fafcf26084.png +0 -0
  424. data/tools/staticdocs/assets/images/two_full_width-db2d88c0e2e6fc417016f47e3bac0bf68374957d8fc014220f53870429ea1ef3.png +0 -0
  425. data/tools/staticdocs/assets/images/view_portal-b2e5fef00be80f1551b965d170fc3cd8ed95597f0a1e475a8177ab2d306215f5.png +0 -0
  426. data/tools/staticdocs/assets/images/view_portal_add-56f06135fc56f1fa85cbc22ea3b7ad52f311641aad25df08b6f4a6f979b30e3f.png +0 -0
  427. data/tools/staticdocs/assets/js/0686a885.4e302d8a.js +0 -1
  428. data/tools/staticdocs/assets/js/0f5d161c.d985bc97.js +0 -1
  429. data/tools/staticdocs/assets/js/0ff569c9.e271df4e.js +0 -1
  430. data/tools/staticdocs/assets/js/103cc3be.4cf4eeb0.js +0 -1
  431. data/tools/staticdocs/assets/js/12.ef103c80.js +0 -1
  432. data/tools/staticdocs/assets/js/13196248.51e9b91e.js +0 -1
  433. data/tools/staticdocs/assets/js/13c1b4e4.82c72cb7.js +0 -1
  434. data/tools/staticdocs/assets/js/2047b354.fd40457e.js +0 -1
  435. data/tools/staticdocs/assets/js/26b8abb2.a77dc1e7.js +0 -1
  436. data/tools/staticdocs/assets/js/3dd7ef3b.e063c83a.js +0 -1
  437. data/tools/staticdocs/assets/js/3df159b4.7047e215.js +0 -1
  438. data/tools/staticdocs/assets/js/40365d27.cfe2d836.js +0 -1
  439. data/tools/staticdocs/assets/js/42170351.cee0ce87.js +0 -1
  440. data/tools/staticdocs/assets/js/43652efd.a68af7c2.js +0 -1
  441. data/tools/staticdocs/assets/js/54d0d530.ae86bb53.js +0 -1
  442. data/tools/staticdocs/assets/js/5e3ed378.98a98907.js +0 -1
  443. data/tools/staticdocs/assets/js/5fe211ef.943a1325.js +0 -1
  444. data/tools/staticdocs/assets/js/6831b732.677fead8.js +0 -1
  445. data/tools/staticdocs/assets/js/6b210247.f17d074a.js +0 -1
  446. data/tools/staticdocs/assets/js/6b65133b.1691ed32.js +0 -1
  447. data/tools/staticdocs/assets/js/7158.db39a041.js +0 -1
  448. data/tools/staticdocs/assets/js/72c6d8a8.895d48ed.js +0 -1
  449. data/tools/staticdocs/assets/js/75e64983.a5199202.js +0 -1
  450. data/tools/staticdocs/assets/js/867640d5.52676c0c.js +0 -1
  451. data/tools/staticdocs/assets/js/89e76475.da0a4de8.js +0 -1
  452. data/tools/staticdocs/assets/js/8f7843ee.5069508d.js +0 -1
  453. data/tools/staticdocs/assets/js/99581c43.d6c28a4e.js +0 -1
  454. data/tools/staticdocs/assets/js/9d6e81d0.9a3ba2db.js +0 -1
  455. data/tools/staticdocs/assets/js/a9987364.e1bf97fd.js +0 -1
  456. data/tools/staticdocs/assets/js/b4596165.d2ef4105.js +0 -1
  457. data/tools/staticdocs/assets/js/cb8c3f08.9ca026be.js +0 -1
  458. data/tools/staticdocs/assets/js/d1bfc316.f860e15e.js +0 -1
  459. data/tools/staticdocs/assets/js/d5d77c37.c1e1579f.js +0 -1
  460. data/tools/staticdocs/assets/js/d9b92eba.cd5125b1.js +0 -1
  461. data/tools/staticdocs/assets/js/db8fa1d0.c1a3930b.js +0 -1
  462. data/tools/staticdocs/assets/js/dc5f7beb.87e69867.js +0 -1
  463. data/tools/staticdocs/assets/js/e501b0d1.64985b23.js +0 -1
  464. data/tools/staticdocs/assets/js/fd886806.5a283ff8.js +0 -1
  465. data/tools/staticdocs/assets/js/main.1b3209ca.js +0 -2
  466. data/tools/staticdocs/assets/js/runtime~main.6ca622b3.js +0 -1
  467. data/tools/staticdocs/img/v5/autonomic/autonomic.png +0 -0
  468. data/tools/staticdocs/img/v5/autonomic/reactions.png +0 -0
  469. data/tools/staticdocs/img/v5/autonomic/triggers.png +0 -0
  470. data/tools/staticdocs/img/v5/bucket_explorer/bucket_explorer.png +0 -0
  471. data/tools/staticdocs/img/v5/calendar/calendar.png +0 -0
  472. data/tools/staticdocs/img/v5/calendar/list_view.png +0 -0
  473. data/tools/staticdocs/img/v5/cmd_tlm_server/cmd_tlm_server.png +0 -0
  474. data/tools/staticdocs/img/v5/cmd_tlm_server/commands.png +0 -0
  475. data/tools/staticdocs/img/v5/cmd_tlm_server/file_menu.png +0 -0
  476. data/tools/staticdocs/img/v5/cmd_tlm_server/interfaces.png +0 -0
  477. data/tools/staticdocs/img/v5/cmd_tlm_server/log_messages.png +0 -0
  478. data/tools/staticdocs/img/v5/cmd_tlm_server/raw_command.png +0 -0
  479. data/tools/staticdocs/img/v5/cmd_tlm_server/raw_telemetry.png +0 -0
  480. data/tools/staticdocs/img/v5/cmd_tlm_server/routers.png +0 -0
  481. data/tools/staticdocs/img/v5/cmd_tlm_server/status.png +0 -0
  482. data/tools/staticdocs/img/v5/cmd_tlm_server/targets.png +0 -0
  483. data/tools/staticdocs/img/v5/cmd_tlm_server/telemetry.png +0 -0
  484. data/tools/staticdocs/img/v5/command_sender/command_sender.png +0 -0
  485. data/tools/staticdocs/img/v5/command_sender/inst_clear.png +0 -0
  486. data/tools/staticdocs/img/v5/command_sender/inst_collect.png +0 -0
  487. data/tools/staticdocs/img/v5/command_sender/inst_collect_hazardous.png +0 -0
  488. data/tools/staticdocs/img/v5/command_sender/inst_collect_sent.png +0 -0
  489. data/tools/staticdocs/img/v5/command_sender/inst_collect_sent_3.png +0 -0
  490. data/tools/staticdocs/img/v5/command_sender/mode_menu.png +0 -0
  491. data/tools/staticdocs/img/v5/data_extractor/data_extractor.png +0 -0
  492. data/tools/staticdocs/img/v5/data_extractor/date_chooser.png +0 -0
  493. data/tools/staticdocs/img/v5/data_extractor/delete_all_mouseover.png +0 -0
  494. data/tools/staticdocs/img/v5/data_extractor/download.png +0 -0
  495. data/tools/staticdocs/img/v5/data_extractor/edit_all_items.png +0 -0
  496. data/tools/staticdocs/img/v5/data_extractor/edit_all_mouseover.png +0 -0
  497. data/tools/staticdocs/img/v5/data_extractor/edit_temp1.png +0 -0
  498. data/tools/staticdocs/img/v5/data_extractor/file_menu.png +0 -0
  499. data/tools/staticdocs/img/v5/data_extractor/items_table.png +0 -0
  500. data/tools/staticdocs/img/v5/data_extractor/items_table_raw.png +0 -0
  501. data/tools/staticdocs/img/v5/data_extractor/items_table_temp1.png +0 -0
  502. data/tools/staticdocs/img/v5/data_extractor/mode_menu.png +0 -0
  503. data/tools/staticdocs/img/v5/data_extractor/open_config.png +0 -0
  504. data/tools/staticdocs/img/v5/data_extractor/processing.png +0 -0
  505. data/tools/staticdocs/img/v5/data_extractor/save_config.png +0 -0
  506. data/tools/staticdocs/img/v5/data_extractor/select_item.png +0 -0
  507. data/tools/staticdocs/img/v5/data_extractor/select_packet.png +0 -0
  508. data/tools/staticdocs/img/v5/data_extractor/select_target.png +0 -0
  509. data/tools/staticdocs/img/v5/data_extractor/time_chooser.png +0 -0
  510. data/tools/staticdocs/img/v5/data_viewer/add_packet.png +0 -0
  511. data/tools/staticdocs/img/v5/data_viewer/data_viewer.png +0 -0
  512. data/tools/staticdocs/img/v5/data_viewer/file_menu.png +0 -0
  513. data/tools/staticdocs/img/v5/data_viewer/open_config.png +0 -0
  514. data/tools/staticdocs/img/v5/data_viewer/rename_tab.png +0 -0
  515. data/tools/staticdocs/img/v5/data_viewer/save_config.png +0 -0
  516. data/tools/staticdocs/img/v5/data_viewer/tab_right_click.png +0 -0
  517. data/tools/staticdocs/img/v5/data_viewer/view_portal.png +0 -0
  518. data/tools/staticdocs/img/v5/data_viewer/view_portal_add.png +0 -0
  519. data/tools/staticdocs/img/v5/guides/local_mode/delete_modified.png +0 -0
  520. data/tools/staticdocs/img/v5/guides/local_mode/minio.png +0 -0
  521. data/tools/staticdocs/img/v5/guides/local_mode/project.png +0 -0
  522. data/tools/staticdocs/img/v5/guides/local_mode/project_update.png +0 -0
  523. data/tools/staticdocs/img/v5/guides/local_mode/reload_file.png +0 -0
  524. data/tools/staticdocs/img/v5/guides/local_mode/reloaded.png +0 -0
  525. data/tools/staticdocs/img/v5/guides/logging/browser.png +0 -0
  526. data/tools/staticdocs/img/v5/guides/logging/log_messages.png +0 -0
  527. data/tools/staticdocs/img/v5/guides/logging/notifications.png +0 -0
  528. data/tools/staticdocs/img/v5/guides/logging/raw_tlm_logs.png +0 -0
  529. data/tools/staticdocs/img/v5/guides/plugin-variables.png +0 -0
  530. data/tools/staticdocs/img/v5/guides/simple_screen.png +0 -0
  531. data/tools/staticdocs/img/v5/handbooks/handbooks.png +0 -0
  532. data/tools/staticdocs/img/v5/limits_monitor/ignored.png +0 -0
  533. data/tools/staticdocs/img/v5/limits_monitor/limits_monitor.png +0 -0
  534. data/tools/staticdocs/img/v5/limits_monitor/log.png +0 -0
  535. data/tools/staticdocs/img/v5/limits_monitor/mouseover.png +0 -0
  536. data/tools/staticdocs/img/v5/navigation.png +0 -0
  537. data/tools/staticdocs/img/v5/packet_viewer/file_menu.png +0 -0
  538. data/tools/staticdocs/img/v5/packet_viewer/packet_viewer.png +0 -0
  539. data/tools/staticdocs/img/v5/packet_viewer/select_packet.png +0 -0
  540. data/tools/staticdocs/img/v5/packet_viewer/temp1_details.png +0 -0
  541. data/tools/staticdocs/img/v5/packet_viewer/view_menu.png +0 -0
  542. data/tools/staticdocs/img/v5/script_runner/checks_rb.png +0 -0
  543. data/tools/staticdocs/img/v5/script_runner/connecting.png +0 -0
  544. data/tools/staticdocs/img/v5/script_runner/debug.png +0 -0
  545. data/tools/staticdocs/img/v5/script_runner/file_menu.png +0 -0
  546. data/tools/staticdocs/img/v5/script_runner/file_open.png +0 -0
  547. data/tools/staticdocs/img/v5/script_runner/running_scripts.png +0 -0
  548. data/tools/staticdocs/img/v5/script_runner/script_error.png +0 -0
  549. data/tools/staticdocs/img/v5/script_runner/script_menu.png +0 -0
  550. data/tools/staticdocs/img/v5/script_runner/script_runner.png +0 -0
  551. data/tools/staticdocs/img/v5/script_runner/script_suite.png +0 -0
  552. data/tools/staticdocs/img/v5/table_manager/file_menu.png +0 -0
  553. data/tools/staticdocs/img/v5/table_manager/table_manager.png +0 -0
  554. data/tools/staticdocs/img/v5/telemetry_grapher/edit_graph.png +0 -0
  555. data/tools/staticdocs/img/v5/telemetry_grapher/file_menu.png +0 -0
  556. data/tools/staticdocs/img/v5/telemetry_grapher/four_graphs.png +0 -0
  557. data/tools/staticdocs/img/v5/telemetry_grapher/graph_menu.png +0 -0
  558. data/tools/staticdocs/img/v5/telemetry_grapher/graph_min_max.png +0 -0
  559. data/tools/staticdocs/img/v5/telemetry_grapher/graph_temp1.png +0 -0
  560. data/tools/staticdocs/img/v5/telemetry_grapher/graph_temp1_temp2.png +0 -0
  561. data/tools/staticdocs/img/v5/telemetry_grapher/graph_temp1_time.png +0 -0
  562. data/tools/staticdocs/img/v5/telemetry_grapher/minimized.png +0 -0
  563. data/tools/staticdocs/img/v5/telemetry_grapher/open_config.png +0 -0
  564. data/tools/staticdocs/img/v5/telemetry_grapher/save_config.png +0 -0
  565. data/tools/staticdocs/img/v5/telemetry_grapher/telemetry_grapher.png +0 -0
  566. data/tools/staticdocs/img/v5/telemetry_grapher/two_full_height.png +0 -0
  567. data/tools/staticdocs/img/v5/telemetry_grapher/two_full_width.png +0 -0
  568. data/tools/staticdocs/img/v5/telemetry_viewer/edit_screen.png +0 -0
  569. data/tools/staticdocs/img/v5/telemetry_viewer/file_menu.png +0 -0
  570. data/tools/staticdocs/img/v5/telemetry_viewer/minimized.png +0 -0
  571. data/tools/staticdocs/img/v5/telemetry_viewer/new_screen.png +0 -0
  572. data/tools/staticdocs/img/v5/telemetry_viewer/open_config.png +0 -0
  573. data/tools/staticdocs/img/v5/telemetry_viewer/save_config.png +0 -0
  574. data/tools/staticdocs/img/v5/telemetry_viewer/telemetry_viewer.png +0 -0
  575. data/tools/staticdocs/lunr-index-1702922896263.json +0 -1
  576. data/tools/staticdocs/search-doc-1702922896263.json +0 -1
  577. /data/tools/staticdocs/assets/js/{4657.9492019f.js.LICENSE.txt → 4657.780d60d2.js.LICENSE.txt} +0 -0
  578. /data/tools/staticdocs/assets/js/{main.1b3209ca.js.LICENSE.txt → main.f5f96e22.js.LICENSE.txt} +0 -0
  579. /data/tools/staticdocs/img/{v5/architecture.png → architecture.png} +0 -0
  580. /data/tools/staticdocs/img/{v5/calendar → calendar}/timeline_lifecycle.png +0 -0
  581. /data/tools/staticdocs/img/{v5/command_sender → command_sender}/inst_collect_hazardous_history.png +0 -0
  582. /data/tools/staticdocs/img/{v5/contact → contact}/jason.png +0 -0
  583. /data/tools/staticdocs/img/{v5/contact → contact}/ryan.jpeg +0 -0
  584. /data/tools/staticdocs/img/{v5/script_runner → script_runner}/file_save_as.png +0 -0
  585. /data/tools/staticdocs/img/{v5/telemetry_grapher → telemetry_grapher}/grapher_controls.png +0 -0
  586. /data/tools/staticdocs/img/{v5/telemetry_grapher → telemetry_grapher}/stop_start.png +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkdocs_openc3_com=self.webpackChunkdocs_openc3_com||[]).push([[3940],{888:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>o,frontMatter:()=>a,metadata:()=>l,toc:()=>c});var r=n(2322),s=n(5392);const a={title:"Scripting API Guide"},i=void 0,l={id:"guides/scripting-api",title:"Scripting API Guide",description:"This document provides the information necessary to write test procedures using the COSMOS scripting API. Scripting in COSMOS is designed to be simple and intuitive. The code completion ability for command and telemetry mnemonics makes Script Runner the ideal place to write your procedures, however any text editor will do. If there is functionality that you don't see here or perhaps an easier syntax for doing something, please submit a ticket.",source:"@site/docs/guides/scripting-api.md",sourceDirName:"guides",slug:"/guides/scripting-api",permalink:"/tools/staticdocs/docs/guides/scripting-api",draft:!1,unlisted:!1,editUrl:"https://github.com/OpenC3/cosmos/tree/main/docs.openc3.com/docs/guides/scripting-api.md",tags:[],version:"current",frontMatter:{title:"Scripting API Guide"},sidebar:"defaultSidebar",previous:{title:"Script Writing Guide",permalink:"/tools/staticdocs/docs/guides/script-writing"},next:{title:"Development",permalink:"/tools/staticdocs/docs/development"}},d={},c=[{value:"Concepts",id:"concepts",level:2},{value:"Programming Languages",id:"programming-languages",level:3},{value:"Using Script Runner",id:"using-script-runner",level:3},{value:"Telemetry Types",id:"telemetry-types",level:3},{value:"Script Runner API",id:"script-runner-api",level:2},{value:"Migration from COSMOS v4",id:"migration-from-cosmos-v4",level:3},{value:"Retrieving User Input",id:"retrieving-user-input",level:2},{value:"ask",id:"ask",level:3},{value:"ask_string",id:"ask_string",level:3},{value:"message_box",id:"message_box",level:3},{value:"vertical_message_box",id:"vertical_message_box",level:3},{value:"combo_box",id:"combo_box",level:3},{value:"get_target_file",id:"get_target_file",level:3},{value:"put_target_file",id:"put_target_file",level:3},{value:"delete_target_file",id:"delete_target_file",level:3},{value:"open_file_dialog",id:"open_file_dialog",level:3},{value:"open_files_dialog",id:"open_files_dialog",level:3},{value:"Providing information to the user",id:"providing-information-to-the-user",level:2},{value:"prompt",id:"prompt",level:3},{value:"Commands",id:"commands",level:2},{value:"cmd",id:"cmd",level:3},{value:"cmd_no_range_check",id:"cmd_no_range_check",level:3},{value:"cmd_no_hazardous_check",id:"cmd_no_hazardous_check",level:3},{value:"cmd_no_checks",id:"cmd_no_checks",level:3},{value:"cmd_raw",id:"cmd_raw",level:3},{value:"cmd_raw_no_range_check",id:"cmd_raw_no_range_check",level:3},{value:"cmd_raw_no_hazardous_check",id:"cmd_raw_no_hazardous_check",level:3},{value:"cmd_raw_no_checks",id:"cmd_raw_no_checks",level:3},{value:"build_cmd (since 5.13.0, since 5.8.0 as build_command)",id:"build_cmd-since-5130-since-580-as-build_command",level:3},{value:"send_raw",id:"send_raw",level:3},{value:"get_all_cmds (since 5.13.0, since 5.0.0 as get_all_commands)",id:"get_all_cmds-since-5130-since-500-as-get_all_commands",level:3},{value:"get_all_cmd_names (since 5.13.0, since 5.0.6 as get_all_command_names)",id:"get_all_cmd_names-since-5130-since-506-as-get_all_command_names",level:3},{value:"get_cmd (since 5.13.0, since 5.0.0 as get_command)",id:"get_cmd-since-5130-since-500-as-get_command",level:3},{value:"get_param (since 5.13.0, since 5.0.0 as get_parameter)",id:"get_param-since-5130-since-500-as-get_parameter",level:3},{value:"get_cmd_buffer",id:"get_cmd_buffer",level:3},{value:"get_cmd_hazardous",id:"get_cmd_hazardous",level:3},{value:"get_cmd_value",id:"get_cmd_value",level:3},{value:"get_cmd_time",id:"get_cmd_time",level:3},{value:"get_cmd_cnt",id:"get_cmd_cnt",level:3},{value:"Handling Telemetry",id:"handling-telemetry",level:2},{value:"check, check_raw, check_formatted, check_with_units",id:"check-check_raw-check_formatted-check_with_units",level:3},{value:"check_tolerance",id:"check_tolerance",level:3},{value:"check_expression",id:"check_expression",level:3},{value:"check_exception",id:"check_exception",level:3},{value:"tlm, tlm_raw, tlm_formatted, tlm_with_units",id:"tlm-tlm_raw-tlm_formatted-tlm_with_units",level:3},{value:"get_tlm_buffer",id:"get_tlm_buffer",level:3},{value:"get_tlm_packet",id:"get_tlm_packet",level:3},{value:"get_tlm_values (modified in 5.0.0)",id:"get_tlm_values-modified-in-500",level:3},{value:"get_all_tlm (since 5.13.0, since 5.0.0 as get_all_telemetry)",id:"get_all_tlm-since-5130-since-500-as-get_all_telemetry",level:3},{value:"get_all_tlm_names (since 5.13.0, since 5.0.6 as get_all_telemetry_names)",id:"get_all_tlm_names-since-5130-since-506-as-get_all_telemetry_names",level:3},{value:"get_tlm (since 5.13.0, since 5.0.0 as get_telemetry)",id:"get_tlm-since-5130-since-500-as-get_telemetry",level:3},{value:"get_item (since 5.0.0)",id:"get_item-since-500",level:3},{value:"get_tlm_cnt",id:"get_tlm_cnt",level:3},{value:"set_tlm",id:"set_tlm",level:3},{value:"inject_tlm",id:"inject_tlm",level:3},{value:"override_tlm",id:"override_tlm",level:3},{value:"normalize_tlm",id:"normalize_tlm",level:3},{value:"get_overrides",id:"get_overrides",level:3},{value:"Packet Data Subscriptions",id:"packet-data-subscriptions",level:2},{value:"subscribe_packets (since 5.0.3)",id:"subscribe_packets-since-503",level:3},{value:"get_packets (since 5.0.3)",id:"get_packets-since-503",level:3},{value:"get_tlm_cnt",id:"get_tlm_cnt-1",level:3},{value:"get_tlm_cnts",id:"get_tlm_cnts",level:3},{value:"get_packet_derived_items",id:"get_packet_derived_items",level:3},{value:"Delays",id:"delays",level:2},{value:"wait",id:"wait",level:3},{value:"wait_tolerance",id:"wait_tolerance",level:3},{value:"wait_expression",id:"wait_expression",level:3},{value:"wait_packet",id:"wait_packet",level:3},{value:"wait_check",id:"wait_check",level:3},{value:"wait_check_tolerance",id:"wait_check_tolerance",level:3},{value:"wait_check_expression",id:"wait_check_expression",level:3},{value:"wait_check_packet",id:"wait_check_packet",level:3},{value:"Limits",id:"limits",level:2},{value:"limits_enabled?, limits_enabled",id:"limits_enabled-limits_enabled",level:3},{value:"enable_limits",id:"enable_limits",level:3},{value:"disable_limits",id:"disable_limits",level:3},{value:"enable_limits_group",id:"enable_limits_group",level:3},{value:"disable_limits_group",id:"disable_limits_group",level:3},{value:"get_limits_groups",id:"get_limits_groups",level:3},{value:"set_limits_set",id:"set_limits_set",level:3},{value:"get_limits_set",id:"get_limits_set",level:3},{value:"get_limits_sets",id:"get_limits_sets",level:3},{value:"get_limits",id:"get_limits",level:3},{value:"set_limits",id:"set_limits",level:3},{value:"get_out_of_limits",id:"get_out_of_limits",level:3},{value:"get_overall_limits_state",id:"get_overall_limits_state",level:3},{value:"get_limits_events",id:"get_limits_events",level:3},{value:"Targets",id:"targets",level:2},{value:"get_target_names",id:"get_target_names",level:3},{value:"get_target",id:"get_target",level:3},{value:"get_target_interfaces",id:"get_target_interfaces",level:3},{value:"Interfaces",id:"interfaces",level:2},{value:"get_interface (since 5.0.0)",id:"get_interface-since-500",level:3},{value:"get_interface_names",id:"get_interface_names",level:3},{value:"connect_interface",id:"connect_interface",level:3},{value:"disconnect_interface",id:"disconnect_interface",level:3},{value:"start_raw_logging_interface",id:"start_raw_logging_interface",level:3},{value:"stop_raw_logging_interface",id:"stop_raw_logging_interface",level:3},{value:"get_all_interface_info",id:"get_all_interface_info",level:3},{value:"map_target_to_interface",id:"map_target_to_interface",level:3},{value:"interface_cmd",id:"interface_cmd",level:3},{value:"interface_protocol_cmd",id:"interface_protocol_cmd",level:3},{value:"Routers",id:"routers",level:2},{value:"connect_router",id:"connect_router",level:3},{value:"disconnect_router",id:"disconnect_router",level:3},{value:"get_router_names",id:"get_router_names",level:3},{value:"get_router (since 5.0.0)",id:"get_router-since-500",level:3},{value:"get_all_router_info",id:"get_all_router_info",level:3},{value:"start_raw_logging_router",id:"start_raw_logging_router",level:3},{value:"stop_raw_logging_router",id:"stop_raw_logging_router",level:3},{value:"router_cmd",id:"router_cmd",level:3},{value:"router_protocol_cmd",id:"router_protocol_cmd",level:3},{value:"Stashing Data",id:"stashing-data",level:2},{value:"stash_set",id:"stash_set",level:3},{value:"stash_get",id:"stash_get",level:3},{value:"stash_all",id:"stash_all",level:3},{value:"stash_keys",id:"stash_keys",level:3},{value:"stash_delete",id:"stash_delete",level:3},{value:"Executing Other Procedures",id:"executing-other-procedures",level:2},{value:"start",id:"start",level:3},{value:"load_utility",id:"load_utility",level:3},{value:"Opening, Closing &amp; Creating Telemetry Screens",id:"opening-closing--creating-telemetry-screens",level:2},{value:"display_screen",id:"display_screen",level:3},{value:"clear_screen",id:"clear_screen",level:3},{value:"clear_all_screens",id:"clear_all_screens",level:3},{value:"delete_screen",id:"delete_screen",level:3},{value:"get_screen_list",id:"get_screen_list",level:3},{value:"get_screen_definition",id:"get_screen_definition",level:3},{value:"create_screen",id:"create_screen",level:3},{value:"local_screen",id:"local_screen",level:3},{value:"Script Runner Settings",id:"script-runner-settings",level:2},{value:"set_line_delay",id:"set_line_delay",level:3},{value:"get_line_delay",id:"get_line_delay",level:3},{value:"set_max_output",id:"set_max_output",level:3},{value:"get_max_output",id:"get_max_output",level:3},{value:"disable_instrumentation",id:"disable_instrumentation",level:3},{value:"Script Runner Suites",id:"script-runner-suites",level:2},{value:"add_group, add_group_setup, add_group_teardown, add_script",id:"add_group-add_group_setup-add_group_teardown-add_script",level:3},{value:"Script Runner Debugging",id:"script-runner-debugging",level:2},{value:"step_mode",id:"step_mode",level:3},{value:"run_mode",id:"run_mode",level:3},{value:"disconnect_script",id:"disconnect_script",level:3},{value:"Metadata",id:"metadata",level:2},{value:"metadata_all",id:"metadata_all",level:3},{value:"metadata_get",id:"metadata_get",level:3},{value:"metadata_set",id:"metadata_set",level:3},{value:"metadata_update",id:"metadata_update",level:3},{value:"metadata_input",id:"metadata_input",level:3},{value:"Settings",id:"settings",level:2},{value:"list_settings",id:"list_settings",level:3},{value:"get_all_settings",id:"get_all_settings",level:3},{value:"get_setting, get_settings",id:"get_setting-get_settings",level:3},{value:"set_setting",id:"set_setting",level:3},{value:"Configuration",id:"configuration",level:2},{value:"config_tool_names",id:"config_tool_names",level:3},{value:"list_configs",id:"list_configs",level:3},{value:"load_config",id:"load_config",level:3},{value:"save_config",id:"save_config",level:3},{value:"delete_config",id:"delete_config",level:3}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.p,{children:"This document provides the information necessary to write test procedures using the COSMOS scripting API. Scripting in COSMOS is designed to be simple and intuitive. The code completion ability for command and telemetry mnemonics makes Script Runner the ideal place to write your procedures, however any text editor will do. If there is functionality that you don't see here or perhaps an easier syntax for doing something, please submit a ticket."}),"\n",(0,r.jsx)(t.h2,{id:"concepts",children:"Concepts"}),"\n",(0,r.jsx)(t.h3,{id:"programming-languages",children:"Programming Languages"}),"\n",(0,r.jsxs)(t.p,{children:["COSMOS scripting is implemented using either Ruby or Python. Ruby and Python are very similar scripting languages and in many cases the COSMOS APIs are identical between the two. This guide is written to support both with additional language specific information found in the ",(0,r.jsx)(t.a,{href:"/tools/staticdocs/docs/guides/script-writing",children:"Script Writing Guide"}),"."]}),"\n",(0,r.jsx)(t.h3,{id:"using-script-runner",children:"Using Script Runner"}),"\n",(0,r.jsx)(t.p,{children:"Script Runner is a graphical application that provides the ideal environment for running and implementing your test procedures. The Script Runner tool is broken into 4 main sections. At the top of the tool is a menu bar that allows you to do such things as open and save files, perform a syntax check, and execute your script."}),"\n",(0,r.jsx)(t.p,{children:'Next is a tool bar that displays the currently executing script and three buttons, "Start/Go", "Pause/Retry", and "Stop". The Start/Go button is used to start the script and continue past errors or waits. The Pause/Retry button will pause the executing script. If an error is encountered the Pause button changes to Retry to re-execute the errored line. Finally, the Stop button will stop the executing script at any time.'}),"\n",(0,r.jsx)(t.p,{children:"Third is the display of the actual script. While the script is not running, you may edit and compose scripts in this area. A handy code completion feature is provided that will list out the available commands or telemetry points as you are writing your script. Simply begin writing a cmd( or tlm( line to bring up code completion. This feature greatly reduces typos in command and telemetry mnemonics."}),"\n",(0,r.jsx)(t.p,{children:"Finally, the bottom of the display is the log messages. All commands that are sent, errors that occur, and user print statements appear in this area."}),"\n",(0,r.jsx)(t.h3,{id:"telemetry-types",children:"Telemetry Types"}),"\n",(0,r.jsx)(t.p,{children:"There are four different ways that telemetry values can be retrieved in COSMOS. The following chart explains their differences."}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Telemetry Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Raw"}),(0,r.jsx)(t.td,{children:"Raw telemetry is exactly as it is in the telemetry packet before any conversions. All telemetry items will have a raw value except for Derived telemetry points which have no real location in a packet. Requesting raw telemetry on a derived item will return nil."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Converted"}),(0,r.jsx)(t.td,{children:"Converted telemetry is raw telemetry that has gone through a conversion factor such as a state conversion or a polynomial conversion. If a telemetry item does not have a conversion defined, then converted telemetry will be the same as raw telemetry. This is the most common type of telemety used in scripts."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Formatted"}),(0,r.jsx)(t.td,{children:"Formatted telemetry is converted telemetry that has gone through a printf style conversion into a string. Formatted telemetry will always have a string representation. If no format string is defined for a telemetry point, then formatted telemetry will be the same as converted telemetry except represented as string."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Formatted with Units"}),(0,r.jsx)(t.td,{children:"Formatted with Units telemetry is the same as Formatted telemetry except that a space and the units of the telemetry item are appended to the end of the string. If no units are defined for a telemetry item then this type is the same as Formatted telemetry."})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-api",children:"Script Runner API"}),"\n",(0,r.jsx)(t.p,{children:"The following methods are designed to be used in Script Runner procedures. Many can also be used in custom built COSMOS tools. Please see the COSMOS Tool API section for methods that are more efficient to use in custom tools."}),"\n",(0,r.jsx)(t.h3,{id:"migration-from-cosmos-v4",children:"Migration from COSMOS v4"}),"\n",(0,r.jsx)(t.p,{children:"The following API methods are either deprecated (will not be ported to COSMOS 5) or currently unimplemented (eventually will be ported to COSMOS 5):"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Method"}),(0,r.jsx)(t.th,{children:"Tool"}),(0,r.jsx)(t.th,{children:"Status"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear_all"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_all_screens"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"close_local_screens"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_tlm_clear_counters"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_tlm_reload"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"display"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use display_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_packet_logger_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_target_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target_interfaces"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_background_tasks"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_cmd_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_cmds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_tlm_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_cmds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_param_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_cmd"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_tlm_disconnect"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use $disconnect"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_interface_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_interface_targets"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_output_logs_filenames"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_logger_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_loggers"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_replay_mode"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_router_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_scriptrunner_message_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_message"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_message_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_status"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_stale"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_ignored_items"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_ignored_parameters"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target_names"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_details"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_item_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"interface_state"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"override_tlm_raw"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use override_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"open_directory_dialog"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_end"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_index"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_start"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_play"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_reverse_play"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_select_file"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_set_playback_delay"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_status"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_step_back"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_step_forward"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_stop"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"require_utility"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated but exists for backwards compatibility, use load_utility"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"router_state"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"save_file_dialog"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"save_setting"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated but exists for backwards compatibility, use set_setting"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_cmd_tlm_disconnect"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use disconnect_script"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_replay_mode"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_stdout_max_lines"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_tlm_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use set_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"show_backtrace"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, backtrace always shown"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"shutdown_cmd_tlm"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_cmd_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_logging"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_new_scriptrunner_message_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_new_server_message_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_tlm_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_background_task"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_cmd_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_logging"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_tlm_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_limits_events"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use subscribe_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_server_messages"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"tlm_variable"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use tlm() and pass type"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_limits_events"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_server_messages"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_check_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_check(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_tolerance_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_tolerance(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_check_tolerance_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_check_tolerance(..., type: ",":RAW",")"]})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"retrieving-user-input",children:"Retrieving User Input"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to enter values that are needed by the script."}),"\n",(0,r.jsx)(t.h3,{id:"ask",children:"ask"}),"\n",(0,r.jsx)(t.p,{children:'Prompts the user for input with a question. User input is automatically converted from a string to the appropriate data type. For example if the user enters "1", the number 1 as an integer will be returned.'}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'ask("<question>", <blank_or_default>, <password>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"question"}),(0,r.jsx)(t.td,{children:"Question to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"blank_or_default"}),(0,r.jsx)(t.td,{children:"Whether or not to allow empty responses (optional - defaults to false). If a non-boolean value is passed it is used as a default value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"password"}),(0,r.jsx)(t.td,{children:"Whether to treat the entry as a password which is displayed with dots and not logged. Default is false."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = ask("Enter an integer")\nvalue = ask("Enter a value or nothing", true)\nvalue = ask("Enter a value", 10)\npassword = ask("Enter your password", false, true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = ask("Enter an integer")\nvalue = ask("Enter a value or nothing", True)\nvalue = ask("Enter a value", 10)\npassword = ask("Enter your password", False, True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"ask_string",children:"ask_string"}),"\n",(0,r.jsx)(t.p,{children:'Prompts the user for input with a question. User input is always returned as a string. For exampe if the user enters "1", the string "1" will be returned.'}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'ask_string("<question>", <blank_or_default>, <password>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"question"}),(0,r.jsx)(t.td,{children:"Question to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"blank_or_default"}),(0,r.jsx)(t.td,{children:"Whether or not to allow empty responses (optional - defaults to false). If a non-boolean value is passed it is used as a default value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"password"}),(0,r.jsx)(t.td,{children:"Whether to treat the entry as a password which is displayed with dots and not logged. Default is false."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'string = ask_string("Enter a String")\nstring = ask_string("Enter a value or nothing", true)\nstring = ask_string("Enter a value", "test")\npassword = ask_string("Enter your password", false, true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'string = ask_string("Enter a String")\nstring = ask_string("Enter a value or nothing", True)\nstring = ask_string("Enter a value", "test")\npassword = ask_string("Enter your password", False, True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"message_box",children:"message_box"}),"\n",(0,r.jsx)(t.h3,{id:"vertical_message_box",children:"vertical_message_box"}),"\n",(0,r.jsx)(t.h3,{id:"combo_box",children:"combo_box"}),"\n",(0,r.jsx)(t.p,{children:"The message_box, vertical_message_box, and combo_box methods create a message box with arbitrary buttons or selections that the user can click. The text of the button clicked is returned."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'message_box("<message>", "<button text 1>", ...)\nvertical_message_box("<message>", "<button text 1>", ...)\ncombo_box("<message>", "<selection text 1>", ...)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"message"}),(0,r.jsx)(t.td,{children:"Message to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"button/selection text"}),(0,r.jsx)(t.td,{children:"Text for a button or selection"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"value = message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = vertical_message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = combo_box(\"Select the sensor number\", 'One', 'Two')\ncase value\nwhen 'One'\n puts 'Sensor One'\nwhen 'Two'\n puts 'Sensor Two'\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"value = message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = vertical_message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = combo_box(\"Select the sensor number\", 'One', 'Two')\nmatch value:\n case 'One':\n print('Sensor One')\n case 'Two':\n print('Sensor Two')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_target_file",children:"get_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Return a file handle to a file in the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target_file("<File Path>", original: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target_file("<File Path>", original=False)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"original"}),(0,r.jsx)(t.td,{children:"Whether to get the original file from the plug-in, or any modifications to the file. Default is false which means to grab the modified file. If the modified file does not exist the API will automatically try to pull the original."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'file = get_target_file("INST/data/attitude.bin")\nputs file.read().formatted # format a binary file\nfile.unlink # delete file\nfile = get_target_file("INST/procedures/checks.rb", original: true)\nputs file.read()\nfile.unlink # delete file\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'from openc3.utilities.string import formatted\n\nfile = get_target_file("INST/data/attitude.bin")\nprint(formatted(file.read())) # format a binary file\nfile.close() # delete file\nfile = get_target_file("INST/procedures/checks.rb", original=True)\nprint(file.read())\nfile.close() # delete file\n'})}),"\n",(0,r.jsx)(t.h3,{id:"put_target_file",children:"put_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Writes a file to the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby or Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("<File Path>", "IO or String")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb. The file can previously exist or not. Note: The original file from the plug-in will not be modified, however existing modified files will be overwritten."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"data"}),(0,r.jsx)(t.td,{children:"The data can be an IO object or String"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("INST/test1.txt", "this is a string test")\nfile = Tempfile.new(\'test\')\nfile.write("this is a Io test")\nfile.rewind\nput_target_file("INST/test2.txt", file)\nput_target_file("INST/test3.bin", "\\x00\\x01\\x02\\x03\\xFF\\xEE\\xDD\\xCC") # binary\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'put_target_file("INST/test1.txt", "this is a string test")\nfile = tempfile.NamedTemporaryFile(mode="w+t")\nfile.write("this is a Io test")\nfile.seek(0)\nput_target_file("INST/test2.txt", file)\nput_target_file("INST/test3.bin", b"\\x00\\x01\\x02\\x03\\xFF\\xEE\\xDD\\xCC") # binary\n'})}),"\n",(0,r.jsx)(t.h3,{id:"delete_target_file",children:"delete_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Delete a file in the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_target_file("<File Path>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb. Note: Only files created with put_target_file can be deleted. Original files from the plugin installation will remain."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("INST/delete_me.txt", "to be deleted")\ndelete_target_file("INST/delete_me.txt")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"open_file_dialog",children:"open_file_dialog"}),"\n",(0,r.jsx)(t.h3,{id:"open_files_dialog",children:"open_files_dialog"}),"\n",(0,r.jsx)(t.p,{children:"The open_file_dialog and open_files_dialog methods create a file dialog box so the user can select a single or multiple files. The selected file(s) is returned."}),"\n",(0,r.jsx)(t.p,{children:"Note: COSMOS 5 has deprecated the save_file_dialog and open_directory_dialog methods. save_file_dialog can be replaced by put_target_file if you want to write a file back to the target. open_directory_dialog doesn't make sense in new architecture so you must request individual files."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'open_file_dialog("<title>", "<message>", filter: "<filter>")\nopen_files_dialog("<title>", "<message>", filter: "<filter>")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'open_file_dialog("<title>", "<message>", filter="<filter>")\nopen_files_dialog("<title>", "<message>", filter="<filter>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Title"}),(0,r.jsx)(t.td,{children:"The title to put on the dialog. Required."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Message"}),(0,r.jsx)(t.td,{children:"The message to display in the dialog box. Optional parameter."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"filter"}),(0,r.jsxs)(t.td,{children:['Named parameter to filter allowed file types. Optional parameter, specified as comma delimited file types, e.g. ".txt,.doc". See ',(0,r.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept",children:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"})," for more information."]})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'file = open_file_dialog("Open a single file", "Choose something interesting", filter: ".txt")\nputs file # Ruby File object\nputs file.read\nfile.delete\n\nfiles = open_files_dialog("Open multiple files") # message is optional\nputs files # Array of File objects (even if you select only one)\nfiles.each do |file|\n puts file\n puts file.read\n file.delete\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'file = open_file_dialog("Open a single file", "Choose something interesting", filter=".txt")\nprint(file)\nprint(file.read())\nfile.close()\n\nfiles = open_files_dialog("Open multiple files") # message is optional\nprint(files) # Array of File objects (even if you select only one)\nfor file in files:\n print(file)\n print(file.read())\n file.close()\n'})}),"\n",(0,r.jsx)(t.h2,{id:"providing-information-to-the-user",children:"Providing information to the user"}),"\n",(0,r.jsx)(t.p,{children:"These methods notify the user that something has occurred."}),"\n",(0,r.jsx)(t.h3,{id:"prompt",children:"prompt"}),"\n",(0,r.jsx)(t.p,{children:"Displays a message to the user and waits for them to press an ok button."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'prompt("<message>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"message"}),(0,r.jsx)(t.td,{children:"Message to prompt the user with."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'prompt("Press OK to continue")\n'})}),"\n",(0,r.jsx)(t.h2,{id:"commands",children:"Commands"}),"\n",(0,r.jsx)(t.p,{children:"These methods provide capability to send commands to a target and receive information about commands in the system."}),"\n",(0,r.jsx)(t.h3,{id:"cmd",children:"cmd"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\n# In Ruby the brackets around parameters are optional\ncmd("INST", "COLLECT", "DURATION" => 10, "TYPE" => "NORMAL")\ncmd("INST", "COLLECT", { "DURATION" => 10, "TYPE" => "NORMAL" })\ncmd("INST ABORT", timeout: 10, log_message: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\ncmd("INST", "COLLECT", { "DURATION": 10, "TYPE": "NORMAL" })\ncmd("INST ABORT", timeout=10, log_message=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_range_check",children:"cmd_no_range_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing range checking on its parameters. This should only be used when it is necessary to intentionally send a bad command parameter to test a target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_range_check("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_range_check("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_range_check("INST COLLECT with DURATION 11, TYPE NORMAL")\ncmd_no_range_check("INST", "COLLECT", "DURATION" => 11, "TYPE" => "NORMAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_range_check("INST COLLECT with DURATION 11, TYPE NORMAL")\ncmd_no_range_check("INST", "COLLECT", {"DURATION": 11, "TYPE": "NORMAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_hazardous_check",children:"cmd_no_hazardous_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing the notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_hazardous_check("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_hazardous_check("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_hazardous_check("INST CLEAR")\ncmd_no_hazardous_check("INST", "CLEAR")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_checks",children:"cmd_no_checks"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing the parameter range checks or notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands that intentially have invalid parameters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_checks("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_checks("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_checks("INST COLLECT with DURATION 11, TYPE SPECIAL")\ncmd_no_checks("INST", "COLLECT", "DURATION" => 11, "TYPE" => "SPECIAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_checks("INST COLLECT with DURATION 11, TYPE SPECIAL")\ncmd_no_checks("INST", "COLLECT", {"DURATION": 11, "TYPE": "SPECIAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw",children:"cmd_raw"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw("INST COLLECT with DURATION 10, TYPE 0")\ncmd_raw("INST", "COLLECT", "DURATION" => 10, "TYPE" => 0)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw("INST COLLECT with DURATION 10, TYPE 0")\ncmd_raw("INST", "COLLECT", {"DURATION": 10, "TYPE": 0})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_range_check",children:"cmd_raw_no_range_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing range checking on its parameters. This should only be used when it is necessary to intentionally send a bad command parameter to test a target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_range_check("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_range_check("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_range_check("INST COLLECT with DURATION 11, TYPE 0")\ncmd_raw_no_range_check("INST", "COLLECT", "DURATION" => 11, "TYPE" => 0)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_range_check("INST COLLECT with DURATION 11, TYPE 0")\ncmd_raw_no_range_check("INST", "COLLECT", {"DURATION": 11, "TYPE": 0})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_hazardous_check",children:"cmd_raw_no_hazardous_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing the notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_hazardous_check("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_hazardous_check("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_hazardous_check("INST CLEAR")\ncmd_raw_no_hazardous_check("INST", "CLEAR")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_checks",children:"cmd_raw_no_checks"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing the parameter range checks or notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands that intentially have invalid parameters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_checks("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_checks("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_checks("INST COLLECT with DURATION 11, TYPE 1")\ncmd_raw_no_checks("INST", "COLLECT", "DURATION" => 11, "TYPE" => 1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_checks("INST COLLECT with DURATION 11, TYPE 1")\ncmd_raw_no_checks("INST", "COLLECT", {"DURATION": 11, "TYPE": 1})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"build_cmd-since-5130-since-580-as-build_command",children:"build_cmd (since 5.13.0, since 5.8.0 as build_command)"}),"\n",(0,r.jsx)(t.p,{children:"Builds a command binary string"}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"build_cmd(<ARGS>, range_check: true, raw: false)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"build_cmd(<ARGS>, range_check=True, raw=False)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"ARGS"}),(0,r.jsx)(t.td,{children:"Command parameters (see cmd)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"range_check"}),(0,r.jsx)(t.td,{children:"Whether to perform range checking on the command. Default is true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"raw"}),(0,r.jsx)(t.td,{children:"Whether to write the command arguments as RAW or CONVERTED value. Default is CONVERTED."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'x = build_cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\nputs x #=> {"id"=>"1696437370872-0", "result"=>"SUCCESS", "time"=>"1696437370872305961", "received_time"=>"1696437370872305961", "target_name"=>"INST", "packet_name"=>"COLLECT", "received_count"=>"3", "buffer"=>"\\x13\\xE7\\xC0\\x00\\x00\\f\\x00\\x01\\x00\\x00A \\x00\\x00\\xAB\\x00\\x00\\x00\\x00"}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"x = build_cmd(\"INST COLLECT with DURATION 10, TYPE NORMAL\")\nprint(x) #=> {'id': '1697298167748-0', 'result': 'SUCCESS', 'time': '1697298167749155717', 'received_time': '1697298167749155717', 'target_name': 'INST', 'packet_name': 'COLLECT', 'received_count': '2', 'buffer': bytearray(b'\\x13\\xe7\\xc0\\x00\\x00\\x0c\\x00\\x01\\x00\\x00A \\x00\\x00\\xab\\x00\\x00\\x00\\x00')}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"send_raw",children:"send_raw"}),"\n",(0,r.jsx)(t.p,{children:"Sends raw data on an interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"send_raw(<Interface Name>, <Data>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface to send the raw data on."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Data"}),(0,r.jsx)(t.td,{children:"Raw ruby string of data to send."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'send_raw("INST_INT", data)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_cmds-since-5130-since-500-as-get_all_commands",children:"get_all_cmds (since 5.13.0, since 5.0.0 as get_all_commands)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the commands that are available for a particular target. The returned array is an array of hashes which fully describe the command packet."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_cmds("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_list = get_all_cmds("INST")\nputs cmd_list #=>\n# [{"target_name"=>"INST",\n# "packet_name"=>"ABORT",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Aborts a collect on the instrument",\n# "items"=> [{"name"=>"CCSDSVER", "bit_offset"=>0, "bit_size"=>3, ... }]\n# ...\n# }]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"cmd_list = get_all_cmds(\"INST\")\nprint(cmd_list) #=>\n# [{'target_name': 'INST',\n# 'packet_name': 'ABORT',\n# 'endianness': 'BIG_ENDIAN',\n# 'description': 'Aborts a collect on the INST instrument',\n# 'items': [{'name': 'CCSDSVER', 'bit_offset': 0, 'bit_size': 3, ... }]\n# ...\n# }]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_cmd_names-since-5130-since-506-as-get_all_command_names",children:"get_all_cmd_names (since 5.13.0, since 5.0.6 as get_all_command_names)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the command names for a particular target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_cmd_names("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"cmd_list = get_all_cmd_names(\"INST\")\nputs cmd_list #=> ['ABORT', 'ARYCMD', 'ASCIICMD', ...]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"cmd_list = get_all_cmd_names(\"INST\")\nprint(cmd_list) #=> ['ABORT', 'ARYCMD', 'ASCIICMD', ...]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd-since-5130-since-500-as-get_command",children:"get_cmd (since 5.13.0, since 5.0.0 as get_command)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a command hash which fully describes the command packet."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd("<Target Name> <Packet Name>")\nget_cmd("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'abort_cmd = get_cmd("INST ABORT")\nputs abort_cmd #=>\n# [{"target_name"=>"INST",\n# "packet_name"=>"ABORT",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Aborts a collect on the instrument",\n# "items"=> [{"name"=>"CCSDSVER", "bit_offset"=>0, "bit_size"=>3, ... }]\n# ...\n# }]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"abort_cmd = get_cmd(\"INST ABORT\")\nprint(abort_cmd) #=>\n# [{'target_name': 'INST',\n# 'packet_name': 'ABORT',\n# 'endianness': 'BIG_ENDIAN',\n# 'description': 'Aborts a collect on the INST instrument',\n# 'items': [{'name': 'CCSDSVER', 'bit_offset': 0, 'bit_size': 3, ... }]\n# ...\n# }]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_param-since-5130-since-500-as-get_parameter",children:"get_param (since 5.13.0, since 5.0.0 as get_parameter)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a hash of the given command parameter"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_param("<Target Name> <Command Name> <Parameter Name>")\nget_param("<Target Name>", "<Command Name>", "<Parameter Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Parameter Name"}),(0,r.jsx)(t.td,{children:"Name of the parameter."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'param = get_param("INST COLLECT TYPE")\nputs param #=>\n# {"name"=>"TYPE", "bit_offset"=>64, "bit_size"=>16, "data_type"=>"UINT",\n# "description"=>"Collect type which can be normal or special", "default"=>0,\n# "minimum"=>0, "maximum"=>65535, "endianness"=>"BIG_ENDIAN", "required"=>true, "overflow"=>"ERROR",\n# "states"=>{"NORMAL"=>{"value"=>0}, "SPECIAL"=>{"value"=>1, "hazardous"=>""}}, "limits"=>{}}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"param = get_param(\"INST COLLECT TYPE\")\nprint(param) #=>\n# {'name': 'TYPE', 'bit_offset': 64, 'bit_size': 16, 'data_type': 'UINT',\n# 'description': 'Collect type which can be normal or special', 'default': 0,\n# 'minimum': 0, 'maximum': 65535, 'endianness': 'BIG_ENDIAN', 'required': True, 'overflow': 'ERROR',\n# 'states': {'NORMAL': {'value': 0}, 'SPECIAL': {'value': 1, 'hazardous': ''}}, 'limits': {}}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_buffer",children:"get_cmd_buffer"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash (similar to get_cmd) along with the raw packet buffer as a Ruby string."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'buffer = get_cmd_buffer("<Target Name> <Packet Name>")[\'buffer\']\nbuffer = get_cmd_buffer("<Target Name>", "<Packet Name>")[\'buffer\']\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packet = get_cmd_buffer("INST COLLECT")\nputs packet #=>\n# {"time"=>"1697298846752053420", "received_time"=>"1697298846752053420",\n# "target_name"=>"INST", "packet_name"=>"COLLECT", "received_count"=>"20", "stored"=>"false",\n# "buffer"=>"\\x13\\xE7\\xC0\\x00\\x00\\f\\x00\\x01\\x00\\x00@\\xE0\\x00\\x00\\xAB\\x00\\x00\\x00\\x00"}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"packet = get_cmd_buffer(\"INST COLLECT\")\nprint(packet) #=>\n# {'time': '1697298923745982470', 'received_time': '1697298923745982470',\n# 'target_name': 'INST', 'packet_name': 'COLLECT', 'received_count': '21', 'stored': 'false',\n# 'buffer': bytearray(b'\\x13\\xe7\\xc0\\x00\\x00\\x0c\\x00\\x01\\x00\\x00@\\xe0\\x00\\x00\\xab\\x00\\x00\\x00\\x00')}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_hazardous",children:"get_cmd_hazardous"}),"\n",(0,r.jsx)(t.p,{children:"Returns true/false indicating whether a particular command is flagged as hazardous."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_hazardous("<Target Name>", "<Command Name>", <Command Params - optional>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Params"}),(0,r.jsx)(t.td,{children:"Hash of the parameters given to the command (optional). Note that some commands are only hazardous based on parameter states."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"hazardous = get_cmd_hazardous(\"INST\", \"COLLECT\", {'TYPE' => 'SPECIAL'})\nputs hazardous #=> true\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"hazardous = get_cmd_hazardous(\"INST\", \"COLLECT\", {'TYPE': 'SPECIAL'})\nprint(hazardous) #=> True\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_value",children:"get_cmd_value"}),"\n",(0,r.jsx)(t.p,{children:"Returns reads a value from the most recently sent command packet. The pseudo-parameters 'PACKET_TIMESECONDS', 'PACKET_TIMEFORMATTED', 'RECEIVED_COUNT', 'RECEIVED_TIMEFORMATTED', and 'RECEIVED_TIMESECONDS' are also supported."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_value("<Target Name>", "<Command Name>", "<Parameter Name>", <Value Type - optional>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Parameter Name"}),(0,r.jsx)(t.td,{children:"Name of the command parameter."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value Type"}),(0,r.jsx)(t.td,{children:"Value Type to read. RAW, CONVERTED, FORMATTED, or WITH_UNITS. NOTE: Symbol in Ruby and str in Python"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = get_cmd_value("INST", "COLLECT", "TEMP", :RAW)\nputs value #=> 0.0\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = get_cmd_value("INST", "COLLECT", "TEMP", "RAW")\nprint(value) #=> 0.0\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_time",children:"get_cmd_time"}),"\n",(0,r.jsx)(t.p,{children:"Returns the time of the most recent command sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_time("<Target Name - optional>", "<Command Name - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target. If not given, then the most recent command time to any target will be returned"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command. If not given, then the most recent command time to the given target will be returned"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target_name, command_name, time = get_cmd_time() # Name of the most recent command sent to any target and time\ntarget_name, command_name, time = get_cmd_time("INST") # Name of the most recent command sent to the INST target and time\ntarget_name, command_name, time = get_cmd_time("INST", "COLLECT") # Name of the most recent INST COLLECT command and time\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_cnt",children:"get_cmd_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Returns the number of times a specified command has been sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_cnt("<Target Name> <Command Name>")\nget_cmd_cnt("<Target Name>", "<Command Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_cnt = get_cmd_cnt("INST COLLECT") # Number of times the INST COLLECT command has been sent\n'})}),"\n",(0,r.jsx)(t.h2,{id:"handling-telemetry",children:"Handling Telemetry"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to interact with telemetry items."}),"\n",(0,r.jsx)(t.h3,{id:"check-check_raw-check_formatted-check_with_units",children:"check, check_raw, check_formatted, check_with_units"}),"\n",(0,r.jsx)(t.p,{children:"Performs a verification of a telemetry item using its specified telemetry type. If the verification fails then the script will be paused with an error. If no comparision is given to check then the telemetry item is simply printed to the script output. Note: In most cases using wait_check is a better choice than using check."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check("<Target Name> <Packet Name> <Item Name> <Comparison - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item. If a comparison is not given then the telemetry item will just be printed into the script log."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check("INST HEALTH_STATUS COLLECTS > 1")\ncheck_raw("INST HEALTH_STATUS COLLECTS > 1")\ncheck_formatted("INST HEALTH_STATUS COLLECTS > 1")\ncheck_with_units("INST HEALTH_STATUS COLLECTS > 1")\n# Ruby passes type as symbol\ncheck("INST HEALTH_STATUS COLLECTS > 1", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check("INST HEALTH_STATUS COLLECTS > 1")\ncheck_raw("INST HEALTH_STATUS COLLECTS > 1")\ncheck_formatted("INST HEALTH_STATUS COLLECTS > 1")\ncheck_with_units("INST HEALTH_STATUS COLLECTS > 1")\n# Python passes type as string\ncheck("INST HEALTH_STATUS COLLECTS > 1", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"check_tolerance",children:"check_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Checks a converted telemetry item against an expected value with a tolerance. If the verification fails then the script will be paused with an error. Note: In most cases using wait_check_tolerance is a better choice than using check_tolerance."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"CONVERTED (default) or RAW (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0)\ncheck_tolerance("INST HEALTH_STATUS TEMP1", 50000, 20000, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0)\ncheck_tolerance("INST HEALTH_STATUS TEMP1", 50000, 20000, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"check_expression",children:"check_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Evaluates an expression. If the expression evaluates to false the script will be paused with an error. This method can be used to perform more complicated comparisons than using check as shown in the example. Note: In most cases using ",(0,r.jsx)(t.a,{href:"#waitcheckexpression",children:"wait_check_expression"})," is a better choice than using check_expression."]}),"\n",(0,r.jsx)(t.p,{children:"Remember that everything inside the check_expression string will be evaluated directly and thus must be valid syntax. A common mistake is to check a variable like so (Ruby variable interpolation):"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"check_expression(\"#{answer} == 'yes'\") # where answer contains 'yes'"})}),"\n",(0,r.jsxs)(t.p,{children:["This evaluates to ",(0,r.jsx)(t.code,{children:"yes == 'yes'"})," which is not valid syntax because the variable yes is not defined (usually). The correct way to write this expression is as follows:"]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"check_expression(\"'#{answer}' == 'yes'\") # where answer contains 'yes'"})}),"\n",(0,r.jsxs)(t.p,{children:["Now this evaluates to ",(0,r.jsx)(t.code,{children:"'yes' == 'yes'"})," which is true so the check passes."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_expression("<Expression>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"An expression to evaluate."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"check_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\")\n"})}),"\n",(0,r.jsx)(t.h3,{id:"check_exception",children:"check_exception"}),"\n",(0,r.jsx)(t.p,{children:"Executes a method and expects an exception to be raised. If the method does not raise an exception, a CheckError is raised."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_exception("<Method Name>", "<Method Params - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method Name"}),(0,r.jsx)(t.td,{children:"The COSMOS scripting method to execute, e.g. 'cmd', etc."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method Params"}),(0,r.jsx)(t.td,{children:"Parameters for the method"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_exception("cmd", "INST", "COLLECT", "TYPE" => "NORMAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check_exception("cmd", "INST", "COLLECT", {"TYPE": "NORMAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"tlm-tlm_raw-tlm_formatted-tlm_with_units",children:"tlm, tlm_raw, tlm_formatted, tlm_with_units"}),"\n",(0,r.jsx)(t.p,{children:"Reads the specified form of a telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'tlm("<Target Name> <Packet Name> <Item Name>")\ntlm("<Target Name>", "<Packet Name>", "<Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = tlm("INST HEALTH_STATUS COLLECTS")\nvalue = tlm("INST", "HEALTH_STATUS", "COLLECTS")\nvalue = tlm_raw("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_formatted("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_with_units("INST HEALTH_STATUS COLLECTS")\n# Equivalent to tlm_raw\nraw_value = tlm("INST HEALTH_STATUS COLLECTS", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = tlm("INST HEALTH_STATUS COLLECTS")\nvalue = tlm("INST", "HEALTH_STATUS", "COLLECTS")\nvalue = tlm_raw("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_formatted("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_with_units("INST HEALTH_STATUS COLLECTS")\n# Equivalent to tlm_raw\nraw_value = tlm("INST HEALTH_STATUS COLLECTS", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_buffer",children:"get_tlm_buffer"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash (similar to get_tlm) along with the raw packet buffer."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'buffer = get_tlm_buffer("<Target Name> <Packet Name>")[\'buffer\']\nbuffer = get_tlm_buffer("<Target Name>", "<Packet Name>")[\'buffer\']\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"packet = get_tlm_buffer(\"INST HEALTH_STATUS\")\npacket['buffer']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_packet",children:"get_tlm_packet"}),"\n",(0,r.jsx)(t.p,{children:"Returns the names, values, and limits states of all telemetry items in a specified packet. The value is returned as an array of arrays with each entry containing [item_name, item_value, limits_state]."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_packet("<Target Name> <Packet Name>", <type>)\nget_tlm_packet("<Target Name>", "<Packet Name>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, or WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'names_values_and_limits_states = get_tlm_packet("INST HEALTH_STATUS", type: :FORMATTED)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"names_values_and_limits_states = get_tlm_packet(\"INST HEALTH_STATUS\", type='FORMATTED')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_values-modified-in-500",children:"get_tlm_values (modified in 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns the values and current limits state for a specified set of telemetry items. Items can be in any telemetry packet in the system. They can all be retrieved using the same value type or a specific value type can be specified for each item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"values, limits_states, limits_settings, limits_set = get_tlm_values(<Items>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Items"}),(0,r.jsx)(t.td,{children:"Array of strings of the form ['TGT__PKT__ITEM__TYPE', ... ]"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'values = get_tlm_values(["INST__HEALTH_STATUS__TEMP1__CONVERTED", "INST__HEALTH_STATUS__TEMP2__RAW"])\nprint(values) # [[-100.0, :RED_LOW], [0, :RED_LOW]]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_tlm-since-5130-since-500-as-get_all_telemetry",children:"get_all_tlm (since 5.13.0, since 5.0.0 as get_all_telemetry)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of all target packet hashes."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packets = get_all_tlm("INST")\nprint(packets)\n#[{"target_name"=>"INST",\n# "packet_name"=>"ADCS",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Position and attitude data",\n# "stale"=>true,\n# "items"=>\n# [{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_tlm_names-since-5130-since-506-as-get_all_telemetry_names",children:"get_all_tlm_names (since 5.13.0, since 5.0.6 as get_all_telemetry_names)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of all target packet names."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm_names("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm_names("INST") #=> ["ADCS", "HEALTH_STATUS", ...]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm-since-5130-since-500-as-get_telemetry",children:"get_tlm (since 5.13.0, since 5.0.0 as get_telemetry)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm("<Target Name> <Packet Name>")\nget_tlm("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packet = get_tlm("INST HEALTH_STATUS")\nprint(packet)\n#{"target_name"=>"INST",\n# "packet_name"=>"HEALTH_STATUS",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Health and status from the instrument",\n# "stale"=>true,\n# "processors"=>\n# [{"name"=>"TEMP1STAT",\n# "class"=>"OpenC3::StatisticsProcessor",\n# "params"=>["TEMP1", 100, "CONVERTED"]},\n# {"name"=>"TEMP1WATER",\n# "class"=>"OpenC3::WatermarkProcessor",\n# "params"=>["TEMP1", "CONVERTED"]}],\n# "items"=>\n# [{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_item-since-500",children:"get_item (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an item hash."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_item("<Target Name> <Packet Name> <Item Name>")\nget_item("<Target Name>", "<Packet Name>", "<Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'item = get_item("INST HEALTH_STATUS CCSDSVER")\nprint(item)\n#{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# "data_type"=>"UINT",\n# "description"=>"CCSDS packet version number (See CCSDS 133.0-B-1)",\n# "endianness"=>"BIG_ENDIAN",\n# "required"=>false,\n# "overflow"=>"ERROR"}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnt",children:"get_tlm_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Returns the number of times a specified telemetry packet has been received."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("<Target Name> <Packet Name>")\nget_tlm_cnt("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'tlm_cnt = get_tlm_cnt("INST HEALTH_STATUS") # Number of times the INST HEALTH_STATUS telemetry packet has been received.\n'})}),"\n",(0,r.jsx)(t.h3,{id:"set_tlm",children:"set_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Sets a telemetry item value in the Command and Telemetry Server. This value will be overwritten if a new packet is received from an interface. For that reason this method is most useful if interfaces are disconnected or for testing via the Script Runner disconnect mode. Manually setting telemetry values allows for the execution of many logical paths in scripts."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_tlm("<Target> <Packet> <Item> = <Value>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Value type RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_tlm("INST HEALTH_STATUS COLLECTS = 5") # type is :CONVERTED by default\ncheck("INST HEALTH_STATUS COLLECTS == 5")\nset_tlm("INST HEALTH_STATUS COLLECTS = 10", type: :RAW)\ncheck("INST HEALTH_STATUS COLLECTS == 10", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'set_tlm("INST HEALTH_STATUS COLLECTS = 5") # type is CONVERTED by default\ncheck("INST HEALTH_STATUS COLLECTS == 5")\nset_tlm("INST HEALTH_STATUS COLLECTS = 10", type=\'RAW\')\ncheck("INST HEALTH_STATUS COLLECTS == 10", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"inject_tlm",children:"inject_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Injects a packet into the system as if it was received from an interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Packet Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'inject_tlm("<target_name>", "<packet_name>", <item_hash>, <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Hash"}),(0,r.jsx)(t.td,{children:"Hash of item name/value for each item. If an item is not specified in the hash, the current value table value will be used. Optional parameter, defaults to nil."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type of values in the item hash, RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"inject_tlm(\"INST\", \"PARAMS\", {'VALUE1' => 5.0, 'VALUE2' => 7.0})\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"inject_tlm(\"INST\", \"PARAMS\", {'VALUE1': 5.0, 'VALUE2': 7.0})\n"})}),"\n",(0,r.jsx)(t.h3,{id:"override_tlm",children:"override_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Sets the converted value for a telmetry point in the Command and Telemetry Server. This value will be maintained even if a new packet is received on the interface unless the override is canceled with the normalize_tlm method."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("<Target> <Packet> <Item> = <Value>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type to override, ALL (default), RAW, CONVERTED, FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5") # All requests for TEMP1 return 5\noverride_tlm("INST HEALTH_STATUS TEMP2 = 0", type: :RAW) # Only RAW tlm set to 0\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5") # All requests for TEMP1 return 5\noverride_tlm("INST HEALTH_STATUS TEMP2 = 0", type=\'RAW\') # Only RAW tlm set to 0\n'})}),"\n",(0,r.jsx)(t.h3,{id:"normalize_tlm",children:"normalize_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Clears the override of a telmetry point in the Command and Telemetry Server."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'normalize_tlm("<Target> <Packet> <Item>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type to normalize, ALL (default), RAW, CONVERTED, FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'normalize_tlm("INST HEALTH_STATUS TEMP1") # clear all overrides\nnormalize_tlm("INST HEALTH_STATUS TEMP1", type: :RAW) # clear only the RAW override\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'normalize_tlm("INST HEALTH_STATUS TEMP1") # clear all overrides\nnormalize_tlm("INST HEALTH_STATUS TEMP1", type=\'RAW\') # clear only the RAW override\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_overrides",children:"get_overrides"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the the currently overriden values set by override_tlm. NOTE: This returns all the value types that are overriden which by default is all 4 values types when using override_tlm."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_overrides()\n"})}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5")\nputs get_overrides() #=>\n# [ {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"RAW", "value"=>5}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"CONVERTED", "value"=>5}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"FORMATTED", "value"=>"5"}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"WITH_UNITS", "value"=>"5"} ]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"override_tlm(\"INST HEALTH_STATUS TEMP1 = 5\")\nprint(get_overrides()) #=>\n# [ {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'RAW', 'value': 5},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'CONVERTED', 'value': 5},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'FORMATTED', 'value': '5'},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'WITH_UNITS', 'value': '5'} ]\n"})}),"\n",(0,r.jsx)(t.h2,{id:"packet-data-subscriptions",children:"Packet Data Subscriptions"}),"\n",(0,r.jsx)(t.p,{children:"Methods for subscribing to specific packets of data. This provides an interface to ensure that each telemetry packet is received and handled rather than relying on polling where some data may be missed."}),"\n",(0,r.jsx)(t.h3,{id:"subscribe_packets-since-503",children:"subscribe_packets (since 5.0.3)"}),"\n",(0,r.jsx)(t.p,{children:"Allows the user to listen for one or more telemetry packets of data to arrive. A unique id is returned which is used to retrieve the data."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"subscribe_packets(packets)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"packets"}),(0,r.jsx)(t.td,{children:"Nested array of target name/packet name pairs that the user wishes to subscribe to."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_packets-since-503",children:"get_packets (since 5.0.3)"}),"\n",(0,r.jsx)(t.p,{children:"Streams packet data from a previous subscription."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_packets(id, block: nil, count: 1000)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"get_packets(id, block=None, count=1000)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"id"}),(0,r.jsx)(t.td,{children:"Unique id returned by subscribe_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"block"}),(0,r.jsx)(t.td,{children:"Number of milliseconds to block while waiting for packets form ANY stream, default nil / None (do not block)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"count"}),(0,r.jsx)(t.td,{children:"Maximum number of packets to return from EACH packet stream"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\nwait 0.1\nid, packets = get_packets(id)\npackets.each do |packet|\n puts \"#{packet['PACKET_TIMESECONDS']}: #{packet['target_name']} #{packet['packet_name']}\"\nend\n# Reuse ID from last call, allow for 1s wait, only get 1 packet\nid, packets = get_packets(id, block: 1000, count: 1)\npackets.each do |packet|\n puts \"#{packet['PACKET_TIMESECONDS']}: #{packet['target_name']} #{packet['packet_name']}\"\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\nwait(0.1)\nid, packets = get_packets(id)\nfor packet in packets:\n print(f\"{packet['PACKET_TIMESECONDS']}: {packet['target_name']} {packet['packet_name']}\")\n\n# Reuse ID from last call, allow for 1s wait, only get 1 packet\nid, packets = get_packets(id, block=1000, count=1)\nfor packet in packets:\n print(f\"{packet['PACKET_TIMESECONDS']}: {packet['target_name']} {packet['packet_name']}\")\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnt-1",children:"get_tlm_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Get the receive count for a telemetry packet"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("<Target> <Packet>")\nget_tlm_cnt("<Target>", "<Packet>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("INST HEALTH_STATUS") #=> 10\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnts",children:"get_tlm_cnts"}),"\n",(0,r.jsx)(t.p,{children:"Get the receive counts for an array of telemetry packets"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnts([["<Target>", "<Packet>"], ["<Target>", "<Packet>"]])\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnts([["INST", "ADCS"], ["INST", "HEALTH_STATUS"]]) #=> [100, 10]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_packet_derived_items",children:"get_packet_derived_items"}),"\n",(0,r.jsx)(t.p,{children:"Get the list of derived telemetry items for a packet"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_packet_derived_items("<Target> <Packet>")\nget_packet_derived_items("<Target>", "<Packet>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_packet_derived_items(\"INST HEALTH_STATUS\") #=> ['PACKET_TIMESECONDS', 'PACKET_TIMEFORMATTED', ...]\n"})}),"\n",(0,r.jsx)(t.h2,{id:"delays",children:"Delays"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to pause the script to wait for telemetry to change or for an amount of time to pass."}),"\n",(0,r.jsx)(t.h3,{id:"wait",children:"wait"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time (minimum 10ms) or until a converted telemetry item meets given criteria. It supports three different syntaxes as shown. If no parameters are given then an infinite wait occurs until the user presses Go. Note that on a timeout, wait does not stop the script, usually wait_check is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait()\nwait(<Time>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Time"}),(0,r.jsx)(t.td,{children:"Time in Seconds to delay for."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait("<Target Name> <Packet Name> <Item Name> <Comparison>", <Timeout>, <Polling Rate (optional)>, type, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait\nwait 5\nwait("INST HEALTH_STATUS COLLECTS == 3", 10)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10, type: :RAW, quiet: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait()\nwait(5)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10, type=\'RAW\', quiet=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_tolerance",children:"wait_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time or until a converted telemetry item meets equals an expected value within a tolerance. Note that on a timeout, wait_tolerance does not stop the script, usually wait_check_tolerance is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>, <Timeout>, <Polling Rate (optional), type, quiet>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Examples:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type: :RAW, quiet: true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Examples:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type=\'RAW\', quiet=True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_expression",children:"wait_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Pauses the script until an expression is evaluated to be true or a timeout occurs. If a timeout occurs the script will continue. This method can be used to perform more complicated comparisons than using wait as shown in the example. Note that on a timeout, wait_expression does not stop the script, usually ",(0,r.jsx)(t.a,{href:"#waitcheckexpression",children:"wait_check_expression"})," is a better choice."]}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_expression("<Expression>", <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"A ruby expression to evaluate."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\", 10)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_packet",children:"wait_packet"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script until a certain number of packets have been received. If a timeout occurs the script will continue. Note that on a timeout, wait_packet does not stop the script, usually wait_check_packet is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_packet("<Target>", "<Packet>", <Num Packets>, <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"The target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"The packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Num Packets"}),(0,r.jsx)(t.td,{children:"The number of packets to receive"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_packet('INST', 'HEALTH_STATUS', 5, 10) # Wait for 5 INST HEALTH_STATUS packets over 10s\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check",children:"wait_check"}),"\n",(0,r.jsx)(t.p,{children:"Combines the wait and check keywords into one. This pauses the script until the converted value of a telemetry item meets given criteria or times out. On a timeout the script stops."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check("<Target Name> <Packet Name> <Item Name> <Comparison>", <Timeout>, <Polling Rate (optional)>, type)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check("INST HEALTH_STATUS COLLECTS > 5", 10)\nwait_check("INST HEALTH_STATUS COLLECTS > 5", 10, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_check("INST HEALTH_STATUS COLLECTS > 5", 10)\nwait_check("INST HEALTH_STATUS COLLECTS > 5", 10, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_tolerance",children:"wait_check_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time or until a converted telemetry item equals an expected value within a tolerance. On a timeout the script stops."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>, <Timeout>, <Polling Rate (optional)>, type)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_expression",children:"wait_check_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Pauses the script until an expression is evaluated to be true or a timeout occurs. If a timeout occurs the script will stop. This method can be used to perform more complicated comparisons than using wait as shown in the example. Also see the syntax notes for ",(0,r.jsx)(t.a,{href:"#checkexpression",children:"check_expression"}),"."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_expression("<Expression>", <Timeout>, <Polling Rate (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"A ruby expression to evaluate."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_check_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\", 10)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_packet",children:"wait_check_packet"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script until a certain number of packets have been received. If a timeout occurs the script will stop."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_packet("<Target>", "<Packet>", <Num Packets>, <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"The target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"The packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Num Packets"}),(0,r.jsx)(t.td,{children:"The number of packets to receive"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting specified number of packets."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_check_packet('INST', 'HEALTH_STATUS', 5, 10) # Wait for 5 INST HEALTH_STATUS packets over 10s\n"})}),"\n",(0,r.jsx)(t.h2,{id:"limits",children:"Limits"}),"\n",(0,r.jsx)(t.p,{children:"These methods deal with handling telemetry limits."}),"\n",(0,r.jsx)(t.h3,{id:"limits_enabled-limits_enabled",children:"limits_enabled?, limits_enabled"}),"\n",(0,r.jsx)(t.p,{children:"The limits_enabled? method returns true/false depending on whether limits are enabled for a telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'limits_enabled?("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'limits_enabled("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enabled = limits_enabled?("INST HEALTH_STATUS TEMP1") #=> true or false\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'enabled = limits_enabled("INST HEALTH_STATUS TEMP1") #=> True or False\n'})}),"\n",(0,r.jsx)(t.h3,{id:"enable_limits",children:"enable_limits"}),"\n",(0,r.jsx)(t.p,{children:"Enables limits monitoring for the specified telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits("INST HEALTH_STATUS TEMP1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disable_limits",children:"disable_limits"}),"\n",(0,r.jsx)(t.p,{children:"Disables limits monitoring for the specified telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits("INST HEALTH_STATUS TEMP1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"enable_limits_group",children:"enable_limits_group"}),"\n",(0,r.jsx)(t.p,{children:"Enables limits monitoring on a set of telemetry items specified in a limits group."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits_group("<Limits Group Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Group Name"}),(0,r.jsx)(t.td,{children:"Name of the limits group."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits_group("SAFE_MODE")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disable_limits_group",children:"disable_limits_group"}),"\n",(0,r.jsx)(t.p,{children:"Disables limits monitoring on a set of telemetry items specified in a limits group."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits_group("<Limits Group Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Group Name"}),(0,r.jsx)(t.td,{children:"Name of the limits group."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits_group("SAFE_MODE")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_groups",children:"get_limits_groups"}),"\n",(0,r.jsx)(t.p,{children:"Returns the list of limits groups in the system."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_groups = get_limits_groups()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_limits_set",children:"set_limits_set"}),"\n",(0,r.jsx)(t.p,{children:"Sets the current limits set. The default limits set is DEFAULT."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_limits_set("<Limits Set Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set Name"}),(0,r.jsx)(t.td,{children:"Name of the limits set."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_limits_set("DEFAULT")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_set",children:"get_limits_set"}),"\n",(0,r.jsx)(t.p,{children:"Returns the name of the current limits set. The default limits set is DEFAULT."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_set = get_limits_set()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_sets",children:"get_limits_sets"}),"\n",(0,r.jsx)(t.p,{children:"Returns the list of limits sets in the system."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_sets = get_limits_sets()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits",children:"get_limits"}),"\n",(0,r.jsx)(t.p,{children:"Returns limits settings for a telemetry point."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_limits(<Target Name>, <Packet Name>, <Item Name>, <Limits Set (optional)>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set"}),(0,r.jsx)(t.td,{children:"Get the limits for a specific limits set. If not given then it defaults to returning the settings for the current limits set."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_set, persistence_setting, enabled, red_low, yellow_low, yellow_high, red_high, green_low, green_high = get_limits('INST', 'HEALTH_STATUS', 'TEMP1')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_limits",children:"set_limits"}),"\n",(0,r.jsx)(t.p,{children:"The set_limits_method sets limits settings for a telemetry point. Note: In most cases it would be better to update your config files or use different limits sets rather than changing limits settings in realtime."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_limits(<Target Name>, <Packet Name>, <Item Name>, <Red Low>, <Yellow Low>, <Yellow High>, <Red High>, <Green Low (optional)>, <Green High (optional)>, <Limits Set (optional)>, <Persistence (optional)>, <Enabled (optional)>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Red Low"}),(0,r.jsx)(t.td,{children:"Red Low setting for this limits set. Any value below this value will be make the item red."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Yellow Low"}),(0,r.jsx)(t.td,{children:"Yellow Low setting for this limits set. Any value below this value but greater than Red Low will be make the item yellow."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Yellow High"}),(0,r.jsx)(t.td,{children:"Yellow High setting for this limits set. Any value above this value but less than Red High will be make the item yellow."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Red High"}),(0,r.jsx)(t.td,{children:"Red High setting for this limits set. Any value above this value will be make the item red."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Green Low"}),(0,r.jsx)(t.td,{children:"Optional. If given, any value greater than Green Low and less than Green_High will make the item blue indicating a good operational value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Green High"}),(0,r.jsx)(t.td,{children:"Optional. If given, any value greater than Green Low and less than Green_High will make the item blue indicating a good operational value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set"}),(0,r.jsx)(t.td,{children:"Optional. Set the limits for a specific limits set. If not given then it defaults to setting limts for the CUSTOM limits set."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Persistence"}),(0,r.jsx)(t.td,{children:"Optional. Set the number of samples this item must be out of limits before changing limits state. Defaults to no change. Note: This affects all limits settings across limits sets."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Enabled"}),(0,r.jsx)(t.td,{children:"Optional. Whether or not limits are enabled for this item. Defaults to true. Note: This affects all limits settings across limits sets."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_limits('INST', 'HEALTH_STATUS', 'TEMP1', -10.0, 0.0, 50.0, 60.0, 30.0, 40.0, 'TVAC', 1, true)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_out_of_limits",children:"get_out_of_limits"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array with the target_name, packet_name, item_name, and limits_state of all items that are out of their limits ranges."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"out_of_limits_items = get_out_of_limits()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_overall_limits_state",children:"get_overall_limits_state"}),"\n",(0,r.jsx)(t.p,{children:"Returns the overall limits state for the COSMOS system. Returns 'GREEN', 'YELLOW', or 'RED'."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_overall_limits_state(<Ignored Items> (optional))\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Ignored Items"}),(0,r.jsx)(t.td,{children:"Array of arrays with items to ignore when determining the overall limits state. [['TARGET_NAME', 'PACKET_NAME', 'ITEM_NAME'], ...]"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"overall_limits_state = get_overall_limits_state()\noverall_limits_state = get_overall_limits_state([['INST', 'HEALTH_STATUS', 'TEMP1']])\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_events",children:"get_limits_events"}),"\n",(0,r.jsx)(t.p,{children:"Returns limits events based on an offset returned from the last time it was called."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_limits_event(<Offset>, count)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Offset"}),(0,r.jsx)(t.td,{children:"Offset returned by the previous call to get_limits_event. Default is nil for the initial call"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"count"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the maximum number of limits events to return. Default is 100"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'events = get_limits_event()\nprint(events)\n#[["1613077715557-0",\n# {"type"=>"LIMITS_CHANGE",\n# "target_name"=>"TGT",\n# "packet_name"=>"PKT",\n# "item_name"=>"ITEM",\n# "old_limits_state"=>"YELLOW_LOW",\n# "new_limits_state"=>"RED_LOW",\n# "time_nsec"=>"1",\n# "message"=>"message"}],\n# ["1613077715557-1",\n# {"type"=>"LIMITS_CHANGE",\n# "target_name"=>"TGT",\n# "packet_name"=>"PKT",\n# "item_name"=>"ITEM",\n# "old_limits_state"=>"RED_LOW",\n# "new_limits_state"=>"YELLOW_LOW",\n# "time_nsec"=>"2",\n# "message"=>"message"}]]\n# The last offset is the first item ([0]) in the last event ([-1])\nevents = get_limits_event(events[-1][0])\nprint(events)\n#[["1613077715657-0",\n# {"type"=>"LIMITS_CHANGE",\n# ...\n'})}),"\n",(0,r.jsx)(t.h2,{id:"targets",children:"Targets"}),"\n",(0,r.jsx)(t.p,{children:"Methods for getting knowledge about targets."}),"\n",(0,r.jsx)(t.h3,{id:"get_target_names",children:"get_target_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the targets in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"targets = get_target_names() #=> ['INST', 'INST2', 'EXAMPLE', 'TEMPLATED']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_target",children:"get_target"}),"\n",(0,r.jsx)(t.p,{children:"Returns a target hash containing all the information about the target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target = get_target("INST")\nprint(target)\n#{"name"=>"INST",\n# "folder_name"=>"INST",\n# "requires"=>[],\n# "ignored_parameters"=>\n# ["CCSDSVER",\n# "CCSDSTYPE",\n# "CCSDSSHF",\n# "CCSDSAPID",\n# "CCSDSSEQFLAGS",\n# "CCSDSSEQCNT",\n# "CCSDSLENGTH",\n# "PKTID"],\n# "ignored_items"=>\n# ["CCSDSVER",\n# "CCSDSTYPE",\n# "CCSDSSHF",\n# "CCSDSAPID",\n# "CCSDSSEQFLAGS",\n# "CCSDSSEQCNT",\n# "CCSDSLENGTH",\n# "RECEIVED_COUNT",\n# "RECEIVED_TIMESECONDS",\n# "RECEIVED_TIMEFORMATTED"],\n# "limits_groups"=>[],\n# "cmd_tlm_files"=>\n# [".../targets/INST/cmd_tlm/inst_cmds.txt",\n# ".../targets/INST/cmd_tlm/inst_tlm.txt"],\n# "cmd_unique_id_mode"=>false,\n# "tlm_unique_id_mode"=>false,\n# "id"=>nil,\n# "updated_at"=>1613077058266815900,\n# "plugin"=>nil}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_target_interfaces",children:"get_target_interfaces"}),"\n",(0,r.jsx)(t.p,{children:"Returns the interfaces for all targets. The return value is an array of arrays where each subarray contains the target name, and a String of all the interface names."}),"\n",(0,r.jsx)(t.p,{children:"Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target_ints = get_target_interfaces()\ntarget_ints.each do |target_name, interfaces|\n puts "Target: #{target_name}, Interfaces: #{interfaces}"\nend\n'})}),"\n",(0,r.jsx)(t.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to manipulate COSMOS interfaces."}),"\n",(0,r.jsx)(t.h3,{id:"get_interface-since-500",children:"get_interface (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an interface status including the as built interface and its current status (cmd/tlm counters, etc)."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{children:'get_interface("<Interface Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface = get_interface("INST_INT")\nprint(interface)\n#{"name"=>"INST_INT",\n# "config_params"=>["interface.rb"],\n# "target_names"=>["INST"],\n# "connect_on_startup"=>true,\n# "auto_reconnect"=>true,\n# "reconnect_delay"=>5.0,\n# "disable_disconnect"=>false,\n# "options"=>[],\n# "protocols"=>[],\n# "log"=>true,\n# "log_raw"=>false,\n# "plugin"=>nil,\n# "updated_at"=>1613076213535979900,\n# "state"=>"CONNECTED",\n# "clients"=>0,\n# "txsize"=>0,\n# "rxsize"=>0,\n# "txbytes"=>0,\n# "rxbytes"=>0,\n# "txcnt"=>0,\n# "rxcnt"=>0}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_interface_names",children:"get_interface_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the interfaces in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"interface_names = get_interface_names() #=> ['INST_INT', 'INST2_INT', 'EXAMPLE_INT', 'TEMPLATED_INT']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"connect_interface",children:"connect_interface"}),"\n",(0,r.jsx)(t.p,{children:"Connects to targets associated with a COSMOS interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_interface("<Interface Name>", <Interface Parameters (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Parameters"}),(0,r.jsx)(t.td,{children:"Parameters used to initialize the interface. If none are given then the interface will use the parameters that were given in the server configuration file."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_interface("INT1")\nconnect_interface("INT1", hostname, port)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_interface",children:"disconnect_interface"}),"\n",(0,r.jsx)(t.p,{children:"Disconnects from targets associated with a COSMOS interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_interface("<Interface Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_interface("INT1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"start_raw_logging_interface",children:"start_raw_logging_interface"}),"\n",(0,r.jsx)(t.p,{children:"Starts logging of raw data on one or all interfaces. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_interface("<Interface Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the Interface to command to start raw data logging. Defaults to 'ALL' which causes all interfaces that support raw data logging to start logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_interface("int1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"stop_raw_logging_interface",children:"stop_raw_logging_interface"}),"\n",(0,r.jsx)(t.p,{children:"Stops logging of raw data on one or all interfaces. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_interface("<Interface Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the Interface to command to stop raw data logging. Defaults to 'ALL' which causes all interfaces that support raw data logging to stop logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_interface("int1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_interface_info",children:"get_all_interface_info"}),"\n",(0,r.jsx)(t.p,{children:"Returns information about all interfaces. The return value is an array of arrays where each subarray contains the interface name, connection state, number of connected clients, transmit queue size, receive queue size, bytes transmitted, bytes received, command count, and telemetry count."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_info = get_all_interface_info()\ninterface_info.each do |interface_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, cmd_count, tlm_count|\n puts "Interface: #{interface_name}, Connection state: #{connection_state}, Num connected clients: #{num_clients}"\n puts "Transmit queue size: #{tx_q_size}, Receive queue size: #{rx_q_size}, Bytes transmitted: #{tx_bytes}, Bytes received: #{rx_bytes}"\n puts "Cmd count: #{cmd_count}, Tlm count: #{tlm_count}"\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'interface_info = get_all_interface_info()\nfor interface in interface_info():\n # [interface_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, cmd_count, tlm_count]\n print(f"Interface: {interface[0]}, Connection state: {interface[1]}, Num connected clients: {interface[2]}")\n print(f"Transmit queue size: {interface[3]}, Receive queue size: {interface[4]}, Bytes transmitted: {interface[5]}, Bytes received: {interface[6]}")\n print(f"Cmd count: {interface[7]}, Tlm count: {interface[8]}")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"map_target_to_interface",children:"map_target_to_interface"}),"\n",(0,r.jsx)(t.p,{children:"Map a target to an interface allowing target commands and telemetry to be processed by that interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'map_target_to_interface("<Target Name>", "<Interface Name>", cmd_only, tlm_only, unmap_old)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_only"}),(0,r.jsx)(t.td,{children:"Named parameter whether to map target commands only to the interface (default: false)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"tlm_only"}),(0,r.jsx)(t.td,{children:"Named parameter whether to map target telemetry only to the interface (default: false)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unmap_old"}),(0,r.jsx)(t.td,{children:"Named parameter whether remove the target from all existing interfaces (default: true)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'map_target_to_interface("INST", "INST_INT", unmap_old: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'map_target_to_interface("INST", "INST_INT", unmap_old=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"interface_cmd",children:"interface_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an interface. This has no effect in the standard COSMOS interfaces but can be implemented by a custom interface to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_cmd("<Interface Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_cmd("INST", "DISABLE_CRC")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"interface_protocol_cmd",children:"interface_protocol_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an interface protocol. This has no effect in the standard COSMOS protocols but can be implemented by a custom protocol to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_protocol_cmd("<Interface Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"read_write"}),(0,r.jsx)(t.td,{children:"Whether command gets send to read or write protocols. Must be one of READ, WRITE, or READ_WRITE (Ruby symbols, Python strings). The default is READ_WRITE."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"index"}),(0,r.jsx)(t.td,{children:"Which protocol in the stack the command should apply to. The default is -1 which applies the command to all."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_protocol_cmd("INST", "DISABLE_CRC", read_write: :READ_WRITE, index: -1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'interface_protocol_cmd("INST", "DISABLE_CRC", read_write=\'READ_WRITE\', index=-1)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"routers",children:"Routers"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to manipulate COSMOS routers."}),"\n",(0,r.jsx)(t.h3,{id:"connect_router",children:"connect_router"}),"\n",(0,r.jsx)(t.p,{children:"Connects a COSMOS router."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_router("<Router Name>", <Router Parameters (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Parameters"}),(0,r.jsx)(t.td,{children:"Parameters used to initialize the router. If none are given then the router will use the parameters that were given in the server configuration file."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_ROUTER("INST_ROUTER")\nconnect_router("INST_ROUTER", 7779, 7779, nil, 10.0, \'PREIDENTIFIED\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_router",children:"disconnect_router"}),"\n",(0,r.jsx)(t.p,{children:"Disconnects a COSMOS router."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_router("<Router Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_router("INT1_ROUTER")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_router_names",children:"get_router_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the routers in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"router_names = get_router_names() #=> ['ROUTER_INT']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_router-since-500",children:"get_router (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a router status including the as built router and its current status (cmd/tlm counters, etc)."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_router("<Router Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router = get_router("ROUTER_INT")\nprint(router)\n#{"name"=>"ROUTER_INT",\n# "config_params"=>["router.rb"],\n# "target_names"=>["INST"],\n# "connect_on_startup"=>true,\n# "auto_reconnect"=>true,\n# "reconnect_delay"=>5.0,\n# "disable_disconnect"=>false,\n# "options"=>[],\n# "protocols"=>[],\n# "log"=>true,\n# "log_raw"=>false,\n# "plugin"=>nil,\n# "updated_at"=>1613076213535979900,\n# "state"=>"CONNECTED",\n# "clients"=>0,\n# "txsize"=>0,\n# "rxsize"=>0,\n# "txbytes"=>0,\n# "rxbytes"=>0,\n# "txcnt"=>0,\n# "rxcnt"=>0}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_router_info",children:"get_all_router_info"}),"\n",(0,r.jsx)(t.p,{children:"Returns information about all routers. The return value is an array of arrays where each subarray contains the router name, connection state, number of connected clients, transmit queue size, receive queue size, bytes transmitted, bytes received, packets received, and packets sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_info = get_all_router_info()\nrouter_info.each do |router_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, pkts_rcvd, pkts_sent|\n puts "Router: #{router_name}, Connection state: #{connection_state}, Num connected clients: #{num_clients}"\n puts "Transmit queue size: #{tx_q_size}, Receive queue size: #{rx_q_size}, Bytes transmitted: #{tx_bytes}, Bytes received: #{rx_bytes}"\n puts "Packets received: #{pkts_rcvd}, Packets sent: #{pkts_sent}"\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'router_info = get_all_router_info()\n# router_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, pkts_rcvd, pkts_sent\nfor router in router_info:\n print(f"Router: {router[0]}, Connection state: {router[1]}, Num connected clients: {router[2]}")\n print(f"Transmit queue size: {router[3]}, Receive queue size: {router[4]}, Bytes transmitted: {router[5]}, Bytes received: {router[6]}")\n print(f"Packets received: {router[7]}, Packets sent: {router[8]}")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"start_raw_logging_router",children:"start_raw_logging_router"}),"\n",(0,r.jsx)(t.p,{children:"Starts logging of raw data on one or all routers. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_router("<Router Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the Router to command to start raw data logging. Defaults to 'ALL' which causes all routers that support raw data logging to start logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_router("router1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"stop_raw_logging_router",children:"stop_raw_logging_router"}),"\n",(0,r.jsx)(t.p,{children:"Stops logging of raw data on one or all routers. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_router("<Router Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the Router to command to stop raw data logging. Defaults to 'ALL' which causes all routers that support raw data logging to stop logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_router("router1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"router_cmd",children:"router_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to a router. This has no effect in the standard COSMOS routers but can be implemented by a custom router to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_cmd("<Router Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_cmd("INST", "DISABLE_CRC")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"router_protocol_cmd",children:"router_protocol_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an router protocol. This has no effect in the standard COSMOS protocols but can be implemented by a custom protocol to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_protocol_cmd("<Router Name>", "<Command Name>", "<Command Parameters>", read_write, index)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"read_write"}),(0,r.jsx)(t.td,{children:"Whether command gets send to read or write protocols. Must be one of READ, WRITE, or READ_WRITE (Ruby symbols, Python strings). The default is READ_WRITE."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"index"}),(0,r.jsx)(t.td,{children:"Which protocol in the stack the command should apply to. The default is -1 which applies the command to all."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_protocol_cmd("INST", "DISABLE_CRC", read_write: :READ_WRITE, index: -1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'router_protocol_cmd("INST", "DISABLE_CRC", read_write=\'READ_WRITE\', index=-1)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"stashing-data",children:"Stashing Data"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to store temporary data into COSMOS and retrieve it. The storage is implemented as a key / value storage (Ruby hash or Python dict). This can be used in scripts to store information that applies across multiple scripts or multiple runs of a single script."}),"\n",(0,r.jsx)(t.h3,{id:"stash_set",children:"stash_set"}),"\n",(0,r.jsx)(t.p,{children:"Sets a stash item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_set("<Stash Key>", <Stash Value>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_set('run_count', 5)\nstash_set('setpoint', 23.4)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_get",children:"stash_get"}),"\n",(0,r.jsx)(t.p,{children:"Returns the specified stash item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_get("<Stash Key>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to return"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_get('run_count') #=> 5\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_all",children:"stash_all"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the stash items as a Ruby hash or Python dict."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_all() #=> ['run_count' => 5, 'setpoint' => 23.4]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_all() #=> ['run_count': 5, 'setpoint': 23.4]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_keys",children:"stash_keys"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the stash keys."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_keys() #=> ['run_count', 'setpoint']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_delete",children:"stash_delete"}),"\n",(0,r.jsx)(t.p,{children:"Deletes a stash item. Note this actions is permanent!"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_delete("<Stash Key>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to delete"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_delete("run_count")\n'})}),"\n",(0,r.jsx)(t.h2,{id:"executing-other-procedures",children:"Executing Other Procedures"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to bring in files of subroutines and execute other test procedures."}),"\n",(0,r.jsx)(t.h3,{id:"start",children:"start"}),"\n",(0,r.jsx)(t.p,{children:"Starts execution of another high level test procedure. No parameters can be given to high level test procedures. If parameters are necessary, then consider using a subroutine."}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start("<Procedure Filename>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Procedure Filename"}),(0,r.jsx)(t.td,{children:"Name of the test procedure file. These files are normally in the procedures folder but may be anywhere in the Ruby search path. Additionally, absolute paths are supported."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start("test1.rb")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"load_utility",children:"load_utility"}),"\n",(0,r.jsx)(t.p,{children:"Reads in a script file that contains useful subroutines for use in your test procedure. When these subroutines run in ScriptRunner or TestRunner, their lines will be highlighted. If you want to import subroutines but do not want their lines to be highlighted in ScriptRunner or TestRunner, use the standard Ruby 'load' or 'require' statement or Python 'import' statement."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'load_utility("TARGET/lib/<Utility Filename>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Utility Filename"}),(0,r.jsx)(t.td,{children:"Name of the script file containing subroutines including the .rb or .py extension. You need to include the full target name and path such as TARGET/lib/utility.rb"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'load_utility("TARGET/lib/mode_changes.rb") # Ruby\nload_utility("TARGET/lib/mode_changes.py") # Python\n'})}),"\n",(0,r.jsx)(t.h2,{id:"opening-closing--creating-telemetry-screens",children:"Opening, Closing & Creating Telemetry Screens"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to open, close or create unique telemetry screens from within a test procedure."}),"\n",(0,r.jsx)(t.h3,{id:"display_screen",children:"display_screen"}),"\n",(0,r.jsx)(t.p,{children:"Opens a telemetry screen at the specified position."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'display_screen("<Target Name>", "<Screen Name>", <X Position (optional)>, <Y Position (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"X Position"}),(0,r.jsx)(t.td,{children:"X coordinate for the upper left hand corner of the screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Y Position"}),(0,r.jsx)(t.td,{children:"Y coordinate for the upper left hand corner of the screen"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'display_screen("INST", "ADCS", 100, 200)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"clear_screen",children:"clear_screen"}),"\n",(0,r.jsx)(t.p,{children:"Closes an open telemetry screen."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'clear_screen("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'clear_screen("INST", "ADCS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"clear_all_screens",children:"clear_all_screens"}),"\n",(0,r.jsx)(t.p,{children:"Closes all open screens."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"clear_all_screens()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"delete_screen",children:"delete_screen"}),"\n",(0,r.jsx)(t.p,{children:"Deletes an existing Telemetry Viewer screen."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_screen("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_screen("INST", "ADCS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_screen_list",children:"get_screen_list"}),"\n",(0,r.jsx)(t.p,{children:"The get_screen_list returns a list of available telemetry screens."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_screen_list() #=> ['INST ADCS', 'INST COMMANDING', ...]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_screen_definition",children:"get_screen_definition"}),"\n",(0,r.jsx)(t.p,{children:"The get_screen_definition returns the text file contents of a telemetry screen definition."}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_screen_definition("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_definition = get_screen_definition("INST", "HS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"create_screen",children:"create_screen"}),"\n",(0,r.jsx)(t.p,{children:"The create_screen allows you to create a screen directly from a script. This screen is saved to Telemetry Viewer for future use in that application."}),"\n",(0,r.jsx)(t.p,{children:"Python / Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'create_screen("<Target Name>", "<Screen Name>" "<Definition>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Definition"}),(0,r.jsx)(t.td,{children:"The entire screen definition as a String"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "New Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\ncreate_screen("INST", "LOCAL", screen_def)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "New Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\ncreate_screen("INST", "LOCAL", screen_def)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"local_screen",children:"local_screen"}),"\n",(0,r.jsx)(t.p,{children:"The local_screen allows you to create a local screen directly from a script which is not permanently saved to the Telemetry Viewer screen list. This is useful for one off screens that help users interact with scripts."}),"\n",(0,r.jsx)(t.p,{children:"Python / Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'local_screen("<Screen Name>" "<Definition>", <X Position (optional)>, <Y Position (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Definition"}),(0,r.jsx)(t.td,{children:"The entire screen definition as a String"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"X Position"}),(0,r.jsx)(t.td,{children:"X coordinate for the upper left hand corner of the screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Y Position"}),(0,r.jsx)(t.td,{children:"Y coordinate for the upper left hand corner of the screen"})]})]})]}),"\n",(0,r.jsxs)(t.p,{children:["NOTE: It is possible to specify a X, Y location off the visible display. If you do so and try to re-create the screen it will not display (because it is already displayed). Try issuing a ",(0,r.jsx)(t.code,{children:"clear_all_screens()"})," first to clear any screens off the visible display space."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "Local Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\nlocal_screen("TESTING", screen_def, 600, 75)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "Local Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\nlocal_screen("TESTING", screen_def, 600, 75)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-settings",children:"Script Runner Settings"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to control various Script Runner settings."}),"\n",(0,r.jsx)(t.h3,{id:"set_line_delay",children:"set_line_delay"}),"\n",(0,r.jsx)(t.p,{children:"This method sets the line delay in script runner."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_line_delay(<Delay>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Delay"}),(0,r.jsx)(t.td,{children:"The amount of time script runner will wait between lines when executing a script, in seconds. Should be \u2265 0.0"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_line_delay(0.0)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_line_delay",children:"get_line_delay"}),"\n",(0,r.jsx)(t.p,{children:"The method gets the line delay that script runner is currently using."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"curr_line_delay = get_line_delay()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_max_output",children:"set_max_output"}),"\n",(0,r.jsx)(t.p,{children:"This method sets the maximum number of characters to display in Script Runner output before truncating. Default is 50,000 characters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_max_output(<Characters>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Characters"}),(0,r.jsx)(t.td,{children:"Number of characters to output before truncating"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_max_output(100)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_max_output",children:"get_max_output"}),"\n",(0,r.jsx)(t.p,{children:"The method gets the maximum number of characters to display in Script Runner output before truncating. Default is 50,000 characters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"print(get_max_output()) #=> 50000\n"})}),"\n",(0,r.jsx)(t.h3,{id:"disable_instrumentation",children:"disable_instrumentation"}),"\n",(0,r.jsx)(t.p,{children:"Disables instrumentation for a block of code (line highlighting and exception catching). This is especially useful for speeding up loops that are very slow if lines are instrumented.\nConsider breaking code like this into a seperate file and using either require/load to read the file for the same effect while still allowing errors to be caught by your script."}),"\n",(0,r.jsx)(t.admonition,{title:"Use with Caution",type:"warning",children:(0,r.jsx)(t.p,{children:"Disabling instrumentation will cause any error that occurs while disabled to cause your script to completely stop."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"disable_instrumentation do\n 1000.times do\n # Don't want this to have to highlight 1000 times\n end\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"with disable_instrumentation:\n for x in range(0:1000):\n # Don't want this to have to highlight 1000 times\n"})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-suites",children:"Script Runner Suites"}),"\n",(0,r.jsxs)(t.p,{children:["Creating Script Runner suites utilizes APIs to add groups to the defined suites. For more information please see ",(0,r.jsx)(t.a,{href:"/tools/staticdocs/docs/tools/script-runner#running-script-suites",children:"running script suites"}),"."]}),"\n",(0,r.jsx)(t.h3,{id:"add_group-add_group_setup-add_group_teardown-add_script",children:"add_group, add_group_setup, add_group_teardown, add_script"}),"\n",(0,r.jsx)(t.p,{children:"Adds a group's methods to the suite. The add_group method adds all the group methods including setup, teardown, and all the methods starting with 'script_' or 'test_'. The add_group_setup method adds just the setup method defined in the group class. The add_group_teardown method adds just the teardown method defined in the group class. The add_script method adds an individual method to the suite. NOTE: add_script can add any method including those not named with 'script_' or 'test_'."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"add_group(<Group Class>)\nadd_group_setup(<Group Class>)\nadd_group_teardown(<Group Class>)\nadd_script(<Group Class>, <Method>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Group Class"}),(0,r.jsx)(t.td,{children:"Name of the previously defined class which inherits from the OpenC3 Group class. The Ruby API passes a String with the name of the group. The Python API passes the Group class directly."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method"}),(0,r.jsx)(t.td,{children:"Name of the method in the OpenC3 Group class. The Ruby API passes a String with the name of the method. The Python API passes the Group class directly."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"load 'openc3/script/suite.rb'\n\nclass ExampleGroup < OpenC3::Group\n def script_1\n # Insert test code here ...\n end\nend\nclass WrapperGroup < OpenC3::Group\n def setup\n # Insert test code here ...\n end\n def my_method\n # Insert test code here ...\n end\n def teardown\n # Insert test code here ...\n end\nend\n\nclass MySuite < OpenC3::Suite\n def initialize\n super()\n add_group('ExampleGroup')\n add_group_setup('WrapperGroup')\n add_script('WrapperGroup', 'my_method')\n add_group_teardown('WrapperGroup')\n end\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"from openc3.script import *\nfrom openc3.script.suite import Group, Suite\n\nclass ExampleGroup(Group):\n def script_1(self):\n # Insert test code here ...\n pass\nclass WrapperGroup(Group):\n def setup(self):\n # Insert test code here ...\n pass\n def my_method(self):\n # Insert test code here ...\n pass\n def teardown(self):\n # Insert test code here ...\n pass\nclass MySuite(Suite):\n def __init__(self):\n super().__init__()\n self.add_group(ExampleGroup)\n self.add_group_setup(WrapperGroup)\n self.add_script(WrapperGroup, 'my_method')\n self.add_group_teardown(WrapperGroup)\n"})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-debugging",children:"Script Runner Debugging"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to debug scripts with ScriptRunner."}),"\n",(0,r.jsx)(t.h3,{id:"step_mode",children:"step_mode"}),"\n",(0,r.jsx)(t.p,{children:"Places ScriptRunner into step mode where Go must be hit to proceed to the next line."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"step_mode()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"run_mode",children:"run_mode"}),"\n",(0,r.jsx)(t.p,{children:"Places ScriptRunner into run mode where the next line is run automatically."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"run_mode()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_script",children:"disconnect_script"}),"\n",(0,r.jsx)(t.p,{children:"Puts scripting into disconnect mode. In disconnect mode, commands are not sent to targets, checks are all successful, and waits expire instantly. Requests for telemetry (tlm()) typically return 0. Disconnect mode is useful for dry-running scripts without having connected targets."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"disconnect_script()\n"})}),"\n",(0,r.jsx)(t.h2,{id:"metadata",children:"Metadata"}),"\n",(0,r.jsx)(t.p,{children:"Metadata allows you to mark the regular target / packet data logged in COSMOS with your own fields. This metadata can then be searched and used to filter data when using other COSMOS tools."}),"\n",(0,r.jsx)(t.h3,{id:"metadata_all",children:"metadata_all"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_all()\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"limit"}),(0,r.jsx)(t.td,{children:"Amount of metadata items to return. Default is 100."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_all(limit: 500)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_all(limit='500')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_get",children:"metadata_get"}),"\n",(0,r.jsx)(t.p,{children:"Returns metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_get(start)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to retrieve metadata as integer seconds from epoch"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_get(start: 500)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_get(start='500')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_set",children:"metadata_set"}),"\n",(0,r.jsx)(t.p,{children:"Returns metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_set(<Metadata>, start, color)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Metadata"}),(0,r.jsx)(t.td,{children:"Hash or dict of key value pairs to store as metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to store metadata. Default is now."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"color"}),(0,r.jsx)(t.td,{children:"Named parameter, color to display metadat in the calendar. Default is #003784."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_set({ 'key' => 'value' })\nmetadata_set({ 'key' => 'value' }, color: '#ff5252')\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_set({ 'key': 'value' })\nmetadata_set({ 'key': 'value' }, color='ff5252')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_update",children:"metadata_update"}),"\n",(0,r.jsx)(t.p,{children:"Updates metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_update(<Metadata>, start, color)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Metadata"}),(0,r.jsx)(t.td,{children:"Hash or dict of key value pairs to update as metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to update metadata. Default is latest metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"color"}),(0,r.jsx)(t.td,{children:"Named parameter, color to display metadat in the calendar. Default is #003784."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_update({ 'key' => 'value' })\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_update({ 'key': 'value' })\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_input",children:"metadata_input"}),"\n",(0,r.jsx)(t.p,{children:"Prompts the user to set existing metadata values or create new a new one."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_input()\n"})}),"\n",(0,r.jsx)(t.h2,{id:"settings",children:"Settings"}),"\n",(0,r.jsx)(t.p,{children:"COSMOS has several settings typically accessed through the Admin Settings tab. These APIs allow programmatic access to those same settings."}),"\n",(0,r.jsx)(t.h3,{id:"list_settings",children:"list_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return all the current COSMOS setting name. These are the names that should be used in the other APIs."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'puts list_settings() #=> ["pypi_url", "rubygems_url", "source_url", "version"]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(list_settings()) #=> ['pypi_url', 'rubygems_url', 'source_url', 'version']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_settings",children:"get_all_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return all the current COSMOS settings along with their values."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'puts get_all_settings() #=>\n# { "version"=>{"name"=>"version", "data"=>"5.11.4-beta0", "updated_at"=>1698074299509456507},\n# "pypi_url"=>{"name"=>"pypi_url", "data"=>"https://pypi.org/simple", "updated_at"=>1698026776574347007},\n# "rubygems_url"=>{"name"=>"rubygems_url", "data"=>"https://rubygems.org", "updated_at"=>1698026776574105465},\n# "source_url"=>{"name"=>"source_url", "data"=>"https://github.com/OpenC3/cosmos", "updated_at"=>1698026776573904132} }\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(get_all_settings()) #=>\n# { 'version': {'name': 'version', 'data': '5.11.4-beta0', 'updated_at': 1698074299509456507},\n# 'pypi_url': {'name': 'pypi_url', 'data': 'https://pypi.org/simple', 'updated_at': 1698026776574347007},\n# 'rubygems_url': {'name': 'rubygems_url', 'data': 'https://rubygems.org', 'updated_at': 1698026776574105465},\n# 'source_url': {'name': 'source_url', 'data': 'https://github.com/OpenC3/cosmos', 'updated_at': 1698026776573904132} }\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_setting-get_settings",children:"get_setting, get_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return the data from the given COSMOS setting. Returns nil (Ruby) or None (Python) if the setting does not exist."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_setting(<Setting Name>)\nget_settings(<Setting Name1>, <Setting Name2>, ...)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Name"}),(0,r.jsx)(t.td,{children:"Name of the setting to return"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"puts get_setting('version') #=> \"5.11.4-beta0\"\nputs get_settings('version', 'rubygems_url') #=> [\"5.11.4-beta0\", \"https://rubygems.org\"]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(get_setting('version')) #=> '5.11.4-beta0'\nprint(get_setting('version', 'rubygems_url')) #=> ['5.11.4-beta0', 'https://rubygems.org']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_setting",children:"set_setting"}),"\n",(0,r.jsx)(t.p,{children:"Sets the given setting value."}),"\n",(0,r.jsx)(t.admonition,{title:"Admin Passwork Required",type:"note",children:(0,r.jsx)(t.p,{children:"This API is only accessible externally (not within Script Runner) and requires the admin password."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_setting(<Setting Name>, <Setting Value>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Name"}),(0,r.jsx)(t.td,{children:"Name of the setting to change"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Value"}),(0,r.jsx)(t.td,{children:"Setting value to set"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_setting('rubygems_url', 'https://mygemserver')\nputs get_settings('rubygems_url') #=> \"https://mygemserver\"\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"set_setting('pypi_url', 'https://mypypiserver')\nprint(get_settings('pypi_url')) #=> 'https://mypypiserver'\n"})}),"\n",(0,r.jsx)(t.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsx)(t.p,{children:"Many COSMOS tools have the ability to load and save a configuration. These APIs allow you to programatically load and save the configuration."}),"\n",(0,r.jsx)(t.h3,{id:"config_tool_names",children:"config_tool_names"}),"\n",(0,r.jsx)(t.p,{children:"List all the configuration tool names which are used as the first parameter in the other APIs."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'names = config_tool_names()\npp names #=> ["telemetry_grapher", "data_viewer"]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"names = config_tool_names()\nprint(names) #=> ['telemetry_grapher', 'data_viewer']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"list_configs",children:"list_configs"}),"\n",(0,r.jsx)(t.p,{children:"List all the saved configuration names under the given tool name."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"list_configs(<Tool Name>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool to retrieve configuration names from"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"configs = list_configs('telemetry_grapher')\npp configs #=> ['adcs', 'temps']\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"configs = list_configs('telemetry_grapher')\nprint(configs) #=> ['adcs', 'temps']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"load_config",children:"load_config"}),"\n",(0,r.jsx)(t.p,{children:"Load a particular tool configuration."}),"\n",(0,r.jsx)(t.admonition,{title:"Tool Configuration",type:"note",children:(0,r.jsx)(t.p,{children:"Tool configurations are not fully documented and subject to change between releases. Only modify values returned by load_config and do not change any keys."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"load_config(<Tool Name>, <Configuration Name>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'config = load_config(\'telemetry_grapher\', \'adcs\')\nprint(config) #=>\n# [ {\n# "items": [\n# {\n# "targetName": "INST",\n# "packetName": "ADCS",\n# "itemName": "CCSDSVER",\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"save_config",children:"save_config"}),"\n",(0,r.jsx)(t.p,{children:"Save a particular tool configuration."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"save_config(<Tool Name>, <Configuration Name>, local_mode)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"local_mode"}),(0,r.jsx)(t.td,{children:"Whether to save the configuration in local mode"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"save_config('telemetry_grapher', 'adcs', config)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"delete_config",children:"delete_config"}),"\n",(0,r.jsx)(t.p,{children:"Delete a particular tool configuration."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"delete_config(<Tool Name>, <Configuration Name>, local_mode)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"local_mode"}),(0,r.jsx)(t.td,{children:"Whether to delete the configuration in local mode"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"delete_config('telemetry_grapher', 'adcs')\n"})})]})}function o(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},5392:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>i});var r=n(2784);const s={},a=r.createContext(s);function i(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]);
1
+ "use strict";(self.webpackChunkdocs_openc3_com=self.webpackChunkdocs_openc3_com||[]).push([[3940],{888:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>i,default:()=>o,frontMatter:()=>a,metadata:()=>l,toc:()=>c});var r=n(2322),s=n(5392);const a={title:"Scripting API Guide"},i=void 0,l={id:"guides/scripting-api",title:"Scripting API Guide",description:"This document provides the information necessary to write test procedures using the COSMOS scripting API. Scripting in COSMOS is designed to be simple and intuitive. The code completion ability for command and telemetry mnemonics makes Script Runner the ideal place to write your procedures, however any text editor will do. If there is functionality that you don't see here or perhaps an easier syntax for doing something, please submit a ticket.",source:"@site/docs/guides/scripting-api.md",sourceDirName:"guides",slug:"/guides/scripting-api",permalink:"/tools/staticdocs/docs/guides/scripting-api",draft:!1,unlisted:!1,editUrl:"https://github.com/OpenC3/cosmos/tree/main/docs.openc3.com/docs/guides/scripting-api.md",tags:[],version:"current",frontMatter:{title:"Scripting API Guide"},sidebar:"defaultSidebar",previous:{title:"Script Writing Guide",permalink:"/tools/staticdocs/docs/guides/script-writing"},next:{title:"Development",permalink:"/tools/staticdocs/docs/development"}},d={},c=[{value:"Concepts",id:"concepts",level:2},{value:"Programming Languages",id:"programming-languages",level:3},{value:"Using Script Runner",id:"using-script-runner",level:3},{value:"Telemetry Types",id:"telemetry-types",level:3},{value:"Script Runner API",id:"script-runner-api",level:2},{value:"Migration from COSMOS v4",id:"migration-from-cosmos-v4",level:3},{value:"Retrieving User Input",id:"retrieving-user-input",level:2},{value:"ask",id:"ask",level:3},{value:"ask_string",id:"ask_string",level:3},{value:"message_box",id:"message_box",level:3},{value:"vertical_message_box",id:"vertical_message_box",level:3},{value:"combo_box",id:"combo_box",level:3},{value:"get_target_file",id:"get_target_file",level:3},{value:"put_target_file",id:"put_target_file",level:3},{value:"delete_target_file",id:"delete_target_file",level:3},{value:"open_file_dialog",id:"open_file_dialog",level:3},{value:"open_files_dialog",id:"open_files_dialog",level:3},{value:"Providing information to the user",id:"providing-information-to-the-user",level:2},{value:"prompt",id:"prompt",level:3},{value:"Commands",id:"commands",level:2},{value:"cmd",id:"cmd",level:3},{value:"cmd_no_range_check",id:"cmd_no_range_check",level:3},{value:"cmd_no_hazardous_check",id:"cmd_no_hazardous_check",level:3},{value:"cmd_no_checks",id:"cmd_no_checks",level:3},{value:"cmd_raw",id:"cmd_raw",level:3},{value:"cmd_raw_no_range_check",id:"cmd_raw_no_range_check",level:3},{value:"cmd_raw_no_hazardous_check",id:"cmd_raw_no_hazardous_check",level:3},{value:"cmd_raw_no_checks",id:"cmd_raw_no_checks",level:3},{value:"build_cmd (since 5.13.0, since 5.8.0 as build_command)",id:"build_cmd-since-5130-since-580-as-build_command",level:3},{value:"send_raw",id:"send_raw",level:3},{value:"get_all_cmds (since 5.13.0, since 5.0.0 as get_all_commands)",id:"get_all_cmds-since-5130-since-500-as-get_all_commands",level:3},{value:"get_all_cmd_names (since 5.13.0, since 5.0.6 as get_all_command_names)",id:"get_all_cmd_names-since-5130-since-506-as-get_all_command_names",level:3},{value:"get_cmd (since 5.13.0, since 5.0.0 as get_command)",id:"get_cmd-since-5130-since-500-as-get_command",level:3},{value:"get_param (since 5.13.0, since 5.0.0 as get_parameter)",id:"get_param-since-5130-since-500-as-get_parameter",level:3},{value:"get_cmd_buffer",id:"get_cmd_buffer",level:3},{value:"get_cmd_hazardous",id:"get_cmd_hazardous",level:3},{value:"get_cmd_value",id:"get_cmd_value",level:3},{value:"get_cmd_time",id:"get_cmd_time",level:3},{value:"get_cmd_cnt",id:"get_cmd_cnt",level:3},{value:"Handling Telemetry",id:"handling-telemetry",level:2},{value:"check, check_raw, check_formatted, check_with_units",id:"check-check_raw-check_formatted-check_with_units",level:3},{value:"check_tolerance",id:"check_tolerance",level:3},{value:"check_expression",id:"check_expression",level:3},{value:"check_exception",id:"check_exception",level:3},{value:"tlm, tlm_raw, tlm_formatted, tlm_with_units",id:"tlm-tlm_raw-tlm_formatted-tlm_with_units",level:3},{value:"get_tlm_buffer",id:"get_tlm_buffer",level:3},{value:"get_tlm_packet",id:"get_tlm_packet",level:3},{value:"get_tlm_values (modified in 5.0.0)",id:"get_tlm_values-modified-in-500",level:3},{value:"get_all_tlm (since 5.13.0, since 5.0.0 as get_all_telemetry)",id:"get_all_tlm-since-5130-since-500-as-get_all_telemetry",level:3},{value:"get_all_tlm_names (since 5.13.0, since 5.0.6 as get_all_telemetry_names)",id:"get_all_tlm_names-since-5130-since-506-as-get_all_telemetry_names",level:3},{value:"get_tlm (since 5.13.0, since 5.0.0 as get_telemetry)",id:"get_tlm-since-5130-since-500-as-get_telemetry",level:3},{value:"get_item (since 5.0.0)",id:"get_item-since-500",level:3},{value:"get_tlm_cnt",id:"get_tlm_cnt",level:3},{value:"set_tlm",id:"set_tlm",level:3},{value:"inject_tlm",id:"inject_tlm",level:3},{value:"override_tlm",id:"override_tlm",level:3},{value:"normalize_tlm",id:"normalize_tlm",level:3},{value:"get_overrides",id:"get_overrides",level:3},{value:"Packet Data Subscriptions",id:"packet-data-subscriptions",level:2},{value:"subscribe_packets (since 5.0.3)",id:"subscribe_packets-since-503",level:3},{value:"get_packets (since 5.0.3)",id:"get_packets-since-503",level:3},{value:"get_tlm_cnt",id:"get_tlm_cnt-1",level:3},{value:"get_tlm_cnts",id:"get_tlm_cnts",level:3},{value:"get_packet_derived_items",id:"get_packet_derived_items",level:3},{value:"Delays",id:"delays",level:2},{value:"wait",id:"wait",level:3},{value:"wait_tolerance",id:"wait_tolerance",level:3},{value:"wait_expression",id:"wait_expression",level:3},{value:"wait_packet",id:"wait_packet",level:3},{value:"wait_check",id:"wait_check",level:3},{value:"wait_check_tolerance",id:"wait_check_tolerance",level:3},{value:"wait_check_expression",id:"wait_check_expression",level:3},{value:"wait_check_packet",id:"wait_check_packet",level:3},{value:"Limits",id:"limits",level:2},{value:"limits_enabled?, limits_enabled",id:"limits_enabled-limits_enabled",level:3},{value:"enable_limits",id:"enable_limits",level:3},{value:"disable_limits",id:"disable_limits",level:3},{value:"enable_limits_group",id:"enable_limits_group",level:3},{value:"disable_limits_group",id:"disable_limits_group",level:3},{value:"get_limits_groups",id:"get_limits_groups",level:3},{value:"set_limits_set",id:"set_limits_set",level:3},{value:"get_limits_set",id:"get_limits_set",level:3},{value:"get_limits_sets",id:"get_limits_sets",level:3},{value:"get_limits",id:"get_limits",level:3},{value:"set_limits",id:"set_limits",level:3},{value:"get_out_of_limits",id:"get_out_of_limits",level:3},{value:"get_overall_limits_state",id:"get_overall_limits_state",level:3},{value:"get_limits_events",id:"get_limits_events",level:3},{value:"Targets",id:"targets",level:2},{value:"get_target_names",id:"get_target_names",level:3},{value:"get_target",id:"get_target",level:3},{value:"get_target_interfaces",id:"get_target_interfaces",level:3},{value:"Interfaces",id:"interfaces",level:2},{value:"get_interface (since 5.0.0)",id:"get_interface-since-500",level:3},{value:"get_interface_names",id:"get_interface_names",level:3},{value:"connect_interface",id:"connect_interface",level:3},{value:"disconnect_interface",id:"disconnect_interface",level:3},{value:"start_raw_logging_interface",id:"start_raw_logging_interface",level:3},{value:"stop_raw_logging_interface",id:"stop_raw_logging_interface",level:3},{value:"get_all_interface_info",id:"get_all_interface_info",level:3},{value:"map_target_to_interface",id:"map_target_to_interface",level:3},{value:"interface_cmd",id:"interface_cmd",level:3},{value:"interface_protocol_cmd",id:"interface_protocol_cmd",level:3},{value:"Routers",id:"routers",level:2},{value:"connect_router",id:"connect_router",level:3},{value:"disconnect_router",id:"disconnect_router",level:3},{value:"get_router_names",id:"get_router_names",level:3},{value:"get_router (since 5.0.0)",id:"get_router-since-500",level:3},{value:"get_all_router_info",id:"get_all_router_info",level:3},{value:"start_raw_logging_router",id:"start_raw_logging_router",level:3},{value:"stop_raw_logging_router",id:"stop_raw_logging_router",level:3},{value:"router_cmd",id:"router_cmd",level:3},{value:"router_protocol_cmd",id:"router_protocol_cmd",level:3},{value:"Stashing Data",id:"stashing-data",level:2},{value:"stash_set",id:"stash_set",level:3},{value:"stash_get",id:"stash_get",level:3},{value:"stash_all",id:"stash_all",level:3},{value:"stash_keys",id:"stash_keys",level:3},{value:"stash_delete",id:"stash_delete",level:3},{value:"Executing Other Procedures",id:"executing-other-procedures",level:2},{value:"start",id:"start",level:3},{value:"load_utility",id:"load_utility",level:3},{value:"Opening, Closing &amp; Creating Telemetry Screens",id:"opening-closing--creating-telemetry-screens",level:2},{value:"display_screen",id:"display_screen",level:3},{value:"clear_screen",id:"clear_screen",level:3},{value:"clear_all_screens",id:"clear_all_screens",level:3},{value:"delete_screen",id:"delete_screen",level:3},{value:"get_screen_list",id:"get_screen_list",level:3},{value:"get_screen_definition",id:"get_screen_definition",level:3},{value:"create_screen",id:"create_screen",level:3},{value:"local_screen",id:"local_screen",level:3},{value:"Script Runner Settings",id:"script-runner-settings",level:2},{value:"set_line_delay",id:"set_line_delay",level:3},{value:"get_line_delay",id:"get_line_delay",level:3},{value:"set_max_output",id:"set_max_output",level:3},{value:"get_max_output",id:"get_max_output",level:3},{value:"disable_instrumentation",id:"disable_instrumentation",level:3},{value:"Script Runner Suites",id:"script-runner-suites",level:2},{value:"add_group, add_group_setup, add_group_teardown, add_script",id:"add_group-add_group_setup-add_group_teardown-add_script",level:3},{value:"Script Runner Debugging",id:"script-runner-debugging",level:2},{value:"step_mode",id:"step_mode",level:3},{value:"run_mode",id:"run_mode",level:3},{value:"disconnect_script",id:"disconnect_script",level:3},{value:"Metadata",id:"metadata",level:2},{value:"metadata_all",id:"metadata_all",level:3},{value:"metadata_get",id:"metadata_get",level:3},{value:"metadata_set",id:"metadata_set",level:3},{value:"metadata_update",id:"metadata_update",level:3},{value:"metadata_input",id:"metadata_input",level:3},{value:"Settings",id:"settings",level:2},{value:"list_settings",id:"list_settings",level:3},{value:"get_all_settings",id:"get_all_settings",level:3},{value:"get_setting, get_settings",id:"get_setting-get_settings",level:3},{value:"set_setting",id:"set_setting",level:3},{value:"Configuration",id:"configuration",level:2},{value:"config_tool_names",id:"config_tool_names",level:3},{value:"list_configs",id:"list_configs",level:3},{value:"load_config",id:"load_config",level:3},{value:"save_config",id:"save_config",level:3},{value:"delete_config",id:"delete_config",level:3}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.p,{children:"This document provides the information necessary to write test procedures using the COSMOS scripting API. Scripting in COSMOS is designed to be simple and intuitive. The code completion ability for command and telemetry mnemonics makes Script Runner the ideal place to write your procedures, however any text editor will do. If there is functionality that you don't see here or perhaps an easier syntax for doing something, please submit a ticket."}),"\n",(0,r.jsx)(t.h2,{id:"concepts",children:"Concepts"}),"\n",(0,r.jsx)(t.h3,{id:"programming-languages",children:"Programming Languages"}),"\n",(0,r.jsxs)(t.p,{children:["COSMOS scripting is implemented using either Ruby or Python. Ruby and Python are very similar scripting languages and in many cases the COSMOS APIs are identical between the two. This guide is written to support both with additional language specific information found in the ",(0,r.jsx)(t.a,{href:"/tools/staticdocs/docs/guides/script-writing",children:"Script Writing Guide"}),"."]}),"\n",(0,r.jsx)(t.h3,{id:"using-script-runner",children:"Using Script Runner"}),"\n",(0,r.jsx)(t.p,{children:"Script Runner is a graphical application that provides the ideal environment for running and implementing your test procedures. The Script Runner tool is broken into 4 main sections. At the top of the tool is a menu bar that allows you to do such things as open and save files, perform a syntax check, and execute your script."}),"\n",(0,r.jsx)(t.p,{children:'Next is a tool bar that displays the currently executing script and three buttons, "Start/Go", "Pause/Retry", and "Stop". The Start/Go button is used to start the script and continue past errors or waits. The Pause/Retry button will pause the executing script. If an error is encountered the Pause button changes to Retry to re-execute the errored line. Finally, the Stop button will stop the executing script at any time.'}),"\n",(0,r.jsx)(t.p,{children:"Third is the display of the actual script. While the script is not running, you may edit and compose scripts in this area. A handy code completion feature is provided that will list out the available commands or telemetry points as you are writing your script. Simply begin writing a cmd( or tlm( line to bring up code completion. This feature greatly reduces typos in command and telemetry mnemonics."}),"\n",(0,r.jsx)(t.p,{children:"Finally, the bottom of the display is the log messages. All commands that are sent, errors that occur, and user print statements appear in this area."}),"\n",(0,r.jsx)(t.h3,{id:"telemetry-types",children:"Telemetry Types"}),"\n",(0,r.jsx)(t.p,{children:"There are four different ways that telemetry values can be retrieved in COSMOS. The following chart explains their differences."}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Telemetry Type"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Raw"}),(0,r.jsx)(t.td,{children:"Raw telemetry is exactly as it is in the telemetry packet before any conversions. All telemetry items will have a raw value except for Derived telemetry points which have no real location in a packet. Requesting raw telemetry on a derived item will return nil."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Converted"}),(0,r.jsx)(t.td,{children:"Converted telemetry is raw telemetry that has gone through a conversion factor such as a state conversion or a polynomial conversion. If a telemetry item does not have a conversion defined, then converted telemetry will be the same as raw telemetry. This is the most common type of telemety used in scripts."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Formatted"}),(0,r.jsx)(t.td,{children:"Formatted telemetry is converted telemetry that has gone through a printf style conversion into a string. Formatted telemetry will always have a string representation. If no format string is defined for a telemetry point, then formatted telemetry will be the same as converted telemetry except represented as string."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Formatted with Units"}),(0,r.jsx)(t.td,{children:"Formatted with Units telemetry is the same as Formatted telemetry except that a space and the units of the telemetry item are appended to the end of the string. If no units are defined for a telemetry item then this type is the same as Formatted telemetry."})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-api",children:"Script Runner API"}),"\n",(0,r.jsx)(t.p,{children:"The following methods are designed to be used in Script Runner procedures. Many can also be used in custom built COSMOS tools. Please see the COSMOS Tool API section for methods that are more efficient to use in custom tools."}),"\n",(0,r.jsx)(t.h3,{id:"migration-from-cosmos-v4",children:"Migration from COSMOS v4"}),"\n",(0,r.jsx)(t.p,{children:"The following API methods are either deprecated (will not be ported to COSMOS 5) or currently unimplemented (eventually will be ported to COSMOS 5):"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Method"}),(0,r.jsx)(t.th,{children:"Tool"}),(0,r.jsx)(t.th,{children:"Status"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear_all"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_all_screens"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"close_local_screens"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use clear_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"clear_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_tlm_clear_counters"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_tlm_reload"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"display"}),(0,r.jsx)(t.td,{children:"Telemetry Viewer"}),(0,r.jsx)(t.td,{children:"Deprecated, use display_screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_packet_logger_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_target_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target_interfaces"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_background_tasks"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_cmd_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_cmds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_all_tlm_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_all_cmds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_param_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_cmd"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_cmd_tlm_disconnect"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use $disconnect"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_interface_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_interface_targets"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_output_logs_filenames"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_logger_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_packet_loggers"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_replay_mode"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_router_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_scriptrunner_message_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_message"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_message_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_server_status"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_stale"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_ignored_items"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_ignored_parameters"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_info"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_target_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_target_names"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_details"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_item_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_list"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"get_tlm_log_filename"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"interface_state"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"override_tlm_raw"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use override_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"open_directory_dialog"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_end"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_index"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_move_start"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_play"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_reverse_play"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_select_file"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_set_playback_delay"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_status"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_step_back"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_step_forward"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"replay_stop"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"require_utility"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated but exists for backwards compatibility, use load_utility"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"router_state"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use get_router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"save_file_dialog"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"save_setting"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated but exists for backwards compatibility, use set_setting"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_cmd_tlm_disconnect"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use disconnect_script"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_disconnected_targets"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_replay_mode"}),(0,r.jsx)(t.td,{children:"Replay"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_stdout_max_lines"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"set_tlm_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use set_tlm"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"show_backtrace"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, backtrace always shown"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"shutdown_cmd_tlm"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_cmd_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_logging"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_new_scriptrunner_message_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_new_server_message_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start_tlm_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_background_task"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_cmd_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_logging"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"stop_tlm_log"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_limits_events"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated, use subscribe_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"subscribe_server_messages"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Unimplemented"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"tlm_variable"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsx)(t.td,{children:"Deprecated, use tlm() and pass type"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_limits_events"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_packet_data"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unsubscribe_server_messages"}),(0,r.jsx)(t.td,{children:"Command and Telemetry Server"}),(0,r.jsx)(t.td,{children:"Deprecated"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_check_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_check(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_tolerance_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_tolerance(..., type: ",":RAW",")"]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"wait_check_tolerance_raw"}),(0,r.jsx)(t.td,{children:"Script Runner"}),(0,r.jsxs)(t.td,{children:["Deprecated, use wait_check_tolerance(..., type: ",":RAW",")"]})]})]})]}),"\n",(0,r.jsx)(t.h2,{id:"retrieving-user-input",children:"Retrieving User Input"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to enter values that are needed by the script."}),"\n",(0,r.jsx)(t.h3,{id:"ask",children:"ask"}),"\n",(0,r.jsx)(t.p,{children:'Prompts the user for input with a question. User input is automatically converted from a string to the appropriate data type. For example if the user enters "1", the number 1 as an integer will be returned.'}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'ask("<question>", <blank_or_default>, <password>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"question"}),(0,r.jsx)(t.td,{children:"Question to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"blank_or_default"}),(0,r.jsx)(t.td,{children:"Whether or not to allow empty responses (optional - defaults to false). If a non-boolean value is passed it is used as a default value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"password"}),(0,r.jsx)(t.td,{children:"Whether to treat the entry as a password which is displayed with dots and not logged. Default is false."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = ask("Enter an integer")\nvalue = ask("Enter a value or nothing", true)\nvalue = ask("Enter a value", 10)\npassword = ask("Enter your password", false, true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = ask("Enter an integer")\nvalue = ask("Enter a value or nothing", True)\nvalue = ask("Enter a value", 10)\npassword = ask("Enter your password", False, True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"ask_string",children:"ask_string"}),"\n",(0,r.jsx)(t.p,{children:'Prompts the user for input with a question. User input is always returned as a string. For exampe if the user enters "1", the string "1" will be returned.'}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'ask_string("<question>", <blank_or_default>, <password>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"question"}),(0,r.jsx)(t.td,{children:"Question to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"blank_or_default"}),(0,r.jsx)(t.td,{children:"Whether or not to allow empty responses (optional - defaults to false). If a non-boolean value is passed it is used as a default value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"password"}),(0,r.jsx)(t.td,{children:"Whether to treat the entry as a password which is displayed with dots and not logged. Default is false."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'string = ask_string("Enter a String")\nstring = ask_string("Enter a value or nothing", true)\nstring = ask_string("Enter a value", "test")\npassword = ask_string("Enter your password", false, true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'string = ask_string("Enter a String")\nstring = ask_string("Enter a value or nothing", True)\nstring = ask_string("Enter a value", "test")\npassword = ask_string("Enter your password", False, True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"message_box",children:"message_box"}),"\n",(0,r.jsx)(t.h3,{id:"vertical_message_box",children:"vertical_message_box"}),"\n",(0,r.jsx)(t.h3,{id:"combo_box",children:"combo_box"}),"\n",(0,r.jsx)(t.p,{children:"The message_box, vertical_message_box, and combo_box methods create a message box with arbitrary buttons or selections that the user can click. The text of the button clicked is returned."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'message_box("<message>", "<button text 1>", ...)\nvertical_message_box("<message>", "<button text 1>", ...)\ncombo_box("<message>", "<selection text 1>", ...)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"message"}),(0,r.jsx)(t.td,{children:"Message to prompt the user with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"button/selection text"}),(0,r.jsx)(t.td,{children:"Text for a button or selection"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"value = message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = vertical_message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = combo_box(\"Select the sensor number\", 'One', 'Two')\ncase value\nwhen 'One'\n puts 'Sensor One'\nwhen 'Two'\n puts 'Sensor Two'\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"value = message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = vertical_message_box(\"Select the sensor number\", 'One', 'Two')\nvalue = combo_box(\"Select the sensor number\", 'One', 'Two')\nmatch value:\n case 'One':\n print('Sensor One')\n case 'Two':\n print('Sensor Two')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_target_file",children:"get_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Return a file handle to a file in the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target_file("<File Path>", original: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target_file("<File Path>", original=False)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"original"}),(0,r.jsx)(t.td,{children:"Whether to get the original file from the plug-in, or any modifications to the file. Default is false which means to grab the modified file. If the modified file does not exist the API will automatically try to pull the original."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'file = get_target_file("INST/data/attitude.bin")\nputs file.read().formatted # format a binary file\nfile.unlink # delete file\nfile = get_target_file("INST/procedures/checks.rb", original: true)\nputs file.read()\nfile.unlink # delete file\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'from openc3.utilities.string import formatted\n\nfile = get_target_file("INST/data/attitude.bin")\nprint(formatted(file.read())) # format a binary file\nfile.close() # delete file\nfile = get_target_file("INST/procedures/checks.rb", original=True)\nprint(file.read())\nfile.close() # delete file\n'})}),"\n",(0,r.jsx)(t.h3,{id:"put_target_file",children:"put_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Writes a file to the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby or Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("<File Path>", "IO or String")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb. The file can previously exist or not. Note: The original file from the plug-in will not be modified, however existing modified files will be overwritten."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"data"}),(0,r.jsx)(t.td,{children:"The data can be an IO object or String"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("INST/test1.txt", "this is a string test")\nfile = Tempfile.new(\'test\')\nfile.write("this is a Io test")\nfile.rewind\nput_target_file("INST/test2.txt", file)\nput_target_file("INST/test3.bin", "\\x00\\x01\\x02\\x03\\xFF\\xEE\\xDD\\xCC") # binary\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'put_target_file("INST/test1.txt", "this is a string test")\nfile = tempfile.NamedTemporaryFile(mode="w+t")\nfile.write("this is a Io test")\nfile.seek(0)\nput_target_file("INST/test2.txt", file)\nput_target_file("INST/test3.bin", b"\\x00\\x01\\x02\\x03\\xFF\\xEE\\xDD\\xCC") # binary\n'})}),"\n",(0,r.jsx)(t.h3,{id:"delete_target_file",children:"delete_target_file"}),"\n",(0,r.jsx)(t.p,{children:"Delete a file in the target directory"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_target_file("<File Path>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"path"}),(0,r.jsx)(t.td,{children:"The path to the file in the target directory. Should assume to start with a TARGET name, e.g. INST/procedures/proc.rb. Note: Only files created with put_target_file can be deleted. Original files from the plugin installation will remain."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'put_target_file("INST/delete_me.txt", "to be deleted")\ndelete_target_file("INST/delete_me.txt")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"open_file_dialog",children:"open_file_dialog"}),"\n",(0,r.jsx)(t.h3,{id:"open_files_dialog",children:"open_files_dialog"}),"\n",(0,r.jsx)(t.p,{children:"The open_file_dialog and open_files_dialog methods create a file dialog box so the user can select a single or multiple files. The selected file(s) is returned."}),"\n",(0,r.jsx)(t.p,{children:"Note: COSMOS 5 has deprecated the save_file_dialog and open_directory_dialog methods. save_file_dialog can be replaced by put_target_file if you want to write a file back to the target. open_directory_dialog doesn't make sense in new architecture so you must request individual files."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'open_file_dialog("<title>", "<message>", filter: "<filter>")\nopen_files_dialog("<title>", "<message>", filter: "<filter>")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'open_file_dialog("<title>", "<message>", filter="<filter>")\nopen_files_dialog("<title>", "<message>", filter="<filter>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Title"}),(0,r.jsx)(t.td,{children:"The title to put on the dialog. Required."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Message"}),(0,r.jsx)(t.td,{children:"The message to display in the dialog box. Optional parameter."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"filter"}),(0,r.jsxs)(t.td,{children:['Named parameter to filter allowed file types. Optional parameter, specified as comma delimited file types, e.g. ".txt,.doc". See ',(0,r.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept",children:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept"})," for more information."]})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'file = open_file_dialog("Open a single file", "Choose something interesting", filter: ".txt")\nputs file # Ruby File object\nputs file.read\nfile.delete\n\nfiles = open_files_dialog("Open multiple files") # message is optional\nputs files # Array of File objects (even if you select only one)\nfiles.each do |file|\n puts file\n puts file.read\n file.delete\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'file = open_file_dialog("Open a single file", "Choose something interesting", filter=".txt")\nprint(file)\nprint(file.read())\nfile.close()\n\nfiles = open_files_dialog("Open multiple files") # message is optional\nprint(files) # Array of File objects (even if you select only one)\nfor file in files:\n print(file)\n print(file.read())\n file.close()\n'})}),"\n",(0,r.jsx)(t.h2,{id:"providing-information-to-the-user",children:"Providing information to the user"}),"\n",(0,r.jsx)(t.p,{children:"These methods notify the user that something has occurred."}),"\n",(0,r.jsx)(t.h3,{id:"prompt",children:"prompt"}),"\n",(0,r.jsx)(t.p,{children:"Displays a message to the user and waits for them to press an ok button."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'prompt("<message>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"message"}),(0,r.jsx)(t.td,{children:"Message to prompt the user with."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'prompt("Press OK to continue")\n'})}),"\n",(0,r.jsx)(t.h2,{id:"commands",children:"Commands"}),"\n",(0,r.jsx)(t.p,{children:"These methods provide capability to send commands to a target and receive information about commands in the system."}),"\n",(0,r.jsx)(t.h3,{id:"cmd",children:"cmd"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\n# In Ruby the brackets around parameters are optional\ncmd("INST", "COLLECT", "DURATION" => 10, "TYPE" => "NORMAL")\ncmd("INST", "COLLECT", { "DURATION" => 10, "TYPE" => "NORMAL" })\ncmd("INST ABORT", timeout: 10, log_message: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\ncmd("INST", "COLLECT", { "DURATION": 10, "TYPE": "NORMAL" })\ncmd("INST ABORT", timeout=10, log_message=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_range_check",children:"cmd_no_range_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing range checking on its parameters. This should only be used when it is necessary to intentionally send a bad command parameter to test a target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_range_check("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_range_check("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_range_check("INST COLLECT with DURATION 11, TYPE NORMAL")\ncmd_no_range_check("INST", "COLLECT", "DURATION" => 11, "TYPE" => "NORMAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_range_check("INST COLLECT with DURATION 11, TYPE NORMAL")\ncmd_no_range_check("INST", "COLLECT", {"DURATION": 11, "TYPE": "NORMAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_hazardous_check",children:"cmd_no_hazardous_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing the notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_hazardous_check("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_hazardous_check("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_hazardous_check("INST CLEAR")\ncmd_no_hazardous_check("INST", "CLEAR")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_no_checks",children:"cmd_no_checks"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without performing the parameter range checks or notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands that intentially have invalid parameters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_checks("<Target Name>", "<Command Name>", "Param #1 Name" => <Param #1 Value>, "Param #2 Name" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_no_checks("<Target Name>", "<Command Name>", {"Param #1 Name": <Param #1 Value>, "Param #2 Name": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_no_checks("INST COLLECT with DURATION 11, TYPE SPECIAL")\ncmd_no_checks("INST", "COLLECT", "DURATION" => 11, "TYPE" => "SPECIAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_no_checks("INST COLLECT with DURATION 11, TYPE SPECIAL")\ncmd_no_checks("INST", "COLLECT", {"DURATION": 11, "TYPE": "SPECIAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw",children:"cmd_raw"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw("INST COLLECT with DURATION 10, TYPE 0")\ncmd_raw("INST", "COLLECT", "DURATION" => 10, "TYPE" => 0)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw("INST COLLECT with DURATION 10, TYPE 0")\ncmd_raw("INST", "COLLECT", {"DURATION": 10, "TYPE": 0})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_range_check",children:"cmd_raw_no_range_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing range checking on its parameters. This should only be used when it is necessary to intentionally send a bad command parameter to test a target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_range_check("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_range_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_range_check("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_range_check("INST COLLECT with DURATION 11, TYPE 0")\ncmd_raw_no_range_check("INST", "COLLECT", "DURATION" => 11, "TYPE" => 0)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_range_check("INST COLLECT with DURATION 11, TYPE 0")\ncmd_raw_no_range_check("INST", "COLLECT", {"DURATION": 11, "TYPE": 0})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_hazardous_check",children:"cmd_raw_no_hazardous_check"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing the notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_hazardous_check("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_hazardous_check("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_hazardous_check("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_hazardous_check("INST CLEAR")\ncmd_raw_no_hazardous_check("INST", "CLEAR")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"cmd_raw_no_checks",children:"cmd_raw_no_checks"}),"\n",(0,r.jsx)(t.p,{children:"Sends a specified command without running conversions or performing the parameter range checks or notification if it is a hazardous command. This should only be used when it is necessary to fully automate testing involving hazardous commands that intentially have invalid parameters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_checks("<Target Name>", "<Command Name>", "<Param #1 Name>" => <Param #1 Value>, "<Param #2 Name>" => <Param #2 Value>, ...)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_checks("<Target Name> <Command Name> with <Param #1 Name> <Param #1 Value>, <Param #2 Name> <Param #2 Value>, ...")\ncmd_raw_no_checks("<Target Name>", "<Command Name>", {"<Param #1 Name>": <Param #1 Value>, "<Param #2 Name>": <Param #2 Value>, ...})\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target this command is associated with."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of this command. Also referred to as its mnemonic."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Name"}),(0,r.jsx)(t.td,{children:"Name of a command parameter. If there are no parameters then the 'with' keyword should not be given."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Param #x Value"}),(0,r.jsx)(t.td,{children:"Value of the command parameter. Values are automatically converted to the appropriate type."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"timeout"}),(0,r.jsx)(t.td,{children:"Optional named parameter to change the default timeout value of 5 seconds"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"log_message"}),(0,r.jsx)(t.td,{children:"Optional named parameter to prevent logging of the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_raw_no_checks("INST COLLECT with DURATION 11, TYPE 1")\ncmd_raw_no_checks("INST", "COLLECT", "DURATION" => 11, "TYPE" => 1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'cmd_raw_no_checks("INST COLLECT with DURATION 11, TYPE 1")\ncmd_raw_no_checks("INST", "COLLECT", {"DURATION": 11, "TYPE": 1})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"build_cmd-since-5130-since-580-as-build_command",children:"build_cmd (since 5.13.0, since 5.8.0 as build_command)"}),"\n",(0,r.jsx)(t.p,{children:"Builds a command binary string"}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"build_cmd(<ARGS>, range_check: true, raw: false)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"build_cmd(<ARGS>, range_check=True, raw=False)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"ARGS"}),(0,r.jsx)(t.td,{children:"Command parameters (see cmd)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"range_check"}),(0,r.jsx)(t.td,{children:"Whether to perform range checking on the command. Default is true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"raw"}),(0,r.jsx)(t.td,{children:"Whether to write the command arguments as RAW or CONVERTED value. Default is CONVERTED."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'x = build_cmd("INST COLLECT with DURATION 10, TYPE NORMAL")\nputs x #=> {"id"=>"1696437370872-0", "result"=>"SUCCESS", "time"=>"1696437370872305961", "received_time"=>"1696437370872305961", "target_name"=>"INST", "packet_name"=>"COLLECT", "received_count"=>"3", "buffer"=>"\\x13\\xE7\\xC0\\x00\\x00\\f\\x00\\x01\\x00\\x00A \\x00\\x00\\xAB\\x00\\x00\\x00\\x00"}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"x = build_cmd(\"INST COLLECT with DURATION 10, TYPE NORMAL\")\nprint(x) #=> {'id': '1697298167748-0', 'result': 'SUCCESS', 'time': '1697298167749155717', 'received_time': '1697298167749155717', 'target_name': 'INST', 'packet_name': 'COLLECT', 'received_count': '2', 'buffer': bytearray(b'\\x13\\xe7\\xc0\\x00\\x00\\x0c\\x00\\x01\\x00\\x00A \\x00\\x00\\xab\\x00\\x00\\x00\\x00')}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"send_raw",children:"send_raw"}),"\n",(0,r.jsx)(t.p,{children:"Sends raw data on an interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"send_raw(<Interface Name>, <Data>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface to send the raw data on."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Data"}),(0,r.jsx)(t.td,{children:"Raw ruby string of data to send."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'send_raw("INST_INT", data)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_cmds-since-5130-since-500-as-get_all_commands",children:"get_all_cmds (since 5.13.0, since 5.0.0 as get_all_commands)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the commands that are available for a particular target. The returned array is an array of hashes which fully describe the command packet."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_cmds("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_list = get_all_cmds("INST")\nputs cmd_list #=>\n# [{"target_name"=>"INST",\n# "packet_name"=>"ABORT",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Aborts a collect on the instrument",\n# "items"=> [{"name"=>"CCSDSVER", "bit_offset"=>0, "bit_size"=>3, ... }]\n# ...\n# }]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"cmd_list = get_all_cmds(\"INST\")\nprint(cmd_list) #=>\n# [{'target_name': 'INST',\n# 'packet_name': 'ABORT',\n# 'endianness': 'BIG_ENDIAN',\n# 'description': 'Aborts a collect on the INST instrument',\n# 'items': [{'name': 'CCSDSVER', 'bit_offset': 0, 'bit_size': 3, ... }]\n# ...\n# }]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_cmd_names-since-5130-since-506-as-get_all_command_names",children:"get_all_cmd_names (since 5.13.0, since 5.0.6 as get_all_command_names)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the command names for a particular target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_cmd_names("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"cmd_list = get_all_cmd_names(\"INST\")\nputs cmd_list #=> ['ABORT', 'ARYCMD', 'ASCIICMD', ...]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"cmd_list = get_all_cmd_names(\"INST\")\nprint(cmd_list) #=> ['ABORT', 'ARYCMD', 'ASCIICMD', ...]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd-since-5130-since-500-as-get_command",children:"get_cmd (since 5.13.0, since 5.0.0 as get_command)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a command hash which fully describes the command packet."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd("<Target Name> <Packet Name>")\nget_cmd("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'abort_cmd = get_cmd("INST ABORT")\nputs abort_cmd #=>\n# [{"target_name"=>"INST",\n# "packet_name"=>"ABORT",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Aborts a collect on the instrument",\n# "items"=> [{"name"=>"CCSDSVER", "bit_offset"=>0, "bit_size"=>3, ... }]\n# ...\n# }]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"abort_cmd = get_cmd(\"INST ABORT\")\nprint(abort_cmd) #=>\n# [{'target_name': 'INST',\n# 'packet_name': 'ABORT',\n# 'endianness': 'BIG_ENDIAN',\n# 'description': 'Aborts a collect on the INST instrument',\n# 'items': [{'name': 'CCSDSVER', 'bit_offset': 0, 'bit_size': 3, ... }]\n# ...\n# }]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_param-since-5130-since-500-as-get_parameter",children:"get_param (since 5.13.0, since 5.0.0 as get_parameter)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a hash of the given command parameter"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_param("<Target Name> <Command Name> <Parameter Name>")\nget_param("<Target Name>", "<Command Name>", "<Parameter Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Parameter Name"}),(0,r.jsx)(t.td,{children:"Name of the parameter."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'param = get_param("INST COLLECT TYPE")\nputs param #=>\n# {"name"=>"TYPE", "bit_offset"=>64, "bit_size"=>16, "data_type"=>"UINT",\n# "description"=>"Collect type which can be normal or special", "default"=>0,\n# "minimum"=>0, "maximum"=>65535, "endianness"=>"BIG_ENDIAN", "required"=>true, "overflow"=>"ERROR",\n# "states"=>{"NORMAL"=>{"value"=>0}, "SPECIAL"=>{"value"=>1, "hazardous"=>""}}, "limits"=>{}}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"param = get_param(\"INST COLLECT TYPE\")\nprint(param) #=>\n# {'name': 'TYPE', 'bit_offset': 64, 'bit_size': 16, 'data_type': 'UINT',\n# 'description': 'Collect type which can be normal or special', 'default': 0,\n# 'minimum': 0, 'maximum': 65535, 'endianness': 'BIG_ENDIAN', 'required': True, 'overflow': 'ERROR',\n# 'states': {'NORMAL': {'value': 0}, 'SPECIAL': {'value': 1, 'hazardous': ''}}, 'limits': {}}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_buffer",children:"get_cmd_buffer"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash (similar to get_cmd) along with the raw packet buffer as a Ruby string."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'buffer = get_cmd_buffer("<Target Name> <Packet Name>")[\'buffer\']\nbuffer = get_cmd_buffer("<Target Name>", "<Packet Name>")[\'buffer\']\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packet = get_cmd_buffer("INST COLLECT")\nputs packet #=>\n# {"time"=>"1697298846752053420", "received_time"=>"1697298846752053420",\n# "target_name"=>"INST", "packet_name"=>"COLLECT", "received_count"=>"20", "stored"=>"false",\n# "buffer"=>"\\x13\\xE7\\xC0\\x00\\x00\\f\\x00\\x01\\x00\\x00@\\xE0\\x00\\x00\\xAB\\x00\\x00\\x00\\x00"}\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"packet = get_cmd_buffer(\"INST COLLECT\")\nprint(packet) #=>\n# {'time': '1697298923745982470', 'received_time': '1697298923745982470',\n# 'target_name': 'INST', 'packet_name': 'COLLECT', 'received_count': '21', 'stored': 'false',\n# 'buffer': bytearray(b'\\x13\\xe7\\xc0\\x00\\x00\\x0c\\x00\\x01\\x00\\x00@\\xe0\\x00\\x00\\xab\\x00\\x00\\x00\\x00')}\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_hazardous",children:"get_cmd_hazardous"}),"\n",(0,r.jsx)(t.p,{children:"Returns true/false indicating whether a particular command is flagged as hazardous."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_hazardous("<Target Name>", "<Command Name>", <Command Params - optional>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Params"}),(0,r.jsx)(t.td,{children:"Hash of the parameters given to the command (optional). Note that some commands are only hazardous based on parameter states."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"hazardous = get_cmd_hazardous(\"INST\", \"COLLECT\", {'TYPE' => 'SPECIAL'})\nputs hazardous #=> true\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"hazardous = get_cmd_hazardous(\"INST\", \"COLLECT\", {'TYPE': 'SPECIAL'})\nprint(hazardous) #=> True\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_value",children:"get_cmd_value"}),"\n",(0,r.jsx)(t.p,{children:"Returns reads a value from the most recently sent command packet. The pseudo-parameters 'PACKET_TIMESECONDS', 'PACKET_TIMEFORMATTED', 'RECEIVED_COUNT', 'RECEIVED_TIMEFORMATTED', and 'RECEIVED_TIMESECONDS' are also supported."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_value("<Target Name>", "<Command Name>", "<Parameter Name>", <Value Type - optional>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Parameter Name"}),(0,r.jsx)(t.td,{children:"Name of the command parameter."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value Type"}),(0,r.jsx)(t.td,{children:"Value Type to read. RAW, CONVERTED, FORMATTED, or WITH_UNITS. NOTE: Symbol in Ruby and str in Python"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = get_cmd_value("INST", "COLLECT", "TEMP", :RAW)\nputs value #=> 0.0\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = get_cmd_value("INST", "COLLECT", "TEMP", "RAW")\nprint(value) #=> 0.0\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_time",children:"get_cmd_time"}),"\n",(0,r.jsx)(t.p,{children:"Returns the time of the most recent command sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_time("<Target Name - optional>", "<Command Name - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target. If not given, then the most recent command time to any target will be returned"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command. If not given, then the most recent command time to the given target will be returned"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target_name, command_name, time = get_cmd_time() # Name of the most recent command sent to any target and time\ntarget_name, command_name, time = get_cmd_time("INST") # Name of the most recent command sent to the INST target and time\ntarget_name, command_name, time = get_cmd_time("INST", "COLLECT") # Name of the most recent INST COLLECT command and time\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_cmd_cnt",children:"get_cmd_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Returns the number of times a specified command has been sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_cmd_cnt("<Target Name> <Command Name>")\nget_cmd_cnt("<Target Name>", "<Command Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'cmd_cnt = get_cmd_cnt("INST COLLECT") # Number of times the INST COLLECT command has been sent\n'})}),"\n",(0,r.jsx)(t.h2,{id:"handling-telemetry",children:"Handling Telemetry"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to interact with telemetry items."}),"\n",(0,r.jsx)(t.h3,{id:"check-check_raw-check_formatted-check_with_units",children:"check, check_raw, check_formatted, check_with_units"}),"\n",(0,r.jsx)(t.p,{children:"Performs a verification of a telemetry item using its specified telemetry type. If the verification fails then the script will be paused with an error. If no comparision is given to check then the telemetry item is simply printed to the script output. Note: In most cases using wait_check is a better choice than using check."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check("<Target Name> <Packet Name> <Item Name> <Comparison - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item. If a comparison is not given then the telemetry item will just be printed into the script log."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check("INST HEALTH_STATUS COLLECTS > 1")\ncheck_raw("INST HEALTH_STATUS COLLECTS > 1")\ncheck_formatted("INST HEALTH_STATUS COLLECTS > 1")\ncheck_with_units("INST HEALTH_STATUS COLLECTS > 1")\n# Ruby passes type as symbol\ncheck("INST HEALTH_STATUS COLLECTS > 1", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check("INST HEALTH_STATUS COLLECTS > 1")\ncheck_raw("INST HEALTH_STATUS COLLECTS > 1")\ncheck_formatted("INST HEALTH_STATUS COLLECTS > 1")\ncheck_with_units("INST HEALTH_STATUS COLLECTS > 1")\n# Python passes type as string\ncheck("INST HEALTH_STATUS COLLECTS > 1", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"check_tolerance",children:"check_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Checks a converted telemetry item against an expected value with a tolerance. If the verification fails then the script will be paused with an error. Note: In most cases using wait_check_tolerance is a better choice than using check_tolerance."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"CONVERTED (default) or RAW (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0)\ncheck_tolerance("INST HEALTH_STATUS TEMP1", 50000, 20000, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0)\ncheck_tolerance("INST HEALTH_STATUS TEMP1", 50000, 20000, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"check_expression",children:"check_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Evaluates an expression. If the expression evaluates to false the script will be paused with an error. This method can be used to perform more complicated comparisons than using check as shown in the example. Note: In most cases using ",(0,r.jsx)(t.a,{href:"#waitcheckexpression",children:"wait_check_expression"})," is a better choice than using check_expression."]}),"\n",(0,r.jsx)(t.p,{children:"Remember that everything inside the check_expression string will be evaluated directly and thus must be valid syntax. A common mistake is to check a variable like so (Ruby variable interpolation):"}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"check_expression(\"#{answer} == 'yes'\") # where answer contains 'yes'"})}),"\n",(0,r.jsxs)(t.p,{children:["This evaluates to ",(0,r.jsx)(t.code,{children:"yes == 'yes'"})," which is not valid syntax because the variable yes is not defined (usually). The correct way to write this expression is as follows:"]}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.code,{children:"check_expression(\"'#{answer}' == 'yes'\") # where answer contains 'yes'"})}),"\n",(0,r.jsxs)(t.p,{children:["Now this evaluates to ",(0,r.jsx)(t.code,{children:"'yes' == 'yes'"})," which is true so the check passes."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_expression("<Expression>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"An expression to evaluate."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"check_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\")\n"})}),"\n",(0,r.jsx)(t.h3,{id:"check_exception",children:"check_exception"}),"\n",(0,r.jsx)(t.p,{children:"Executes a method and expects an exception to be raised. If the method does not raise an exception, a CheckError is raised."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_exception("<Method Name>", "<Method Params - optional>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method Name"}),(0,r.jsx)(t.td,{children:"The COSMOS scripting method to execute, e.g. 'cmd', etc."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method Params"}),(0,r.jsx)(t.td,{children:"Parameters for the method"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'check_exception("cmd", "INST", "COLLECT", "TYPE" => "NORMAL")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'check_exception("cmd", "INST", "COLLECT", {"TYPE": "NORMAL"})\n'})}),"\n",(0,r.jsx)(t.h3,{id:"tlm-tlm_raw-tlm_formatted-tlm_with_units",children:"tlm, tlm_raw, tlm_formatted, tlm_with_units"}),"\n",(0,r.jsx)(t.p,{children:"Reads the specified form of a telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'tlm("<Target Name> <Packet Name> <Item Name>")\ntlm("<Target Name>", "<Packet Name>", "<Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'value = tlm("INST HEALTH_STATUS COLLECTS")\nvalue = tlm("INST", "HEALTH_STATUS", "COLLECTS")\nvalue = tlm_raw("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_formatted("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_with_units("INST HEALTH_STATUS COLLECTS")\n# Equivalent to tlm_raw\nraw_value = tlm("INST HEALTH_STATUS COLLECTS", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'value = tlm("INST HEALTH_STATUS COLLECTS")\nvalue = tlm("INST", "HEALTH_STATUS", "COLLECTS")\nvalue = tlm_raw("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_formatted("INST HEALTH_STATUS COLLECTS")\nvalue = tlm_with_units("INST HEALTH_STATUS COLLECTS")\n# Equivalent to tlm_raw\nraw_value = tlm("INST HEALTH_STATUS COLLECTS", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_buffer",children:"get_tlm_buffer"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash (similar to get_tlm) along with the raw packet buffer."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'buffer = get_tlm_buffer("<Target Name> <Packet Name>")[\'buffer\']\nbuffer = get_tlm_buffer("<Target Name>", "<Packet Name>")[\'buffer\']\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"packet = get_tlm_buffer(\"INST HEALTH_STATUS\")\npacket['buffer']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_packet",children:"get_tlm_packet"}),"\n",(0,r.jsx)(t.p,{children:"Returns the names, values, and limits states of all telemetry items in a specified packet. The value is returned as an array of arrays with each entry containing [item_name, item_value, limits_state]."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_packet("<Target Name> <Packet Name>", <type>)\nget_tlm_packet("<Target Name>", "<Packet Name>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, or WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'names_values_and_limits_states = get_tlm_packet("INST HEALTH_STATUS", type: :FORMATTED)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"names_values_and_limits_states = get_tlm_packet(\"INST HEALTH_STATUS\", type='FORMATTED')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_values-modified-in-500",children:"get_tlm_values (modified in 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns the values and current limits state for a specified set of telemetry items. Items can be in any telemetry packet in the system. They can all be retrieved using the same value type or a specific value type can be specified for each item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"values, limits_states, limits_settings, limits_set = get_tlm_values(<Items>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Items"}),(0,r.jsx)(t.td,{children:"Array of strings of the form ['TGT__PKT__ITEM__TYPE', ... ]"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'values = get_tlm_values(["INST__HEALTH_STATUS__TEMP1__CONVERTED", "INST__HEALTH_STATUS__TEMP2__RAW"])\nprint(values) # [[-100.0, :RED_LOW], [0, :RED_LOW]]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_tlm-since-5130-since-500-as-get_all_telemetry",children:"get_all_tlm (since 5.13.0, since 5.0.0 as get_all_telemetry)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of all target packet hashes."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packets = get_all_tlm("INST")\nprint(packets)\n#[{"target_name"=>"INST",\n# "packet_name"=>"ADCS",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Position and attitude data",\n# "stale"=>true,\n# "items"=>\n# [{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_tlm_names-since-5130-since-506-as-get_all_telemetry_names",children:"get_all_tlm_names (since 5.13.0, since 5.0.6 as get_all_telemetry_names)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of all target packet names."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm_names("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_all_tlm_names("INST") #=> ["ADCS", "HEALTH_STATUS", ...]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm-since-5130-since-500-as-get_telemetry",children:"get_tlm (since 5.13.0, since 5.0.0 as get_telemetry)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a packet hash."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm("<Target Name> <Packet Name>")\nget_tlm("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'packet = get_tlm("INST HEALTH_STATUS")\nprint(packet)\n#{"target_name"=>"INST",\n# "packet_name"=>"HEALTH_STATUS",\n# "endianness"=>"BIG_ENDIAN",\n# "description"=>"Health and status from the instrument",\n# "stale"=>true,\n# "processors"=>\n# [{"name"=>"TEMP1STAT",\n# "class"=>"OpenC3::StatisticsProcessor",\n# "params"=>["TEMP1", 100, "CONVERTED"]},\n# {"name"=>"TEMP1WATER",\n# "class"=>"OpenC3::WatermarkProcessor",\n# "params"=>["TEMP1", "CONVERTED"]}],\n# "items"=>\n# [{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_item-since-500",children:"get_item (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an item hash."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_item("<Target Name> <Packet Name> <Item Name>")\nget_item("<Target Name>", "<Packet Name>", "<Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the packet."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'item = get_item("INST HEALTH_STATUS CCSDSVER")\nprint(item)\n#{"name"=>"CCSDSVER",\n# "bit_offset"=>0,\n# "bit_size"=>3,\n# "data_type"=>"UINT",\n# "description"=>"CCSDS packet version number (See CCSDS 133.0-B-1)",\n# "endianness"=>"BIG_ENDIAN",\n# "required"=>false,\n# "overflow"=>"ERROR"}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnt",children:"get_tlm_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Returns the number of times a specified telemetry packet has been received."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("<Target Name> <Packet Name>")\nget_tlm_cnt("<Target Name>", "<Packet Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'tlm_cnt = get_tlm_cnt("INST HEALTH_STATUS") # Number of times the INST HEALTH_STATUS telemetry packet has been received.\n'})}),"\n",(0,r.jsx)(t.h3,{id:"set_tlm",children:"set_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Sets a telemetry item value in the Command and Telemetry Server. This value will be overwritten if a new packet is received from an interface. For that reason this method is most useful if interfaces are disconnected or for testing via the Script Runner disconnect mode. Manually setting telemetry values allows for the execution of many logical paths in scripts."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_tlm("<Target> <Packet> <Item> = <Value>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Value type RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_tlm("INST HEALTH_STATUS COLLECTS = 5") # type is :CONVERTED by default\ncheck("INST HEALTH_STATUS COLLECTS == 5")\nset_tlm("INST HEALTH_STATUS COLLECTS = 10", type: :RAW)\ncheck("INST HEALTH_STATUS COLLECTS == 10", type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'set_tlm("INST HEALTH_STATUS COLLECTS = 5") # type is CONVERTED by default\ncheck("INST HEALTH_STATUS COLLECTS == 5")\nset_tlm("INST HEALTH_STATUS COLLECTS = 10", type=\'RAW\')\ncheck("INST HEALTH_STATUS COLLECTS == 10", type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"inject_tlm",children:"inject_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Injects a packet into the system as if it was received from an interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Packet Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'inject_tlm("<target_name>", "<packet_name>", <item_hash>, <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Hash"}),(0,r.jsx)(t.td,{children:"Hash of item name/value for each item. If an item is not specified in the hash, the current value table value will be used. Optional parameter, defaults to nil."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type of values in the item hash, RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"inject_tlm(\"INST\", \"PARAMS\", {'VALUE1' => 5.0, 'VALUE2' => 7.0})\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"inject_tlm(\"INST\", \"PARAMS\", {'VALUE1': 5.0, 'VALUE2': 7.0})\n"})}),"\n",(0,r.jsx)(t.h3,{id:"override_tlm",children:"override_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Sets the converted value for a telmetry point in the Command and Telemetry Server. This value will be maintained even if a new packet is received on the interface unless the override is canceled with the normalize_tlm method."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("<Target> <Packet> <Item> = <Value>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type to override, ALL (default), RAW, CONVERTED, FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5") # All requests for TEMP1 return 5\noverride_tlm("INST HEALTH_STATUS TEMP2 = 0", type: :RAW) # Only RAW tlm set to 0\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5") # All requests for TEMP1 return 5\noverride_tlm("INST HEALTH_STATUS TEMP2 = 0", type=\'RAW\') # Only RAW tlm set to 0\n'})}),"\n",(0,r.jsx)(t.h3,{id:"normalize_tlm",children:"normalize_tlm"}),"\n",(0,r.jsx)(t.p,{children:"Clears the override of a telmetry point in the Command and Telemetry Server."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'normalize_tlm("<Target> <Packet> <Item>", <type>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item"}),(0,r.jsx)(t.td,{children:"Item name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Type to normalize, ALL (default), RAW, CONVERTED, FORMATTED, WITH_UNITS (Ruby symbol, Python string)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'normalize_tlm("INST HEALTH_STATUS TEMP1") # clear all overrides\nnormalize_tlm("INST HEALTH_STATUS TEMP1", type: :RAW) # clear only the RAW override\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'normalize_tlm("INST HEALTH_STATUS TEMP1") # clear all overrides\nnormalize_tlm("INST HEALTH_STATUS TEMP1", type=\'RAW\') # clear only the RAW override\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_overrides",children:"get_overrides"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array of the the currently overriden values set by override_tlm. NOTE: This returns all the value types that are overriden which by default is all 4 values types when using override_tlm."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_overrides()\n"})}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'override_tlm("INST HEALTH_STATUS TEMP1 = 5")\nputs get_overrides() #=>\n# [ {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"RAW", "value"=>5}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"CONVERTED", "value"=>5}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"FORMATTED", "value"=>"5"}\n# {"target_name"=>"INST", "packet_name"=>"HEALTH_STATUS", "item_name"=>"TEMP1", "value_type"=>"WITH_UNITS", "value"=>"5"} ]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"override_tlm(\"INST HEALTH_STATUS TEMP1 = 5\")\nprint(get_overrides()) #=>\n# [ {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'RAW', 'value': 5},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'CONVERTED', 'value': 5},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'FORMATTED', 'value': '5'},\n# {'target_name': 'INST', 'packet_name': 'HEALTH_STATUS', 'item_name': 'TEMP1', 'value_type': 'WITH_UNITS', 'value': '5'} ]\n"})}),"\n",(0,r.jsx)(t.h2,{id:"packet-data-subscriptions",children:"Packet Data Subscriptions"}),"\n",(0,r.jsx)(t.p,{children:"Methods for subscribing to specific packets of data. This provides an interface to ensure that each telemetry packet is received and handled rather than relying on polling where some data may be missed."}),"\n",(0,r.jsx)(t.h3,{id:"subscribe_packets-since-503",children:"subscribe_packets (since 5.0.3)"}),"\n",(0,r.jsx)(t.p,{children:"Allows the user to listen for one or more telemetry packets of data to arrive. A unique id is returned which is used to retrieve the data."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"subscribe_packets(packets)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"packets"}),(0,r.jsx)(t.td,{children:"Nested array of target name/packet name pairs that the user wishes to subscribe to."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_packets-since-503",children:"get_packets (since 5.0.3)"}),"\n",(0,r.jsx)(t.p,{children:"Streams packet data from a previous subscription."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_packets(id, block: nil, count: 1000)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"get_packets(id, block=None, count=1000)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"id"}),(0,r.jsx)(t.td,{children:"Unique id returned by subscribe_packets"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"block"}),(0,r.jsx)(t.td,{children:"Number of milliseconds to block while waiting for packets form ANY stream, default nil / None (do not block)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"count"}),(0,r.jsx)(t.td,{children:"Maximum number of packets to return from EACH packet stream"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\nwait 0.1\nid, packets = get_packets(id)\npackets.each do |packet|\n puts \"#{packet['PACKET_TIMESECONDS']}: #{packet['target_name']} #{packet['packet_name']}\"\nend\n# Reuse ID from last call, allow for 1s wait, only get 1 packet\nid, packets = get_packets(id, block: 1000, count: 1)\npackets.each do |packet|\n puts \"#{packet['PACKET_TIMESECONDS']}: #{packet['target_name']} #{packet['packet_name']}\"\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"id = subscribe_packets([['INST', 'HEALTH_STATUS'], ['INST', 'ADCS']])\nwait(0.1)\nid, packets = get_packets(id)\nfor packet in packets:\n print(f\"{packet['PACKET_TIMESECONDS']}: {packet['target_name']} {packet['packet_name']}\")\n\n# Reuse ID from last call, allow for 1s wait, only get 1 packet\nid, packets = get_packets(id, block=1000, count=1)\nfor packet in packets:\n print(f\"{packet['PACKET_TIMESECONDS']}: {packet['target_name']} {packet['packet_name']}\")\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnt-1",children:"get_tlm_cnt"}),"\n",(0,r.jsx)(t.p,{children:"Get the receive count for a telemetry packet"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("<Target> <Packet>")\nget_tlm_cnt("<Target>", "<Packet>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnt("INST HEALTH_STATUS") #=> 10\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_tlm_cnts",children:"get_tlm_cnts"}),"\n",(0,r.jsx)(t.p,{children:"Get the receive counts for an array of telemetry packets"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnts([["<Target>", "<Packet>"], ["<Target>", "<Packet>"]])\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_tlm_cnts([["INST", "ADCS"], ["INST", "HEALTH_STATUS"]]) #=> [100, 10]\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_packet_derived_items",children:"get_packet_derived_items"}),"\n",(0,r.jsx)(t.p,{children:"Get the list of derived telemetry items for a packet"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_packet_derived_items("<Target> <Packet>")\nget_packet_derived_items("<Target>", "<Packet>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"Target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"Packet name"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_packet_derived_items(\"INST HEALTH_STATUS\") #=> ['PACKET_TIMESECONDS', 'PACKET_TIMEFORMATTED', ...]\n"})}),"\n",(0,r.jsx)(t.h2,{id:"delays",children:"Delays"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to pause the script to wait for telemetry to change or for an amount of time to pass."}),"\n",(0,r.jsx)(t.h3,{id:"wait",children:"wait"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time (minimum 10ms) or until a converted telemetry item meets given criteria. It supports three different syntaxes as shown. If no parameters are given then an infinite wait occurs until the user presses Go. Note that on a timeout, wait does not stop the script, usually wait_check is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait()\nwait(<Time>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Time"}),(0,r.jsx)(t.td,{children:"Time in Seconds to delay for."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait("<Target Name> <Packet Name> <Item Name> <Comparison>", <Timeout>, <Polling Rate (optional)>, type, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait\nwait 5\nwait("INST HEALTH_STATUS COLLECTS == 3", 10)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10, type: :RAW, quiet: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait()\nwait(5)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10)\nwait("INST HEALTH_STATUS COLLECTS == 3", 10, type=\'RAW\', quiet=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_tolerance",children:"wait_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time or until a converted telemetry item meets equals an expected value within a tolerance. Note that on a timeout, wait_tolerance does not stop the script, usually wait_check_tolerance is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>, <Timeout>, <Polling Rate (optional), type, quiet>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Examples:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type: :RAW, quiet: true)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Examples:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type=\'RAW\', quiet=True)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_expression",children:"wait_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Pauses the script until an expression is evaluated to be true or a timeout occurs. If a timeout occurs the script will continue. This method can be used to perform more complicated comparisons than using wait as shown in the example. Note that on a timeout, wait_expression does not stop the script, usually ",(0,r.jsx)(t.a,{href:"#waitcheckexpression",children:"wait_check_expression"})," is a better choice."]}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_expression("<Expression>", <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"A ruby expression to evaluate."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will proceed if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\", 10)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_packet",children:"wait_packet"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script until a certain number of packets have been received. If a timeout occurs the script will continue. Note that on a timeout, wait_packet does not stop the script, usually wait_check_packet is a better choice."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_packet("<Target>", "<Packet>", <Num Packets>, <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"The target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"The packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Num Packets"}),(0,r.jsx)(t.td,{children:"The number of packets to receive"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_packet('INST', 'HEALTH_STATUS', 5, 10) # Wait for 5 INST HEALTH_STATUS packets over 10s\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check",children:"wait_check"}),"\n",(0,r.jsx)(t.p,{children:"Combines the wait and check keywords into one. This pauses the script until the converted value of a telemetry item meets given criteria or times out. On a timeout the script stops."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check("<Target Name> <Packet Name> <Item Name> <Comparison>", <Timeout>, <Polling Rate (optional)>, type)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Comparison"}),(0,r.jsx)(t.td,{children:"A comparison to perform against the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check("INST HEALTH_STATUS COLLECTS > 5", 10)\nwait_check("INST HEALTH_STATUS COLLECTS > 5", 10, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_check("INST HEALTH_STATUS COLLECTS > 5", 10)\nwait_check("INST HEALTH_STATUS COLLECTS > 5", 10, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_tolerance",children:"wait_check_tolerance"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script for a configurable amount of time or until a converted telemetry item equals an expected value within a tolerance. On a timeout the script stops."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_tolerance("<Target Name> <Packet Name> <Item Name>", <Expected Value>, <Tolerance>, <Timeout>, <Polling Rate (optional)>, type)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expected Value"}),(0,r.jsx)(t.td,{children:"Expected value of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tolerance"}),(0,r.jsx)(t.td,{children:"\xb1 Tolerance on the expected value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"type"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the type. RAW, CONVERTED (default), FORMATTED, WITH_UNITS (Ruby symbol, Python string)."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type: :RAW)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'wait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10)\nwait_check_tolerance("INST HEALTH_STATUS COLLECTS", 10.0, 5.0, 10, type=\'RAW\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_expression",children:"wait_check_expression"}),"\n",(0,r.jsxs)(t.p,{children:["Pauses the script until an expression is evaluated to be true or a timeout occurs. If a timeout occurs the script will stop. This method can be used to perform more complicated comparisons than using wait as shown in the example. Also see the syntax notes for ",(0,r.jsx)(t.a,{href:"#checkexpression",children:"check_expression"}),"."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_expression("<Expression>", <Timeout>, <Polling Rate (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Expression"}),(0,r.jsx)(t.td,{children:"A ruby expression to evaluate."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting for the comparison to be true."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_check_expression(\"tlm('INST HEALTH_STATUS COLLECTS') > 5 and tlm('INST HEALTH_STATUS TEMP1') > 25.0\", 10)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"wait_check_packet",children:"wait_check_packet"}),"\n",(0,r.jsx)(t.p,{children:"Pauses the script until a certain number of packets have been received. If a timeout occurs the script will stop."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'wait_check_packet("<Target>", "<Packet>", <Num Packets>, <Timeout>, <Polling Rate (optional)>, quiet)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target"}),(0,r.jsx)(t.td,{children:"The target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet"}),(0,r.jsx)(t.td,{children:"The packet name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Num Packets"}),(0,r.jsx)(t.td,{children:"The number of packets to receive"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Timeout"}),(0,r.jsx)(t.td,{children:"Timeout in seconds. Script will stop if the wait statement times out waiting specified number of packets."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Polling Rate"}),(0,r.jsx)(t.td,{children:"How often the comparison is evaluated in seconds. Defaults to 0.25 if not specified."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"quiet"}),(0,r.jsx)(t.td,{children:"Named parameter indicating whether to log the result. Defaults to true."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"wait_check_packet('INST', 'HEALTH_STATUS', 5, 10) # Wait for 5 INST HEALTH_STATUS packets over 10s\n"})}),"\n",(0,r.jsx)(t.h2,{id:"limits",children:"Limits"}),"\n",(0,r.jsx)(t.p,{children:"These methods deal with handling telemetry limits."}),"\n",(0,r.jsx)(t.h3,{id:"limits_enabled-limits_enabled",children:"limits_enabled?, limits_enabled"}),"\n",(0,r.jsx)(t.p,{children:"The limits_enabled? method returns true/false depending on whether limits are enabled for a telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'limits_enabled?("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'limits_enabled("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enabled = limits_enabled?("INST HEALTH_STATUS TEMP1") #=> true or false\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'enabled = limits_enabled("INST HEALTH_STATUS TEMP1") #=> True or False\n'})}),"\n",(0,r.jsx)(t.h3,{id:"enable_limits",children:"enable_limits"}),"\n",(0,r.jsx)(t.p,{children:"Enables limits monitoring for the specified telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits("INST HEALTH_STATUS TEMP1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disable_limits",children:"disable_limits"}),"\n",(0,r.jsx)(t.p,{children:"Disables limits monitoring for the specified telemetry item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits("<Target Name> <Packet Name> <Item Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits("INST HEALTH_STATUS TEMP1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"enable_limits_group",children:"enable_limits_group"}),"\n",(0,r.jsx)(t.p,{children:"Enables limits monitoring on a set of telemetry items specified in a limits group."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits_group("<Limits Group Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Group Name"}),(0,r.jsx)(t.td,{children:"Name of the limits group."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'enable_limits_group("SAFE_MODE")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disable_limits_group",children:"disable_limits_group"}),"\n",(0,r.jsx)(t.p,{children:"Disables limits monitoring on a set of telemetry items specified in a limits group."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits_group("<Limits Group Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Group Name"}),(0,r.jsx)(t.td,{children:"Name of the limits group."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disable_limits_group("SAFE_MODE")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_groups",children:"get_limits_groups"}),"\n",(0,r.jsx)(t.p,{children:"Returns the list of limits groups in the system."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_groups = get_limits_groups()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_limits_set",children:"set_limits_set"}),"\n",(0,r.jsx)(t.p,{children:"Sets the current limits set. The default limits set is DEFAULT."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_limits_set("<Limits Set Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set Name"}),(0,r.jsx)(t.td,{children:"Name of the limits set."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'set_limits_set("DEFAULT")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_set",children:"get_limits_set"}),"\n",(0,r.jsx)(t.p,{children:"Returns the name of the current limits set. The default limits set is DEFAULT."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_set = get_limits_set()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_sets",children:"get_limits_sets"}),"\n",(0,r.jsx)(t.p,{children:"Returns the list of limits sets in the system."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_sets = get_limits_sets()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits",children:"get_limits"}),"\n",(0,r.jsx)(t.p,{children:"Returns limits settings for a telemetry point."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_limits(<Target Name>, <Packet Name>, <Item Name>, <Limits Set (optional)>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set"}),(0,r.jsx)(t.td,{children:"Get the limits for a specific limits set. If not given then it defaults to returning the settings for the current limits set."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"limits_set, persistence_setting, enabled, red_low, yellow_low, yellow_high, red_high, green_low, green_high = get_limits('INST', 'HEALTH_STATUS', 'TEMP1')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_limits",children:"set_limits"}),"\n",(0,r.jsx)(t.p,{children:"The set_limits_method sets limits settings for a telemetry point. Note: In most cases it would be better to update your config files or use different limits sets rather than changing limits settings in realtime."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_limits(<Target Name>, <Packet Name>, <Item Name>, <Red Low>, <Yellow Low>, <Yellow High>, <Red High>, <Green Low (optional)>, <Green High (optional)>, <Limits Set (optional)>, <Persistence (optional)>, <Enabled (optional)>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Packet Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry packet of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Item Name"}),(0,r.jsx)(t.td,{children:"Name of the telemetry item."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Red Low"}),(0,r.jsx)(t.td,{children:"Red Low setting for this limits set. Any value below this value will be make the item red."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Yellow Low"}),(0,r.jsx)(t.td,{children:"Yellow Low setting for this limits set. Any value below this value but greater than Red Low will be make the item yellow."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Yellow High"}),(0,r.jsx)(t.td,{children:"Yellow High setting for this limits set. Any value above this value but less than Red High will be make the item yellow."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Red High"}),(0,r.jsx)(t.td,{children:"Red High setting for this limits set. Any value above this value will be make the item red."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Green Low"}),(0,r.jsx)(t.td,{children:"Optional. If given, any value greater than Green Low and less than Green_High will make the item blue indicating a good operational value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Green High"}),(0,r.jsx)(t.td,{children:"Optional. If given, any value greater than Green Low and less than Green_High will make the item blue indicating a good operational value."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Limits Set"}),(0,r.jsx)(t.td,{children:"Optional. Set the limits for a specific limits set. If not given then it defaults to setting limts for the CUSTOM limits set."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Persistence"}),(0,r.jsx)(t.td,{children:"Optional. Set the number of samples this item must be out of limits before changing limits state. Defaults to no change. Note: This affects all limits settings across limits sets."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Enabled"}),(0,r.jsx)(t.td,{children:"Optional. Whether or not limits are enabled for this item. Defaults to true. Note: This affects all limits settings across limits sets."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_limits('INST', 'HEALTH_STATUS', 'TEMP1', -10.0, 0.0, 50.0, 60.0, 30.0, 40.0, 'TVAC', 1, true)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_out_of_limits",children:"get_out_of_limits"}),"\n",(0,r.jsx)(t.p,{children:"Returns an array with the target_name, packet_name, item_name, and limits_state of all items that are out of their limits ranges."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"out_of_limits_items = get_out_of_limits()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_overall_limits_state",children:"get_overall_limits_state"}),"\n",(0,r.jsx)(t.p,{children:"Returns the overall limits state for the COSMOS system. Returns 'GREEN', 'YELLOW', or 'RED'."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_overall_limits_state(<Ignored Items> (optional))\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Ignored Items"}),(0,r.jsx)(t.td,{children:"Array of arrays with items to ignore when determining the overall limits state. [['TARGET_NAME', 'PACKET_NAME', 'ITEM_NAME'], ...]"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"overall_limits_state = get_overall_limits_state()\noverall_limits_state = get_overall_limits_state([['INST', 'HEALTH_STATUS', 'TEMP1']])\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_limits_events",children:"get_limits_events"}),"\n",(0,r.jsx)(t.p,{children:"Returns limits events based on an offset returned from the last time it was called."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_limits_event(<Offset>, count)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Offset"}),(0,r.jsx)(t.td,{children:"Offset returned by the previous call to get_limits_event. Default is nil for the initial call"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"count"}),(0,r.jsx)(t.td,{children:"Named parameter specifying the maximum number of limits events to return. Default is 100"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'events = get_limits_event()\nprint(events)\n#[["1613077715557-0",\n# {"type"=>"LIMITS_CHANGE",\n# "target_name"=>"TGT",\n# "packet_name"=>"PKT",\n# "item_name"=>"ITEM",\n# "old_limits_state"=>"YELLOW_LOW",\n# "new_limits_state"=>"RED_LOW",\n# "time_nsec"=>"1",\n# "message"=>"message"}],\n# ["1613077715557-1",\n# {"type"=>"LIMITS_CHANGE",\n# "target_name"=>"TGT",\n# "packet_name"=>"PKT",\n# "item_name"=>"ITEM",\n# "old_limits_state"=>"RED_LOW",\n# "new_limits_state"=>"YELLOW_LOW",\n# "time_nsec"=>"2",\n# "message"=>"message"}]]\n# The last offset is the first item ([0]) in the last event ([-1])\nevents = get_limits_event(events[-1][0])\nprint(events)\n#[["1613077715657-0",\n# {"type"=>"LIMITS_CHANGE",\n# ...\n'})}),"\n",(0,r.jsx)(t.h2,{id:"targets",children:"Targets"}),"\n",(0,r.jsx)(t.p,{children:"Methods for getting knowledge about targets."}),"\n",(0,r.jsx)(t.h3,{id:"get_target_names",children:"get_target_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the targets in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"targets = get_target_names() #=> ['INST', 'INST2', 'EXAMPLE', 'TEMPLATED']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_target",children:"get_target"}),"\n",(0,r.jsx)(t.p,{children:"Returns a target hash containing all the information about the target."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_target("<Target Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target = get_target("INST")\nprint(target)\n#{"name"=>"INST",\n# "folder_name"=>"INST",\n# "requires"=>[],\n# "ignored_parameters"=>\n# ["CCSDSVER",\n# "CCSDSTYPE",\n# "CCSDSSHF",\n# "CCSDSAPID",\n# "CCSDSSEQFLAGS",\n# "CCSDSSEQCNT",\n# "CCSDSLENGTH",\n# "PKTID"],\n# "ignored_items"=>\n# ["CCSDSVER",\n# "CCSDSTYPE",\n# "CCSDSSHF",\n# "CCSDSAPID",\n# "CCSDSSEQFLAGS",\n# "CCSDSSEQCNT",\n# "CCSDSLENGTH",\n# "RECEIVED_COUNT",\n# "RECEIVED_TIMESECONDS",\n# "RECEIVED_TIMEFORMATTED"],\n# "limits_groups"=>[],\n# "cmd_tlm_files"=>\n# [".../targets/INST/cmd_tlm/inst_cmds.txt",\n# ".../targets/INST/cmd_tlm/inst_tlm.txt"],\n# "cmd_unique_id_mode"=>false,\n# "tlm_unique_id_mode"=>false,\n# "id"=>nil,\n# "updated_at"=>1613077058266815900,\n# "plugin"=>nil}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_target_interfaces",children:"get_target_interfaces"}),"\n",(0,r.jsx)(t.p,{children:"Returns the interfaces for all targets. The return value is an array of arrays where each subarray contains the target name, and a String of all the interface names."}),"\n",(0,r.jsx)(t.p,{children:"Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'target_ints = get_target_interfaces()\ntarget_ints.each do |target_name, interfaces|\n puts "Target: #{target_name}, Interfaces: #{interfaces}"\nend\n'})}),"\n",(0,r.jsx)(t.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to manipulate COSMOS interfaces."}),"\n",(0,r.jsx)(t.h3,{id:"get_interface-since-500",children:"get_interface (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns an interface status including the as built interface and its current status (cmd/tlm counters, etc)."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{children:'get_interface("<Interface Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface = get_interface("INST_INT")\nprint(interface)\n#{"name"=>"INST_INT",\n# "config_params"=>["interface.rb"],\n# "target_names"=>["INST"],\n# "connect_on_startup"=>true,\n# "auto_reconnect"=>true,\n# "reconnect_delay"=>5.0,\n# "disable_disconnect"=>false,\n# "options"=>[],\n# "protocols"=>[],\n# "log"=>true,\n# "log_raw"=>false,\n# "plugin"=>nil,\n# "updated_at"=>1613076213535979900,\n# "state"=>"CONNECTED",\n# "clients"=>0,\n# "txsize"=>0,\n# "rxsize"=>0,\n# "txbytes"=>0,\n# "rxbytes"=>0,\n# "txcnt"=>0,\n# "rxcnt"=>0}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_interface_names",children:"get_interface_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the interfaces in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"interface_names = get_interface_names() #=> ['INST_INT', 'INST2_INT', 'EXAMPLE_INT', 'TEMPLATED_INT']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"connect_interface",children:"connect_interface"}),"\n",(0,r.jsx)(t.p,{children:"Connects to targets associated with a COSMOS interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_interface("<Interface Name>", <Interface Parameters (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Parameters"}),(0,r.jsx)(t.td,{children:"Parameters used to initialize the interface. If none are given then the interface will use the parameters that were given in the server configuration file."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_interface("INT1")\nconnect_interface("INT1", hostname, port)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_interface",children:"disconnect_interface"}),"\n",(0,r.jsx)(t.p,{children:"Disconnects from targets associated with a COSMOS interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_interface("<Interface Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_interface("INT1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"start_raw_logging_interface",children:"start_raw_logging_interface"}),"\n",(0,r.jsx)(t.p,{children:"Starts logging of raw data on one or all interfaces. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_interface("<Interface Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the Interface to command to start raw data logging. Defaults to 'ALL' which causes all interfaces that support raw data logging to start logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_interface("int1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"stop_raw_logging_interface",children:"stop_raw_logging_interface"}),"\n",(0,r.jsx)(t.p,{children:"Stops logging of raw data on one or all interfaces. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_interface("<Interface Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the Interface to command to stop raw data logging. Defaults to 'ALL' which causes all interfaces that support raw data logging to stop logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_interface("int1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_interface_info",children:"get_all_interface_info"}),"\n",(0,r.jsx)(t.p,{children:"Returns information about all interfaces. The return value is an array of arrays where each subarray contains the interface name, connection state, number of connected clients, transmit queue size, receive queue size, bytes transmitted, bytes received, command count, and telemetry count."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_info = get_all_interface_info()\ninterface_info.each do |interface_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, cmd_count, tlm_count|\n puts "Interface: #{interface_name}, Connection state: #{connection_state}, Num connected clients: #{num_clients}"\n puts "Transmit queue size: #{tx_q_size}, Receive queue size: #{rx_q_size}, Bytes transmitted: #{tx_bytes}, Bytes received: #{rx_bytes}"\n puts "Cmd count: #{cmd_count}, Tlm count: #{tlm_count}"\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'interface_info = get_all_interface_info()\nfor interface in interface_info():\n # [interface_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, cmd_count, tlm_count]\n print(f"Interface: {interface[0]}, Connection state: {interface[1]}, Num connected clients: {interface[2]}")\n print(f"Transmit queue size: {interface[3]}, Receive queue size: {interface[4]}, Bytes transmitted: {interface[5]}, Bytes received: {interface[6]}")\n print(f"Cmd count: {interface[7]}, Tlm count: {interface[8]}")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"map_target_to_interface",children:"map_target_to_interface"}),"\n",(0,r.jsx)(t.p,{children:"Map a target to an interface allowing target commands and telemetry to be processed by that interface."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'map_target_to_interface("<Target Name>", "<Interface Name>", cmd_only, tlm_only, unmap_old)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Name of the target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"cmd_only"}),(0,r.jsx)(t.td,{children:"Named parameter whether to map target commands only to the interface (default: false)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"tlm_only"}),(0,r.jsx)(t.td,{children:"Named parameter whether to map target telemetry only to the interface (default: false)"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"unmap_old"}),(0,r.jsx)(t.td,{children:"Named parameter whether remove the target from all existing interfaces (default: true)"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'map_target_to_interface("INST", "INST_INT", unmap_old: false)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'map_target_to_interface("INST", "INST_INT", unmap_old=False)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"interface_cmd",children:"interface_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an interface. This has no effect in the standard COSMOS interfaces but can be implemented by a custom interface to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_cmd("<Interface Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_cmd("INST", "DISABLE_CRC")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"interface_protocol_cmd",children:"interface_protocol_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an interface protocol. This has no effect in the standard COSMOS protocols but can be implemented by a custom protocol to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_protocol_cmd("<Interface Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Interface Name"}),(0,r.jsx)(t.td,{children:"Name of the interface"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"read_write"}),(0,r.jsx)(t.td,{children:"Whether command gets send to read or write protocols. Must be one of READ, WRITE, or READ_WRITE (Ruby symbols, Python strings). The default is READ_WRITE."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"index"}),(0,r.jsx)(t.td,{children:"Which protocol in the stack the command should apply to. The default is -1 which applies the command to all."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'interface_protocol_cmd("INST", "DISABLE_CRC", read_write: :READ_WRITE, index: -1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'interface_protocol_cmd("INST", "DISABLE_CRC", read_write=\'READ_WRITE\', index=-1)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"routers",children:"Routers"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to manipulate COSMOS routers."}),"\n",(0,r.jsx)(t.h3,{id:"connect_router",children:"connect_router"}),"\n",(0,r.jsx)(t.p,{children:"Connects a COSMOS router."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_router("<Router Name>", <Router Parameters (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Parameters"}),(0,r.jsx)(t.td,{children:"Parameters used to initialize the router. If none are given then the router will use the parameters that were given in the server configuration file."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'connect_ROUTER("INST_ROUTER")\nconnect_router("INST_ROUTER", 7779, 7779, nil, 10.0, \'PREIDENTIFIED\')\n'})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_router",children:"disconnect_router"}),"\n",(0,r.jsx)(t.p,{children:"Disconnects a COSMOS router."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_router("<Router Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'disconnect_router("INT1_ROUTER")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_router_names",children:"get_router_names"}),"\n",(0,r.jsx)(t.p,{children:"Returns a list of the routers in the system in an array."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"router_names = get_router_names() #=> ['ROUTER_INT']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_router-since-500",children:"get_router (since 5.0.0)"}),"\n",(0,r.jsx)(t.p,{children:"Returns a router status including the as built router and its current status (cmd/tlm counters, etc)."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_router("<Router Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router = get_router("ROUTER_INT")\nprint(router)\n#{"name"=>"ROUTER_INT",\n# "config_params"=>["router.rb"],\n# "target_names"=>["INST"],\n# "connect_on_startup"=>true,\n# "auto_reconnect"=>true,\n# "reconnect_delay"=>5.0,\n# "disable_disconnect"=>false,\n# "options"=>[],\n# "protocols"=>[],\n# "log"=>true,\n# "log_raw"=>false,\n# "plugin"=>nil,\n# "updated_at"=>1613076213535979900,\n# "state"=>"CONNECTED",\n# "clients"=>0,\n# "txsize"=>0,\n# "rxsize"=>0,\n# "txbytes"=>0,\n# "rxbytes"=>0,\n# "txcnt"=>0,\n# "rxcnt"=>0}\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_router_info",children:"get_all_router_info"}),"\n",(0,r.jsx)(t.p,{children:"Returns information about all routers. The return value is an array of arrays where each subarray contains the router name, connection state, number of connected clients, transmit queue size, receive queue size, bytes transmitted, bytes received, packets received, and packets sent."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_info = get_all_router_info()\nrouter_info.each do |router_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, pkts_rcvd, pkts_sent|\n puts "Router: #{router_name}, Connection state: #{connection_state}, Num connected clients: #{num_clients}"\n puts "Transmit queue size: #{tx_q_size}, Receive queue size: #{rx_q_size}, Bytes transmitted: #{tx_bytes}, Bytes received: #{rx_bytes}"\n puts "Packets received: #{pkts_rcvd}, Packets sent: #{pkts_sent}"\nend\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'router_info = get_all_router_info()\n# router_name, connection_state, num_clients, tx_q_size, rx_q_size, tx_bytes, rx_bytes, pkts_rcvd, pkts_sent\nfor router in router_info:\n print(f"Router: {router[0]}, Connection state: {router[1]}, Num connected clients: {router[2]}")\n print(f"Transmit queue size: {router[3]}, Receive queue size: {router[4]}, Bytes transmitted: {router[5]}, Bytes received: {router[6]}")\n print(f"Packets received: {router[7]}, Packets sent: {router[8]}")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"start_raw_logging_router",children:"start_raw_logging_router"}),"\n",(0,r.jsx)(t.p,{children:"Starts logging of raw data on one or all routers. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_router("<Router Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the Router to command to start raw data logging. Defaults to 'ALL' which causes all routers that support raw data logging to start logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start_raw_logging_router("router1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"stop_raw_logging_router",children:"stop_raw_logging_router"}),"\n",(0,r.jsx)(t.p,{children:"Stops logging of raw data on one or all routers. This is for debugging purposes only."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_router("<Router Name (optional)>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the Router to command to stop raw data logging. Defaults to 'ALL' which causes all routers that support raw data logging to stop logging raw data."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stop_raw_logging_router("router1")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"router_cmd",children:"router_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to a router. This has no effect in the standard COSMOS routers but can be implemented by a custom router to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_cmd("<Router Name>", "<Command Name>", "<Command Parameters>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_cmd("INST", "DISABLE_CRC")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"router_protocol_cmd",children:"router_protocol_cmd"}),"\n",(0,r.jsx)(t.p,{children:"Send a command directly to an router protocol. This has no effect in the standard COSMOS protocols but can be implemented by a custom protocol to change behavior."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_protocol_cmd("<Router Name>", "<Command Name>", "<Command Parameters>", read_write, index)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Router Name"}),(0,r.jsx)(t.td,{children:"Name of the router"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Name"}),(0,r.jsx)(t.td,{children:"Name of the command to send"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Command Parameters"}),(0,r.jsx)(t.td,{children:"Any parameters to send with the command"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"read_write"}),(0,r.jsx)(t.td,{children:"Whether command gets send to read or write protocols. Must be one of READ, WRITE, or READ_WRITE (Ruby symbols, Python strings). The default is READ_WRITE."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"index"}),(0,r.jsx)(t.td,{children:"Which protocol in the stack the command should apply to. The default is -1 which applies the command to all."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'router_protocol_cmd("INST", "DISABLE_CRC", read_write: :READ_WRITE, index: -1)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'router_protocol_cmd("INST", "DISABLE_CRC", read_write=\'READ_WRITE\', index=-1)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"stashing-data",children:"Stashing Data"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to store temporary data into COSMOS and retrieve it. The storage is implemented as a key / value storage (Ruby hash or Python dict). This can be used in scripts to store information that applies across multiple scripts or multiple runs of a single script."}),"\n",(0,r.jsx)(t.h3,{id:"stash_set",children:"stash_set"}),"\n",(0,r.jsx)(t.p,{children:"Sets a stash item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_set("<Stash Key>", <Stash Value>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to set"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Value"}),(0,r.jsx)(t.td,{children:"Value to set"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_set('run_count', 5)\nstash_set('setpoint', 23.4)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_get",children:"stash_get"}),"\n",(0,r.jsx)(t.p,{children:"Returns the specified stash item."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_get("<Stash Key>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to return"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_get('run_count') #=> 5\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_all",children:"stash_all"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the stash items as a Ruby hash or Python dict."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_all() #=> ['run_count' => 5, 'setpoint' => 23.4]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_all() #=> ['run_count': 5, 'setpoint': 23.4]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_keys",children:"stash_keys"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the stash keys."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"stash_keys() #=> ['run_count', 'setpoint']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"stash_delete",children:"stash_delete"}),"\n",(0,r.jsx)(t.p,{children:"Deletes a stash item. Note this actions is permanent!"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_delete("<Stash Key>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Stash Key"}),(0,r.jsx)(t.td,{children:"Name of the stash key to delete"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'stash_delete("run_count")\n'})}),"\n",(0,r.jsx)(t.h2,{id:"executing-other-procedures",children:"Executing Other Procedures"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to bring in files of subroutines and execute other test procedures."}),"\n",(0,r.jsx)(t.h3,{id:"start",children:"start"}),"\n",(0,r.jsx)(t.p,{children:"Starts execution of another high level test procedure. No parameters can be given to high level test procedures. If parameters are necessary, then consider using a subroutine."}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start("<Procedure Filename>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Procedure Filename"}),(0,r.jsx)(t.td,{children:"Name of the test procedure file. These files are normally in the procedures folder but may be anywhere in the Ruby search path. Additionally, absolute paths are supported."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'start("test1.rb")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"load_utility",children:"load_utility"}),"\n",(0,r.jsx)(t.p,{children:"Reads in a script file that contains useful subroutines for use in your test procedure. When these subroutines run in ScriptRunner or TestRunner, their lines will be highlighted. If you want to import subroutines but do not want their lines to be highlighted in ScriptRunner or TestRunner, use the standard Ruby 'load' or 'require' statement or Python 'import' statement."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'load_utility("TARGET/lib/<Utility Filename>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Utility Filename"}),(0,r.jsx)(t.td,{children:"Name of the script file containing subroutines including the .rb or .py extension. You need to include the full target name and path such as TARGET/lib/utility.rb"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'load_utility("TARGET/lib/mode_changes.rb") # Ruby\nload_utility("TARGET/lib/mode_changes.py") # Python\n'})}),"\n",(0,r.jsx)(t.h2,{id:"opening-closing--creating-telemetry-screens",children:"Opening, Closing & Creating Telemetry Screens"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to open, close or create unique telemetry screens from within a test procedure."}),"\n",(0,r.jsx)(t.h3,{id:"display_screen",children:"display_screen"}),"\n",(0,r.jsx)(t.p,{children:"Opens a telemetry screen at the specified position."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'display_screen("<Target Name>", "<Screen Name>", <X Position (optional)>, <Y Position (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"X Position"}),(0,r.jsx)(t.td,{children:"X coordinate for the upper left hand corner of the screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Y Position"}),(0,r.jsx)(t.td,{children:"Y coordinate for the upper left hand corner of the screen"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'display_screen("INST", "ADCS", 100, 200)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"clear_screen",children:"clear_screen"}),"\n",(0,r.jsx)(t.p,{children:"Closes an open telemetry screen."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'clear_screen("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'clear_screen("INST", "ADCS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"clear_all_screens",children:"clear_all_screens"}),"\n",(0,r.jsx)(t.p,{children:"Closes all open screens."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"clear_all_screens()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"delete_screen",children:"delete_screen"}),"\n",(0,r.jsx)(t.p,{children:"Deletes an existing Telemetry Viewer screen."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_screen("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'delete_screen("INST", "ADCS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"get_screen_list",children:"get_screen_list"}),"\n",(0,r.jsx)(t.p,{children:"The get_screen_list returns a list of available telemetry screens."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_screen_list() #=> ['INST ADCS', 'INST COMMANDING', ...]\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_screen_definition",children:"get_screen_definition"}),"\n",(0,r.jsx)(t.p,{children:"The get_screen_definition returns the text file contents of a telemetry screen definition."}),"\n",(0,r.jsx)(t.p,{children:"Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'get_screen_definition("<Target Name>", "<Screen Name>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_definition = get_screen_definition("INST", "HS")\n'})}),"\n",(0,r.jsx)(t.h3,{id:"create_screen",children:"create_screen"}),"\n",(0,r.jsx)(t.p,{children:"The create_screen allows you to create a screen directly from a script. This screen is saved to Telemetry Viewer for future use in that application."}),"\n",(0,r.jsx)(t.p,{children:"Python / Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'create_screen("<Target Name>", "<Screen Name>" "<Definition>")\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Target Name"}),(0,r.jsx)(t.td,{children:"Telemetry screen target name"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Definition"}),(0,r.jsx)(t.td,{children:"The entire screen definition as a String"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "New Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\ncreate_screen("INST", "LOCAL", screen_def)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "New Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\ncreate_screen("INST", "LOCAL", screen_def)\n'})}),"\n",(0,r.jsx)(t.h3,{id:"local_screen",children:"local_screen"}),"\n",(0,r.jsx)(t.p,{children:"The local_screen allows you to create a local screen directly from a script which is not permanently saved to the Telemetry Viewer screen list. This is useful for one off screens that help users interact with scripts."}),"\n",(0,r.jsx)(t.p,{children:"Python / Ruby Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'local_screen("<Screen Name>" "<Definition>", <X Position (optional)>, <Y Position (optional)>)\n'})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Screen Name"}),(0,r.jsx)(t.td,{children:"Screen name within the specified target"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Definition"}),(0,r.jsx)(t.td,{children:"The entire screen definition as a String"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"X Position"}),(0,r.jsx)(t.td,{children:"X coordinate for the upper left hand corner of the screen"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Y Position"}),(0,r.jsx)(t.td,{children:"Y coordinate for the upper left hand corner of the screen"})]})]})]}),"\n",(0,r.jsxs)(t.p,{children:["NOTE: It is possible to specify a X, Y location off the visible display. If you do so and try to re-create the screen it will not display (because it is already displayed). Try issuing a ",(0,r.jsx)(t.code,{children:"clear_all_screens()"})," first to clear any screens off the visible display space."]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "Local Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\nlocal_screen("TESTING", screen_def, 600, 75)\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:'screen_def = \'\n SCREEN AUTO AUTO 0.1 FIXED\n VERTICAL\n TITLE "Local Screen"\n VERTICALBOX\n LABELVALUE INST HEALTH_STATUS TEMP1\n END\n END\n\'\n# Here we pass in the screen definition as a string\nlocal_screen("TESTING", screen_def, 600, 75)\n'})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-settings",children:"Script Runner Settings"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to control various Script Runner settings."}),"\n",(0,r.jsx)(t.h3,{id:"set_line_delay",children:"set_line_delay"}),"\n",(0,r.jsx)(t.p,{children:"This method sets the line delay in script runner."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_line_delay(<Delay>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Delay"}),(0,r.jsx)(t.td,{children:"The amount of time script runner will wait between lines when executing a script, in seconds. Should be \u2265 0.0"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_line_delay(0.0)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_line_delay",children:"get_line_delay"}),"\n",(0,r.jsx)(t.p,{children:"The method gets the line delay that script runner is currently using."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"curr_line_delay = get_line_delay()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_max_output",children:"set_max_output"}),"\n",(0,r.jsx)(t.p,{children:"This method sets the maximum number of characters to display in Script Runner output before truncating. Default is 50,000 characters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_max_output(<Characters>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Characters"}),(0,r.jsx)(t.td,{children:"Number of characters to output before truncating"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_max_output(100)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_max_output",children:"get_max_output"}),"\n",(0,r.jsx)(t.p,{children:"The method gets the maximum number of characters to display in Script Runner output before truncating. Default is 50,000 characters."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"print(get_max_output()) #=> 50000\n"})}),"\n",(0,r.jsx)(t.h3,{id:"disable_instrumentation",children:"disable_instrumentation"}),"\n",(0,r.jsx)(t.p,{children:"Disables instrumentation for a block of code (line highlighting and exception catching). This is especially useful for speeding up loops that are very slow if lines are instrumented.\nConsider breaking code like this into a seperate file and using either require/load to read the file for the same effect while still allowing errors to be caught by your script."}),"\n",(0,r.jsx)(t.admonition,{title:"Use with Caution",type:"warning",children:(0,r.jsx)(t.p,{children:"Disabling instrumentation will cause any error that occurs while disabled to cause your script to completely stop."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"disable_instrumentation do\n 1000.times do\n # Don't want this to have to highlight 1000 times\n end\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"with disable_instrumentation():\n for x in range(1000):\n # Don't want this to have to highlight 1000 times\n"})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-suites",children:"Script Runner Suites"}),"\n",(0,r.jsxs)(t.p,{children:["Creating Script Runner suites utilizes APIs to add groups to the defined suites. For more information please see ",(0,r.jsx)(t.a,{href:"/tools/staticdocs/docs/tools/script-runner#running-script-suites",children:"running script suites"}),"."]}),"\n",(0,r.jsx)(t.h3,{id:"add_group-add_group_setup-add_group_teardown-add_script",children:"add_group, add_group_setup, add_group_teardown, add_script"}),"\n",(0,r.jsx)(t.p,{children:"Adds a group's methods to the suite. The add_group method adds all the group methods including setup, teardown, and all the methods starting with 'script_' or 'test_'. The add_group_setup method adds just the setup method defined in the group class. The add_group_teardown method adds just the teardown method defined in the group class. The add_script method adds an individual method to the suite. NOTE: add_script can add any method including those not named with 'script_' or 'test_'."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"add_group(<Group Class>)\nadd_group_setup(<Group Class>)\nadd_group_teardown(<Group Class>)\nadd_script(<Group Class>, <Method>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Group Class"}),(0,r.jsx)(t.td,{children:"Name of the previously defined class which inherits from the OpenC3 Group class. The Ruby API passes a String with the name of the group. The Python API passes the Group class directly."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Method"}),(0,r.jsx)(t.td,{children:"Name of the method in the OpenC3 Group class. The Ruby API passes a String with the name of the method. The Python API passes the Group class directly."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"load 'openc3/script/suite.rb'\n\nclass ExampleGroup < OpenC3::Group\n def script_1\n # Insert test code here ...\n end\nend\nclass WrapperGroup < OpenC3::Group\n def setup\n # Insert test code here ...\n end\n def my_method\n # Insert test code here ...\n end\n def teardown\n # Insert test code here ...\n end\nend\n\nclass MySuite < OpenC3::Suite\n def initialize\n super()\n add_group('ExampleGroup')\n add_group_setup('WrapperGroup')\n add_script('WrapperGroup', 'my_method')\n add_group_teardown('WrapperGroup')\n end\nend\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"from openc3.script import *\nfrom openc3.script.suite import Group, Suite\n\nclass ExampleGroup(Group):\n def script_1(self):\n # Insert test code here ...\n pass\nclass WrapperGroup(Group):\n def setup(self):\n # Insert test code here ...\n pass\n def my_method(self):\n # Insert test code here ...\n pass\n def teardown(self):\n # Insert test code here ...\n pass\nclass MySuite(Suite):\n def __init__(self):\n super().__init__()\n self.add_group(ExampleGroup)\n self.add_group_setup(WrapperGroup)\n self.add_script(WrapperGroup, 'my_method')\n self.add_group_teardown(WrapperGroup)\n"})}),"\n",(0,r.jsx)(t.h2,{id:"script-runner-debugging",children:"Script Runner Debugging"}),"\n",(0,r.jsx)(t.p,{children:"These methods allow the user to debug scripts with ScriptRunner."}),"\n",(0,r.jsx)(t.h3,{id:"step_mode",children:"step_mode"}),"\n",(0,r.jsx)(t.p,{children:"Places ScriptRunner into step mode where Go must be hit to proceed to the next line."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"step_mode()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"run_mode",children:"run_mode"}),"\n",(0,r.jsx)(t.p,{children:"Places ScriptRunner into run mode where the next line is run automatically."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"run_mode()\n"})}),"\n",(0,r.jsx)(t.h3,{id:"disconnect_script",children:"disconnect_script"}),"\n",(0,r.jsx)(t.p,{children:"Puts scripting into disconnect mode. In disconnect mode, commands are not sent to targets, checks are all successful, and waits expire instantly. Requests for telemetry (tlm()) typically return 0. Disconnect mode is useful for dry-running scripts without having connected targets."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"disconnect_script()\n"})}),"\n",(0,r.jsx)(t.h2,{id:"metadata",children:"Metadata"}),"\n",(0,r.jsx)(t.p,{children:"Metadata allows you to mark the regular target / packet data logged in COSMOS with your own fields. This metadata can then be searched and used to filter data when using other COSMOS tools."}),"\n",(0,r.jsx)(t.h3,{id:"metadata_all",children:"metadata_all"}),"\n",(0,r.jsx)(t.p,{children:"Returns all the metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_all()\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"limit"}),(0,r.jsx)(t.td,{children:"Amount of metadata items to return. Default is 100."})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_all(limit: 500)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_all(limit='500')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_get",children:"metadata_get"}),"\n",(0,r.jsx)(t.p,{children:"Returns metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_get(start)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to retrieve metadata as integer seconds from epoch"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_get(start: 500)\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_get(start='500')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_set",children:"metadata_set"}),"\n",(0,r.jsx)(t.p,{children:"Returns metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_set(<Metadata>, start, color)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Metadata"}),(0,r.jsx)(t.td,{children:"Hash or dict of key value pairs to store as metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to store metadata. Default is now."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"color"}),(0,r.jsx)(t.td,{children:"Named parameter, color to display metadat in the calendar. Default is #003784."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_set({ 'key' => 'value' })\nmetadata_set({ 'key' => 'value' }, color: '#ff5252')\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_set({ 'key': 'value' })\nmetadata_set({ 'key': 'value' }, color='ff5252')\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_update",children:"metadata_update"}),"\n",(0,r.jsx)(t.p,{children:"Updates metadata that was previously set"}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_update(<Metadata>, start, color)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Metadata"}),(0,r.jsx)(t.td,{children:"Hash or dict of key value pairs to update as metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"start"}),(0,r.jsx)(t.td,{children:"Named parameter, time at which to update metadata. Default is latest metadata."})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"color"}),(0,r.jsx)(t.td,{children:"Named parameter, color to display metadat in the calendar. Default is #003784."})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_update({ 'key' => 'value' })\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"metadata_update({ 'key': 'value' })\n"})}),"\n",(0,r.jsx)(t.h3,{id:"metadata_input",children:"metadata_input"}),"\n",(0,r.jsx)(t.p,{children:"Prompts the user to set existing metadata values or create new a new one."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"metadata_input()\n"})}),"\n",(0,r.jsx)(t.h2,{id:"settings",children:"Settings"}),"\n",(0,r.jsx)(t.p,{children:"COSMOS has several settings typically accessed through the Admin Settings tab. These APIs allow programmatic access to those same settings."}),"\n",(0,r.jsx)(t.h3,{id:"list_settings",children:"list_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return all the current COSMOS setting name. These are the names that should be used in the other APIs."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'puts list_settings() #=> ["pypi_url", "rubygems_url", "source_url", "version"]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(list_settings()) #=> ['pypi_url', 'rubygems_url', 'source_url', 'version']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_all_settings",children:"get_all_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return all the current COSMOS settings along with their values."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'puts get_all_settings() #=>\n# { "version"=>{"name"=>"version", "data"=>"5.11.4-beta0", "updated_at"=>1698074299509456507},\n# "pypi_url"=>{"name"=>"pypi_url", "data"=>"https://pypi.org/simple", "updated_at"=>1698026776574347007},\n# "rubygems_url"=>{"name"=>"rubygems_url", "data"=>"https://rubygems.org", "updated_at"=>1698026776574105465},\n# "source_url"=>{"name"=>"source_url", "data"=>"https://github.com/OpenC3/cosmos", "updated_at"=>1698026776573904132} }\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(get_all_settings()) #=>\n# { 'version': {'name': 'version', 'data': '5.11.4-beta0', 'updated_at': 1698074299509456507},\n# 'pypi_url': {'name': 'pypi_url', 'data': 'https://pypi.org/simple', 'updated_at': 1698026776574347007},\n# 'rubygems_url': {'name': 'rubygems_url', 'data': 'https://rubygems.org', 'updated_at': 1698026776574105465},\n# 'source_url': {'name': 'source_url', 'data': 'https://github.com/OpenC3/cosmos', 'updated_at': 1698026776573904132} }\n"})}),"\n",(0,r.jsx)(t.h3,{id:"get_setting-get_settings",children:"get_setting, get_settings"}),"\n",(0,r.jsx)(t.p,{children:"Return the data from the given COSMOS setting. Returns nil (Ruby) or None (Python) if the setting does not exist."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"get_setting(<Setting Name>)\nget_settings(<Setting Name1>, <Setting Name2>, ...)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Name"}),(0,r.jsx)(t.td,{children:"Name of the setting to return"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"puts get_setting('version') #=> \"5.11.4-beta0\"\nputs get_settings('version', 'rubygems_url') #=> [\"5.11.4-beta0\", \"https://rubygems.org\"]\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"print(get_setting('version')) #=> '5.11.4-beta0'\nprint(get_setting('version', 'rubygems_url')) #=> ['5.11.4-beta0', 'https://rubygems.org']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"set_setting",children:"set_setting"}),"\n",(0,r.jsx)(t.p,{children:"Sets the given setting value."}),"\n",(0,r.jsx)(t.admonition,{title:"Admin Passwork Required",type:"note",children:(0,r.jsx)(t.p,{children:"This API is only accessible externally (not within Script Runner) and requires the admin password."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_setting(<Setting Name>, <Setting Value>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Name"}),(0,r.jsx)(t.td,{children:"Name of the setting to change"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Setting Value"}),(0,r.jsx)(t.td,{children:"Setting value to set"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"set_setting('rubygems_url', 'https://mygemserver')\nputs get_settings('rubygems_url') #=> \"https://mygemserver\"\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"set_setting('pypi_url', 'https://mypypiserver')\nprint(get_settings('pypi_url')) #=> 'https://mypypiserver'\n"})}),"\n",(0,r.jsx)(t.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsx)(t.p,{children:"Many COSMOS tools have the ability to load and save a configuration. These APIs allow you to programatically load and save the configuration."}),"\n",(0,r.jsx)(t.h3,{id:"config_tool_names",children:"config_tool_names"}),"\n",(0,r.jsx)(t.p,{children:"List all the configuration tool names which are used as the first parameter in the other APIs."}),"\n",(0,r.jsx)(t.p,{children:"Ruby Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'names = config_tool_names()\npp names #=> ["telemetry_grapher", "data_viewer"]\n'})}),"\n",(0,r.jsx)(t.p,{children:"Python Syntax / Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"names = config_tool_names()\nprint(names) #=> ['telemetry_grapher', 'data_viewer']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"list_configs",children:"list_configs"}),"\n",(0,r.jsx)(t.p,{children:"List all the saved configuration names under the given tool name."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"list_configs(<Tool Name>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsx)(t.tbody,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool to retrieve configuration names from"})]})})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"configs = list_configs('telemetry_grapher')\npp configs #=> ['adcs', 'temps']\n"})}),"\n",(0,r.jsx)(t.p,{children:"Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-python",children:"configs = list_configs('telemetry_grapher')\nprint(configs) #=> ['adcs', 'temps']\n"})}),"\n",(0,r.jsx)(t.h3,{id:"load_config",children:"load_config"}),"\n",(0,r.jsx)(t.p,{children:"Load a particular tool configuration."}),"\n",(0,r.jsx)(t.admonition,{title:"Tool Configuration",type:"note",children:(0,r.jsx)(t.p,{children:"Tool configurations are not fully documented and subject to change between releases. Only modify values returned by load_config and do not change any keys."})}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"load_config(<Tool Name>, <Configuration Name>)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:'config = load_config(\'telemetry_grapher\', \'adcs\')\nprint(config) #=>\n# [ {\n# "items": [\n# {\n# "targetName": "INST",\n# "packetName": "ADCS",\n# "itemName": "CCSDSVER",\n# ...\n'})}),"\n",(0,r.jsx)(t.h3,{id:"save_config",children:"save_config"}),"\n",(0,r.jsx)(t.p,{children:"Save a particular tool configuration."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"save_config(<Tool Name>, <Configuration Name>, local_mode)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"local_mode"}),(0,r.jsx)(t.td,{children:"Whether to save the configuration in local mode"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"save_config('telemetry_grapher', 'adcs', config)\n"})}),"\n",(0,r.jsx)(t.h3,{id:"delete_config",children:"delete_config"}),"\n",(0,r.jsx)(t.p,{children:"Delete a particular tool configuration."}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Syntax:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"delete_config(<Tool Name>, <Configuration Name>, local_mode)\n"})}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Parameter"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Tool Name"}),(0,r.jsx)(t.td,{children:"Name of the tool"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"Configuration Name"}),(0,r.jsx)(t.td,{children:"Name of the configuration"})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:"local_mode"}),(0,r.jsx)(t.td,{children:"Whether to delete the configuration in local mode"})]})]})]}),"\n",(0,r.jsx)(t.p,{children:"Ruby / Python Example:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-ruby",children:"delete_config('telemetry_grapher', 'adcs')\n"})})]})}function o(e={}){const{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},5392:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>i});var r=n(2784);const s={},a=r.createContext(s);function i(e){const t=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(a.Provider,{value:t},e.children)}}}]);