Skip to content

How to implement blocking without interactive_ioc() #92

Discussion options

You must be logged in to vote

We have some simple example programs of both cothread and asyncio, available in the docs/examples directory. Those should show the basic syntax differences between the two. I'm not sure how softioc.interactive_ioc() interacts with nohup, so you may need to do as you say and use alternative functions.

To quit the IOC, the answer changes based on whether you use asyncio or cothread. In both cases you'll want to create your "QUIT" PV, and set an on_update function (and perhaps always_update=True). For cothread I think its as simple as calling the Quit() function. For asyncio I think you'll need to set up an Event and wait for it to be set from the main thread, and signal it from the update f…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@aswyatt
Comment options

@AlexanderWells-diamond
Comment options

@aswyatt
Comment options

@AlexanderWells-diamond
Comment options

Answer selected by AlexanderWells-diamond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants