from pipython import GCSDevice, datarectools, pitools
pidevice = GCSDevice('C-887')
print(pidevice.ACC('U', 1))
# motion in X Y plane
pidevice.MOV(axes, [0, 0, 0, -10, 0, 0]) # max it can go x- 47, y-47
print(pidevice.qACC('U'))
pitools.waitontarget(pidevice, axes) # Wait till motion using PITool
print(pidevice.qPOS())
This is error encountered while running code for method "pidevice.ACC()" and "pidevice.qACC()" as well.
Traceback (most recent call last):
File "C:/Users/DevKunwarSinghChauha/PycharmProjects/PI_SP_ObjTrack/test_1.py", line 149, in <module>
print(pidevice.ACC('U', 1))
File "E:\python\lib\site-packages\pipython\pidevice\common\gcsbasecommands.py", line 1851, in ACC
self._msgs.send(cmdstr)
File "E:\python\lib\site-packages\pipython\pidevice\gcsmessages.py", line 140, in send
self._checkerror(senderr=not self.embederr)
File "E:\python\lib\site-packages\pipython\pidevice\gcsmessages.py", line 344, in _checkerror
raise exc # Raising NoneType while only classes or instances are allowed pylint: disable=E0702
pipython.pidevice.gcserror.GCSError: Unknown command (2)