Open prjemian opened 3 months ago
Similar permissions were added to 2-BM for operations in either A or B station. An EPICS mbbo record defines which station could control.
The bluesky code looked like:
instrument_in_use = EpicsSignalRO("2bm:instrument_in_use", name="instrument_in_use", string=True)
MY_STATION = "2-BM-B
def station_permit(station):
return instrument_in_use.get() == station
# ...
if station_permit(MY_STATION):
# connect to real things
# suspend when NOT using_2bmb
else:
# connect to simulated things
# suspend when using_2bmb
To be clear, I can imagine doing x-ray expt in one station and a non x-ray in another and let us assume that both of these will run as if x-rays are there which means moving real motors, taking detector images, etc.
From: Pete R Jemian @.> Date: Tuesday, August 27, 2024 at 3:18 PM To: aps-8id-dys/bluesky @.> Cc: Narayanan, Suresh @.>, Mention @.> Subject: Re: [aps-8id-dys/bluesky] run bluesky8IDI and bluesky8IDE concurrently (Issue #65) Similar permissions were added to 2-BM for operations in either A or B station. An EPICS mbbo record defines which station could control. image. png (view on web) The bluesky code looked like: instrument_in_use = EpicsSignalRO("2bm: instrument_in_use", ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
Similar permissions were added to 2-BM for operations in either A or B station. An EPICS mbbo record defineshttps://urldefense.us/v3/__https:/github.com/APS-2BM-MIC/ipython-user2bmb/issues/53*issuecomment-439650986__;Iw!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtkNxRHGbQ$ which station could control.
The bluesky codehttps://urldefense.us/v3/__https:/github.com/APS-2BM-MIC/ipython-user2bmb/issues/53*issuecomment-440079250__;Iw!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtnaZWtN3w$ looked like:
instrument_in_use = EpicsSignalRO("2bm:instrument_in_use", name="instrument_in_use", string=True)
MY_STATION = "2-BM-B
def using_2bmb(station):
return instrument_in_use.get() == station
if using_2bmb(MY_STATION):
# connect to real things
# suspend when NOT using_2bmb
else:
# connect to simulated things
# suspend when using_2bmb
— Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/aps-8id-dys/bluesky/issues/65*issuecomment-2313432871__;Iw!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtknjXjKfg$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AAYSAQ3RX6V7ASCDC4PNHCDZTTNHTAVCNFSM6AAAAABNG3AAWCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGQZTEOBXGE__;!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtl9Tfra-g$. You are receiving this because you were mentioned.Message ID: @.***>
... as long as I can run bluesky8IDI and bluesky8IDE concurrently and also 8IDI should not load all the 8IDE devices and vice versa unless needed by choice
context
From: Suresh N. ***@***.***> Date: Tuesday, August 27, 2024 at 2:24 PM To: aps-8id-dys/bluesky ***@***.***> Cc: Narayanan, Suresh ***@***.***>, Your activity ***@***.***> Subject: Re: [aps-8id-dys/bluesky] create ophyd objects for certain beam line equipment (Issue #60) the 2 instruments will not take beam at the same time but i can imagine operating the 2 instruments at the same time. ________________________________ From: Pete R Jemian ***@ ***. ***> Sent: Tuesday, August 27, 2024 1: 49 PM To: aps-8id-dys/bluesky ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd the 2 instruments will not take beam at the same time but i can imagine operating the 2 instruments at the same time. ________________________________ From: Pete R Jemian ***@***.***> Sent: Tuesday, August 27, 2024 1:49 PM To: aps-8id-dys/bluesky ***@***.***> Cc: Subscribed ***@***.***> Subject: Re: [aps-8id-dys/bluesky] create ophyd objects for certain beam line equipment (Issue #60) Asked the beam line team if the two instruments are operated at the same time. That's the important point to make the decision. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed ZjQcmQRYFpfptBannerStart This Message Is From an External Sender This message came from outside your organization. ZjQcmQRYFpfptBannerEnd Asked the beam line team if the two instruments are operated at the same time. That's the important point to make the decision. — Reply to this email directly, view it on GitHubHow to enable: