-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run bluesky8IDI and bluesky8IDE concurrently #65
Comments
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 defines<https://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.
image.png (view on web)<https://urldefense.us/v3/__https:/github.com/user-attachments/assets/94d0cc22-df6f-4cdd-9315-55aef990bd14__;!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtlVkSs7tQ$>
The bluesky code<https://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 GitHub<https://urldefense.us/v3/__https:/github.com/aps-8id-dys/bluesky/issues/65*issuecomment-2313432871__;Iw!!G_uCfscf7eWS!b1Rn8a6EQalD6Zq10p-GFRpOVLKpJP6wvK-zWhasNX-zyPpmmJ6B6yJ18yhqigpXDCntMtK3c2YZbkWkFtknjXjKfg$>, or unsubscribe<https://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: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... 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 GitHub<https://urldefense.us/v3/__https://github.com/aps-8id-dys/bluesky/issues/60*issuecomment-2313277761__;Iw!!G_uCfscf7eWS!e9Ta48Ji1rMuSA4BDNWlNdOpdA5hyUfmLkyavP3JNTGmqulNhwLJuOdVP9WP9YC32kDZ8tzzwU9n7lKUNlk0bBZtmA$%3E, or unsubscribe<https://urldefense.us/v3/__https://github.com/notifications/unsubscribe-auth/AAYSAQ3AZ5HEYHV37VCNLO3ZTTC4NAVCNFSM6AAAAABNGWE466VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGI3TONZWGE__;!!G_uCfscf7eWS!e9Ta48Ji1rMuSA4BDNWlNdOpdA5hyUfmLkyavP3JNTGmqulNhwLJuOdVP9WP9YC32kDZ8tzzwU9n7lKUNlnGy8HEXg$%3E.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
—
Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/aps-8id-dys/bluesky/issues/60*issuecomment-2313340601__;Iw!!G_uCfscf7eWS!YCM2srsGWhL4000oym7hw89dBFfQ1rbuLHaw65J-8tt8AfEp8Qmn5otl_j5Qc1awT0MarBW_qR14ANJyfAhHFnV2lQ$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/AAYSAQ7PUMB2S3B6O7X4R4LZTTG7RAVCNFSM6AAAAABNGWE466VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTGM2DANRQGE__;!!G_uCfscf7eWS!YCM2srsGWhL4000oym7hw89dBFfQ1rbuLHaw65J-8tt8AfEp8Qmn5otl_j5Qc1awT0MarBW_qR14ANJyfAi-9R5Uxg$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
Originally posted by @sureshnaps in #60 (comment)
How to enable:
The text was updated successfully, but these errors were encountered: