Python Yamcs Client
- General Client
- Mission Database
- TM/TC Processing
- Archive
- Link Management
- Object Storage
- File Transfer
- Time Correlation (TCO)
- Timeline
- Examples
- alarms.py
- archive_breakdown.py
- archive_retrieval.py
- authenticate.py
- ccsds_completeness.py
- commanding.py
- cop1.py
- file_transfer.py
- links.py
- events.py
- mission_time.py
- packet_subscription.py
- parameter_subscription.py
- plot_with_matplotlib.py
- query_mdb.py
- read_write_parameters.py
- reconnection.py
- timeline.py
- write_mdb.py
Related
Download this Document
links.pyΒΆ
from time import sleep
from yamcs.client import YamcsClient
def enable_link(link):
"""Enable a link."""
link.enable_link()
def run_action(link, action_id, message=None):
"""Run an action."""
link.run_action(action_id, message)
if __name__ == "__main__":
client = YamcsClient("localhost:8090")
link = client.get_link("simulator", link="tm_dump")
print("Enabling link")
enable_link(link)
subscription = client.create_link_subscription("simulator")
sleep(10)
print("-----")
# Retrieve the latest data link state from local cache:
print("Last values from cache:")
for link in subscription.list_links():
print(link)