backendinterface.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. .. _backendinterface:
  2. BackendInterface Module
  3. =======================
  4. .. module:: backendinterface
  5. This module contains several methods to interface with the board. It also contains several mostly internal
  6. used methods prefixed `_bif_`. Those methods will not be covered here and are not intended for public use.
  7. Methods intended for public use are prefixed `bk_`.
  8. .. py:method:: bk_start_board()
  9. Method that handles starting of the board.
  10. .. py:method:: bk_calibrate()
  11. Method that handles calibration of the board.
  12. .. py:method:: bk_sync_board()
  13. Method that handles synchronisation of the board.
  14. .. py:method:: bk_write_values(defaults=False)
  15. Method that handles writing values to the board.
  16. :param bool defaults: If True default values will be written (and updated in board.config)
  17. .. py:method:: bk_stop_board()
  18. Method that handles stopping of the board.
  19. .. py:method:: bk_soft_reset()
  20. Method that handles soft resetting the board.
  21. .. py:method:: bk_update_config(key, value)
  22. Method that updates the board config.
  23. :param str key: Config key
  24. :param any value: New value
  25. .. py:method:: bk_get_config(key)
  26. Method to get the current config for key
  27. :param str key: Config key
  28. .. py:method:: bk_change_num_of_orbits(value, [silent=False])
  29. Method to change the number of orbits to observe on the board
  30. :param int value: Number of orbits to observe
  31. :param bool silent: Do not notify observers when updating the config
  32. .. py:method:: bk_change_num_of_skipped_orbits(value[, silent=False])
  33. Method to change the number of orbits to skip on the board
  34. :param int value: Number of orbits to skip
  35. :param bool silent: Do not notify observers when updating the config
  36. .. py:method:: bk_change_count(value[, silent=False])
  37. Method to change the number of acquisitions
  38. :param int value: Number of acquisitions
  39. :param bool silent: Do not notify observers when updating the config
  40. .. py:method:: bk_change_wait(value[, silent=False])
  41. Method to change the wait time between acquisitions
  42. :param int value: Wait time in seconds
  43. :param bool silent: Do not notify observers when updating the config
  44. .. py:method:: bk_change_build_spectrograms(value[, silent=False])
  45. Method to set whether to build spectrograms or not
  46. :param bool value: Build or not
  47. :param bool silent: Do not notify observers when updating the config
  48. .. py:method:: bk_change_pilot_bunch(value[, silent=False])
  49. Method to set whether to simulate pilot bunch or not
  50. :param bool value: Simulate or not
  51. :param bool silent: Do not notify observers when updating the config
  52. .. py:method:: bk_acquire()
  53. Toggle acquisition
  54. .. py:method:: bk_single_read()
  55. Perform a single read
  56. .. py:method:: bk_continuous_read([interval=100])
  57. Toggle continuous read
  58. :param int interval: Interval in msec to wait between reads
  59. .. py:method:: bk_board_connected()
  60. Check if board is connected and recognized
  61. :return: True if board is connected and recognized, False if not
  62. :rtype: bool
  63. .. py:method:: bk_get_temperature()
  64. Get the current temperature of the board
  65. :return: Current board temperature in degree celsius
  66. :rtype: int