Skip to content
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

APS DM DAQs may be created for each IOC (for different dataDirectories) #939

Open
prjemian opened this issue Mar 14, 2024 · 5 comments
Open
Assignees
Labels
hoist add code from a different project task Something to be done.
Milestone

Comments

@prjemian
Copy link
Contributor

prjemian commented Mar 14, 2024

Comments starting from #912 (comment) represent an upgrade to the support demonstrated by the BDP demo this week. Hoist the support from the demo first, then upgrade in a new issue (for the next milestone).

Originally posted by @prjemian in #912 (comment)

@prjemian prjemian added this to the 1.6.19 milestone Mar 18, 2024
@prjemian prjemian self-assigned this Apr 23, 2024
@prjemian prjemian added task Something to be done. hoist add code from a different project labels Apr 23, 2024
@prjemian prjemian modified the milestones: 1.6.19, 1.6.20 Apr 23, 2024
@prjemian
Copy link
Contributor Author

prjemian commented Jul 9, 2024

The question starts with: how to get workstation into this request for an api object? DaqApiFactory.getExperimentDaqApi()

According to the docs, there are three kwargs to the constructor:
image

After running apstools.utils.dm_setup(), the OS environment variables are copied into the Python session. These examples at one APS beam line:

========================= ========================================
key                       value                                   
========================= ========================================
DM_APS_DB_WEB_SERVICE_URL https://xraydtn01.xray.aps.anl.gov:11236
DM_CAT_WEB_SERVICE_URL    https://s1iddm.xray.aps.anl.gov:44436   
DM_DAQ_WEB_SERVICE_URL    https://s1idge3dm.xray.aps.anl.gov:33336
DM_DS_WEB_SERVICE_URL     https://xraydtn01.xray.aps.anl.gov:22237
DM_PROC_WEB_SERVICE_URL   https://s1iddm.xray.aps.anl.gov:55536   
========================= ========================================

@prjemian
Copy link
Contributor Author

prjemian commented Jul 9, 2024

So,

from os import environ
from apstools.utils import dm_setup
from dm.daq_web_service.api.experimentDaqApi import ExperimentDaqApi

dm_setup()
api = ExperimentDaqApi(url=environ["DM_DAQ_WEB_SERVICE_URL"])

@prjemian
Copy link
Contributor Author

prjemian commented Jul 9, 2024

It's not obvious what exactly is the work to resolve this issue. Pushing to next cycle.

@prjemian prjemian modified the milestones: 1.6.20, 1.6.21 Jul 9, 2024
@prjemian
Copy link
Contributor Author

Hoist various code from APS 8-ID XPCS

Weren't these plans already hoisted?

@prjemian
Copy link
Contributor Author

Can wait for next milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hoist add code from a different project task Something to be done.
Projects
Status: No status
Development

No branches or pull requests

1 participant