-
Notifications
You must be signed in to change notification settings - Fork 1
Two Sets of Temperature Control for Fly Stage and Generic Setup in Bluesky #170
Comments
Looking through the instrument configuration:
|
To choose which Lakeshore readout, set both
To pick the other one:
If this gets to be a routine activity, we can create a utility function to make this change: def selectLakeshoreReadout(readout=1):
global T_A , T_SET
if readout not in (1, 2, 3, 4):
raise ValueError(f"readout must be integer between 1 & 4, received {readout}")
obj = [lakeshore.loop1, lakeshore.loop2, lakeshore.loop3, lakeshore.loop4][readout-1]
T_A = obj.temperature
T_SET = obj.target |
close this if your question is answered |
Let me give it a try after dinner, if it works I'll close it |
@prjemian I changed I'm now confused about the source of the problem. @sureshnaps Could you comment on that as well? Thanks, |
@prjemian @sureshnaps @ericmdufresne This problem with controlling the temperature on fly stage using Bluesky is actually more complicated than I thought: The readback is still We could either change our EPICS definition, or come up with a new class definition for temperature control on the fly stage. Which one is better? |
Pete had made a class for the epics pid control.
From: Qingteng Zhang <notifications@github.com>
Reply-To: aps-8id-dys/ipython-8idiuser <reply@reply.github.com>
Date: Saturday, June 20, 2020 at 6:07 PM
To: aps-8id-dys/ipython-8idiuser <ipython-8idiuser@noreply.github.com>
Cc: "Narayanan, Suresh" <sureshn@anl.gov>, Mention <mention@noreply.github.com>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature Control for Fly Stage and Generic Setup in Bluesky (#170)
@prjemian<https://github.com/prjemian> @sureshnaps<https://github.com/sureshnaps> @ericmdufresne<https://github.com/ericmdufresne> This problem with controlling the temperature on fly stage using Bluesky is actually more complicated than I thought: The readback is still 8idi:LS336:TC4:IN3, but the setpoint is actually 8idi:pid1.VAL instead of 8idi:LS336:TC4:OUT3:SP, so it violated the class definition of LS336Device in lakeshore.py.
We could either change our EPICS definition, or come up with a new class definition for temperature control on the fly stage. Which one is better?
[Image removed by sender. Screen Shot 2020-06-20 at 5 57 27 PM]<https://user-images.githubusercontent.com/48140482/85213099-8aaa5c00-b31f-11ea-9683-7dc1f2f1005f.png>
[Image removed by sender. Screen Shot 2020-06-20 at 5 58 53 PM]<https://user-images.githubusercontent.com/48140482/85213113-bdeceb00-b31f-11ea-97c2-367afa185c4b.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#170 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYSAQYML2LNBRVAZZTKAWTRXU6LXANCNFSM4OB4CKFA>.
|
I'm thinking it may be better to create a custom version since this sounds
like a hybrid (sensor from one loop, control signal from a different
loop). Probably not difficult.
…On Sat, Jun 20, 2020, 9:13 PM Suresh N. ***@***.***> wrote:
Pete had made a class for the epics pid control.
From: Qingteng Zhang ***@***.***>
Reply-To: aps-8id-dys/ipython-8idiuser ***@***.***>
Date: Saturday, June 20, 2020 at 6:07 PM
To: aps-8id-dys/ipython-8idiuser ***@***.***>
Cc: "Narayanan, Suresh" ***@***.***>, Mention <
***@***.***>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature
Control for Fly Stage and Generic Setup in Bluesky (#170)
@prjemian<https://github.com/prjemian> @sureshnaps<
https://github.com/sureshnaps> @ericmdufresne<
https://github.com/ericmdufresne> This problem with controlling the
temperature on fly stage using Bluesky is actually more complicated than I
thought: The readback is still 8idi:LS336:TC4:IN3, but the setpoint is
actually 8idi:pid1.VAL instead of 8idi:LS336:TC4:OUT3:SP, so it violated
the class definition of LS336Device in lakeshore.py.
We could either change our EPICS definition, or come up with a new class
definition for temperature control on the fly stage. Which one is better?
[Image removed by sender. Screen Shot 2020-06-20 at 5 57 27 PM]<
https://user-images.githubusercontent.com/48140482/85213099-8aaa5c00-b31f-11ea-9683-7dc1f2f1005f.png>
[Image removed by sender. Screen Shot 2020-06-20 at 5 58 53 PM]<
https://user-images.githubusercontent.com/48140482/85213113-bdeceb00-b31f-11ea-97c2-367afa185c4b.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<
#170 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAYSAQYML2LNBRVAZZTKAWTRXU6LXANCNFSM4OB4CKFA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMA5ZBM632QYBBXI2CDRXVUDXANCNFSM4OB4CKFA>
.
|
@prjemian Would you mind if I take a first stab at it? I'm free on Sunday anyways. Also how do I back everything up? Copy ~/.ipython-bluesky or push to a branch? |
Commit all changes and push to master branch
Give it a try.
…On Sat, Jun 20, 2020, 10:02 PM Qingteng Zhang ***@***.***> wrote:
@prjemian <https://github.com/prjemian> Would you mind if I take a first
stab at it? I'm free on Sunday anyways.
Also how do I back everything up? Cope ~/.ipython-bluesky or push to a
branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMA332MP37FK22Y6ET3RXVZ53ANCNFSM4OB4CKFA>
.
|
Here's what I got:
What username should I use? |
Use your own GitHub account
…On Sat, Jun 20, 2020, 11:03 PM Qingteng Zhang ***@***.***> wrote:
Here's what I got:
talc% git add -A
talc% git commit -m "backup before adding temp ctrl for fly stage"
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
talc% git push origin master
Username for 'https://github.com':
What username should I use?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMFFZTYHHKCTTLAC2ETRXWBAFANCNFSM4OB4CKFA>
.
|
It worked! I'll try define the new class for temperature control of fly stage then. If this works it would be the first python class I've ever defined. |
To make this work, we'll have to do something similar to the Long term, it might be useful to redesign this since it is extremely beam line specific. No other beam line uses this non-standard support for Lakeshore this way. |
Aha! Helps to talk it through... In our teleconference, it seems there is another screen, Long story short:
|
... and, as we discovered, there were a couple problems with the setup of these epid devices to be changed. (BCDA-APS/apstools#324 and BCDA-APS/apstools#325) We fixed them locally so that when the apstools package is updated, our adaptation to those changes will be minimal. |
Also leaving the previous definitions of |
From the epid record documentation:
The screen view above shows this correctly. The
|
The difference in the name of |
The apstools package has been updated for the changes in the epid record support. A release candidate 1.2.6rc1 is available for update:
With these changes,
|
@qzhang234 Can you make these changes? |
In 15 min. I'm writing an email to Suresh to ask him to create virtual sessions under 8idiuser on the workstations. Apparently Eric and I have different permission levels than Suresh |
If this works, then I will finalize the release of apstools 1.2.6. (provisional release notes: https://github.com/BCDA-APS/apstools/wiki/release-notes-1.2.6) |
use this install command:
|
@prjemian |
Now, there is virtual on all 3 machines.
Brian is working on your bugs.
As per Brian’s updates, these virtuals should be stable,, apparently wont get killed or lost. Will pass on info as it comes from him.
From: Qingteng Zhang <notifications@github.com>
Reply-To: aps-8id-dys/ipython-8idiuser <reply@reply.github.com>
Date: Wednesday, June 24, 2020 at 1:30 PM
To: aps-8id-dys/ipython-8idiuser <ipython-8idiuser@noreply.github.com>
Cc: "Narayanan, Suresh" <sureshn@anl.gov>, Mention <mention@noreply.github.com>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature Control for Fly Stage and Generic Setup in Bluesky (#170)
In 15 min. I'm writing an email to Suresh to ask him to create virtual sessions under 8idiuser on the workstations. Apparently Eric and I have different permission levels than Suresh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#170 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYSAQZJETPRGOMODPGMOHLRYJA3DANCNFSM4OB4CKFA>.
|
QZ, close this issue if you think it is now resolved.
…On Wed, Jun 24, 2020, 5:24 PM Suresh N. ***@***.***> wrote:
Now, there is virtual on all 3 machines.
Brian is working on your bugs.
As per Brian’s updates, these virtuals should be stable,, apparently wont
get killed or lost. Will pass on info as it comes from him.
From: Qingteng Zhang ***@***.***>
Reply-To: aps-8id-dys/ipython-8idiuser ***@***.***>
Date: Wednesday, June 24, 2020 at 1:30 PM
To: aps-8id-dys/ipython-8idiuser ***@***.***>
Cc: "Narayanan, Suresh" ***@***.***>, Mention <
***@***.***>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature
Control for Fly Stage and Generic Setup in Bluesky (#170)
In 15 min. I'm writing an email to Suresh to ask him to create virtual
sessions under 8idiuser on the workstations. Apparently Eric and I have
different permission levels than Suresh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<
#170 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAYSAQZJETPRGOMODPGMOHLRYJA3DANCNFSM4OB4CKFA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMCLCETQ7LLMYZKIJRLRYJ4JZANCNFSM4OB4CKFA>
.
|
Such things does not need to be github issues, rather they not be.
From: Pete R Jemian <notifications@github.com>
Reply-To: aps-8id-dys/ipython-8idiuser <reply@reply.github.com>
Date: Wednesday, June 24, 2020 at 6:10 PM
To: aps-8id-dys/ipython-8idiuser <ipython-8idiuser@noreply.github.com>
Cc: "Narayanan, Suresh" <sureshn@anl.gov>, Mention <mention@noreply.github.com>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature Control for Fly Stage and Generic Setup in Bluesky (#170)
QZ, close this issue if you think it is now resolved.
On Wed, Jun 24, 2020, 5:24 PM Suresh N. ***@***.***> wrote:
Now, there is virtual on all 3 machines.
Brian is working on your bugs.
As per Brian’s updates, these virtuals should be stable,, apparently wont
get killed or lost. Will pass on info as it comes from him.
From: Qingteng Zhang ***@***.***>
Reply-To: aps-8id-dys/ipython-8idiuser ***@***.***>
Date: Wednesday, June 24, 2020 at 1:30 PM
To: aps-8id-dys/ipython-8idiuser ***@***.***>
Cc: "Narayanan, Suresh" ***@***.***>, Mention <
***@***.***>
Subject: Re: [aps-8id-dys/ipython-8idiuser] Two Sets of Temperature
Control for Fly Stage and Generic Setup in Bluesky (#170)
In 15 min. I'm writing an email to Suresh to ask him to create virtual
sessions under 8idiuser on the workstations. Apparently Eric and I have
different permission levels than Suresh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<
#170 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AAYSAQZJETPRGOMODPGMOHLRYJA3DANCNFSM4OB4CKFA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#170 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARMUMCLCETQ7LLMYZKIJRLRYJ4JZANCNFSM4OB4CKFA>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#170 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYSAQ5SPWDLM5LZ3ZFDFU3RYKBW3ANCNFSM4OB4CKFA>.
|
The temperature readout PV currently defined in Bluesky points to the one used in generic setup (See screenshot attached). However with Rigaku we commonly use fly stage, whose temperature readout PV is different (See screenshot attached). Anyway to add it in Bluesky so that it can be switched between the two?
The text was updated successfully, but these errors were encountered: