Can qtpyvcp be enabled when Latency-test exceeds its maximum value?

More
25 Jan 2024 06:45 #291578 by szl
The following message appears when running qtpyvcp, is there a way to get it fixed?


Debug file information:
Note: Using POSIX realtime
Unexpected realtime delay on task 0 with period 100000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Traceback (most recent call last):
  File "/usr/bin/qtpyvcp", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/szl/.local/lib/python3.11/site-packages/qtpyvcp/app/__init__.py", line 73, in main
    opts = parse_opts(__doc__)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/szl/.local/lib/python3.11/site-packages/qtpyvcp/utilities/opt_parser.py", line 104, in parse_opts
    opts = DotDict({arg.strip('-<>').replace('-', '_') : convType(value) for arg, value in raw_args.items()})
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/szl/.local/lib/python3.11/site-packages/qtpyvcp/utilities/opt_parser.py", line 104, in <dictcomp>
    opts = DotDict({arg.strip('-<>').replace('-', '_') : convType(value) for arg, value in raw_args.items()})
                                                         ^^^^^^^^^^^^^^^
  File "/home/szl/.local/lib/python3.11/site-packages/qtpyvcp/utilities/opt_parser.py", line 65, in convType
    if isinstance(val, basestring):
                       ^^^^^^^^^^
NameError: name 'basestring' is not defined
1925
1968
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

Please Log in or Create an account to join the conversation.

More
25 Jan 2024 10:54 #291588 by CNC_ANDI
try to set servo period 100000 higher
tune your system to get a better latency

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
25 Jan 2024 15:42 #291600 by tommylight
Are you using a parallel port?
If not, you should remove the line containing BASE_PERIOD.
This and the reply before will not fix the issue you are having, sorry i can not help with it.
The following user(s) said Thank You: Lcvette

Please Log in or Create an account to join the conversation.

More
29 Jan 2024 16:38 #291905 by Lcvette
need alot more information to help answer the question. but this is in most likely scenario an ill formatted configuration setting.  I would styart by going through and looking for any mossing ini parameters related to using the basethread.  

linuxcnc.org/docs/stable/html/config/ini...l#sub:ini:sec:emcmot

 

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.055 seconds
Powered by Kunena Forum