Menu

#660 command_inout_asynch (polling mode) fails

closed-fixed
None
PyTango
5
2014-10-07
2014-03-29
No

According to the doc the command_inout_asynch should accept keyword arguments.

I try the following:

import PyTango
dp = PyTango.DeviceProxy('zreszela/tg_test/1')
dp.command_inout_asynch('DevVoid', cmd_param=None, forget=True)

And I get the following error:

sicilia@ct64suse121:~> python /siciliarep/tmp/zreszela/workspace/command_inout_asynch.py
Traceback (most recent call last):
  File "/siciliarep/tmp/zreszela/workspace/command_inout_asynch.py", line 3, in <module>
    dp.command_inout_asynch('DevVoid', cmd_param=None, forget=True)
TypeError: __Connection__command_inout_asynch() got an unexpected keyword argument 'cmd_param'

Discussion

  • Tiago Coutinho

    Tiago Coutinho - 2014-05-14

    Hi,

    Documentation was wrong.
    Fix in SVN trunk since revision 25597.
    Will become visible in next PyTango release 8.1.2

    if you want to execute command without argument and not forget the result do:

    dp.command_inout_asynch("DevVoid")
    

    if you want to execute command without argument and forget the result do:

    dp.command_inout_asynch("DevVoid", None, True)
    
     

    Last edit: Tiago Coutinho 2014-05-14
  • Tiago Coutinho

    Tiago Coutinho - 2014-05-14
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB