Lag when switching between Manual Control and MDI
12 Oct 2019 17:36 #147744
by Scot
Lag when switching between Manual Control and MDI was created by Scot
So I have something going on that's a bit concerning.
When I switch between MDI and Manual control, via the tabs in AXIS, there is a lag. This lag is new and it came recently as I've gotten this machine closer to being configured. The lag is substantial, too. It can be up to about 20 seconds before the tab actually changes from one tab to the next.
There is also a lag when the coolant box is checked. Sometimes the box doesn't even check!
Is there something I should be looking for to stop this? It could be a problem, for sure.
Thanks in advance,
Scot
When I switch between MDI and Manual control, via the tabs in AXIS, there is a lag. This lag is new and it came recently as I've gotten this machine closer to being configured. The lag is substantial, too. It can be up to about 20 seconds before the tab actually changes from one tab to the next.
There is also a lag when the coolant box is checked. Sometimes the box doesn't even check!
Is there something I should be looking for to stop this? It could be a problem, for sure.
Thanks in advance,
Scot
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
12 Oct 2019 19:45 #147752
by Todd Zuercher
Replied by Todd Zuercher on topic Lag when switching between Manual Control and MDI
If you have the basethread or servo thread set too short, it can cause all of the userspace programs to grind to a halt, for lack of processor time. What do you have them set to?
Please Log in or Create an account to join the conversation.
12 Oct 2019 19:52 #147753
by Scot
Replied by Scot on topic Lag when switching between Manual Control and MDI
When I tuned the servos I remember the thread being 1000, if I'm correct. But I'm unsure where to find that setting, either way.
Any pointers?
Any pointers?
Please Log in or Create an account to join the conversation.
12 Oct 2019 20:04 #147755
by Scot
Replied by Scot on topic Lag when switching between Manual Control and MDI
I just dug around and found that setting.
If this is the line, then that's the setting:
# Servo task period, in nanoseconds
SERVO_PERIOD = 1000000
If this is the line, then that's the setting:
# Servo task period, in nanoseconds
SERVO_PERIOD = 1000000
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
12 Oct 2019 23:31 #147762
by Todd Zuercher
Replied by Todd Zuercher on topic Lag when switching between Manual Control and MDI
That should be fine. Do you have a base-thread?
What hardware do you have?
What hardware do you have?
Please Log in or Create an account to join the conversation.
12 Oct 2019 23:36 #147764
by Scot
Replied by Scot on topic Lag when switching between Manual Control and MDI
I don't see a reference to a base thread in the .ini file. And I'm using Pico-systems PWM board and brushless servos/amps.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
13 Oct 2019 08:41 #147800
by tommylight
Replied by tommylight on topic Lag when switching between Manual Control and MDI
Do you have a base-period in the ini file?
Also check for "timeout" in the ini file, if they are set to too low, one of them can cause delays, forgot which one as there are two or 3 of them.
Also check for "timeout" in the ini file, if they are set to too low, one of them can cause delays, forgot which one as there are two or 3 of them.
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds