[INSTRM-75] xcu_r1 motor status command error Created: 12/Jan/17  Updated: 01/Feb/17  Resolved: 01/Feb/17

Status: Done
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: fmadec Assignee: cloomis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

11:44:02.891364 .hub 0 cmds d CmdIn="RtdSM_client.pfs","xcu_r1","motors status"
11:44:02.896858 .hub 0 cmds d CmdQueued=540141,1484221442.89,"RtdSM_client.pfs",156,"xcu_r1",54,"motors status"
11:44:02.942118 RtdSM_client.pfs 156 xcu_r1 d text="sending '~@,T2500,/1aM1R\r\n'"
11:44:02.977760 RtdSM_client.pfs 156 xcu_r1 d text="received '/0@'"
11:44:02.983103 RtdSM_client.pfs 156 xcu_r1 d text="sending '~@,T2500,/1?aa1\r\n'"
11:44:03.020440 RtdSM_client.pfs 156 xcu_r1 d text="received '/0`15,30'"
11:44:03.026325 RtdSM_client.pfs 156 xcu_r1 d text="sending '~@,T2500,/1?0\r\n'"
11:44:03.210661 RtdSM_client.pfs 156 xcu_r1 d text="received '/0`0'"
11:44:03.216297 RtdSM_client.pfs 156 xcu_r1 f text="command failed: TypeError(\"'instancemethod' object does not support item assignment\",) at /home/hostpfs/mhs/products/Linux64/ics_xcuActor/1.5.1/python/xcuActor/Commands/MotorsCmd.py:135"
11:44:03.216836 .hub 0 cmds d CmdDone=540141,"f"



 Comments   
Comment by arnaud.lefur [ 17/Jan/17 ]

They is still a tiny oversight.
09:37:58.414963 client.alefur 208 xcu_r1 f text="command failed: TypeError('%d format: a number is required, not str',) at /home/hostpfs/mhs/products/Linux64/ics_xcuActor/1.5.1/python/xcuActor/Commands/MotorsCmd.py:136"

cmd.inform('ccdMotor%d=%s,%s,%s,%s,%0.2f' % (status, m, homeSwitch, farSwitch, stepCnt, microns))

You just need to permutate m and status.
I did it, directly in the product and reloaded the commands. It's working well so far.

Comment by cloomis [ 01/Feb/17 ]

Fixed in 1.5.4

Generated at Sat Feb 10 16:21:16 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.