[INSTRM-864] Create Gen2 entrypoints for *published* IIC commands which control SPS Created: 19/Dec/19 Updated: 15/Oct/21 Resolved: 01/Oct/21 |
|
| Status: | Done |
| Project: | Instrument control development |
| Component/s: | ics_gen2Actor, PFS_kansoku |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Normal |
| Reporter: | cloomis | Assignee: | yuki.moritani |
| Resolution: | Done | Votes: | 0 |
| Labels: | EngRun, SPS | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Sprint: | EngRun03 | ||||||||||||||||
| Description |
|
Once we have the IIC commands to control the SPS, add the published ones to the Gen2 interface files. |
| Comments |
| Comment by yuki.moritani [ 10/May/20 ] |
|
Looking the published commands, I think the following are needed for eng./sci. observations:
I think the following are needed, but using with PFIlamp.
I'm not sure if we need to execute the following from Gen2 (probably not):
arnaud.lefur I have a few questions.
|
| Comment by arnaud.lefur [ 11/May/20 ] |
|
| Comment by yuki.moritani [ 19/May/20 ] |
|
Thank you for your answers, Arnaud. I'll then work on the first group now...
I have come up with another question... Commas "," are used in the option (parameter) cam (cam=b1,r1 for instance), but I'm afraid comma is reserved letter in .sk file. eric , is it correct that commas are used only at the end of line (async command) it is prohibited to use anywhere else? I mean, doesn't it work? :Parameter CAMERA="b1,r1" ... :main_start Exec PFS PFSCMD ACTOR="iic" CMD="bias cam=$CAMERA (I skip other parameters)" ... |
| Comment by eric [ 19/May/20 ] |
|
Commas are no problem inside strings. So if you pass a quoted string there will be no problem. |
| Comment by yuki.moritani [ 19/May/20 ] |
|
I understood it. Thank you. |
| Comment by eric [ 19/May/20 ] |
|
to clarify, your command here should be fine. |
| Comment by yuki.moritani [ 08/Sep/21 ] |
|
comment by yuki.moritani on 26/Aug/21 4:40 AM, copied over from
|
| Comment by yuki.moritani [ 08/Sep/21 ] |
|
comment by cloomis on 26/Aug/21 6:44 AM, copied over from I believe that the only significant differences are that one light source has an HgCd lamp and the other an HgAr lamp, and that we need to make sure that the pfilamps never get turned on when inappropriate. I don't think either merits separate commands. Does that make sense? |
| Comment by yuki.moritani [ 08/Sep/21 ] |
|
comment by yuki.moritani on 26/Aug/21 7:33 PM, copied over from OK, it is cared with How do you treat fan control? Could you remind me that you always turn on/off per exposure, or keep the lamp on in a sequence? |
| Comment by yuki.moritani [ 08/Sep/21 ] |
|
comment by cloomis on 26/Aug/21 7:42 PM, copied over from OK, yes, part of |
| Comment by yuki.moritani [ 18/Sep/21 ] |
|
eric I have one question about handling double-quotation to take SpS exposure OFS command is as follows
Using DD command, this should be passed as follows.
That is, double-quotation needs to be passed.
|
| Comment by cloomis [ 18/Sep/21 ] |
|
I agree that we need to know how to nest quoted strings, but I also think that for this particular ticket ("... published IIC commands...") we cannot use the pfscmd mechanism: all the primary observing commands need dedicated PARA commands. That would allow, in this case, exec pfs scienceTrace halogen=300 name="pfiLamps" comment="testing exposure time". We still intend to disable pfscmd during normal operations, right? |
| Comment by yuki.moritani [ 18/Sep/21 ] |
|
OK. I didn't know or forgot your plan... I agree to the idea to create dedicated DD command for science operation, but for engineering run (it is nice to have, indeed,), but you may want to use the current pfscmd command for the time being, as we took MCS data in 2019...? |
| Comment by eric [ 21/Sep/21 ] |
|
Quick answer: use square bracket quotes:
exec pfs pfscmd actor=ics cmd=[scienceTrace halogen=300 name="pfiLamps" comments="testing exposure time"] In the long run, I will enhance the lexer to handle escaped nested quotes. |
| Comment by eric [ 21/Sep/21 ] |
|
I've modified the lexer to handle single and double quotes, with nested escapes. So you can now do:
exec pfs pfscmd actor=ics cmd='scienceTrace halogen=300 name="pfiLamps" comments="testing exposure time"'
if you prefer. Strings are interpolated in oscript, and interpolation characters &, ! and @ need to be double-escaped to pass through the decoder. So if you need to pass one of these three characters, use double backslash |
| Comment by yuki.moritani [ 01/Oct/21 ] |
|
As basic (primitive) gen2 .sk command was made for September run, I close this ticket for now. For real operation, more dedicated entrypoints (.dd commands) are needed, rather than just passing iic commands. |