Skip to content

Building a controller to move the beam #4733

Answered by epernod
Slykkey asked this question in BeamAdapter
Discussion options

You must be logged in to vote

@Slykkey ,
So I see several options to do what you want:

  1. The BeamAdapterActionController handle a list of BeamAdapterAction. It has been designed to export and replay actions but you can use it on the fly. If you put it in d_writeMode = False, at each new timestep it will check if an action need to be send to the InterventialRadiologyController at this timestep. See this method. So you can add a pythonScriptController to update the list of d_timeSteps and d_actions. I'm just not 100% sure you won't have a delay of 1 timestep, because I don't know which will be first executed between the pythonScriptController and the BeamAdapterActionController
  2. You modify the BeamAdapterActionController

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@Slykkey
Comment options

@hugtalbot
Comment options

@epernod
Comment options

@epernod
Comment options

Answer selected by Slykkey
@Slykkey
Comment options

@epernod
Comment options

Comment options

You must be logged in to vote
3 replies
@hugtalbot
Comment options

@Slykkey
Comment options

@hugtalbot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants