What is the importance of real-time kernel
23 Jan 2014 21:14 #43104
by jsp21
What is the importance of real-time kernel was created by jsp21
I am new to LinuxCNC. I am just curious, why must LinuxCNC run with a real-time kernel? Is it a matter of having more reliable timing or being able to do more things simultaneously/in quick succession? (or something else?)
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
23 Jan 2014 22:39 #43106
by BigJohnT
Replied by BigJohnT on topic What is the importance of real-time kernel
That's pretty much it, in order to do "stuff" on time you need to use a real time kernel.
JT
JT
The following user(s) said Thank You: jsp21
Please Log in or Create an account to join the conversation.
23 Jan 2014 23:35 #43108
by ArcEye
Replied by ArcEye on topic What is the importance of real-time kernel
This gives a brief coverage of the topic
www.linuxcnc.org/index.php/english/forum...-the-latency-problem
regards
www.linuxcnc.org/index.php/english/forum...-the-latency-problem
regards
The following user(s) said Thank You: jsp21
Please Log in or Create an account to join the conversation.
25 Jan 2014 02:09 - 25 Jan 2014 02:09 #43137
by jmelson
Replied by jmelson on topic What is the importance of real-time kernel
Well, to be more specific, and apropos to software-driven steppers, the motor and the
software need to stay in sync. If the computer cannot generate smooth trains
of step pulses, then it will give step pulses that are not evenly spaced in time,
and the motor will attempt to follow the jumpy step timing. If the error
exceeds some bounds, then the motors will jump in increments of 4 full
steps, or lose sync completely, and just stall. Without a real time kernel,
there can be unpredictable gaps when the CPU is busy processing a
network packet, checking if it is time to switch to another task, handling
a temporary disk error, checking CPU temperature or battery status,
etc. These gaps can be sizable fractions of a second, and the motors
will have to stop or stall during them, leading to unpredictable
positioning errors.
After the system, drivers and software have been tested to prove they do
not suffer from these errors, you can be confident that such loss of
position will not occur.
Jon
Jon
software need to stay in sync. If the computer cannot generate smooth trains
of step pulses, then it will give step pulses that are not evenly spaced in time,
and the motor will attempt to follow the jumpy step timing. If the error
exceeds some bounds, then the motors will jump in increments of 4 full
steps, or lose sync completely, and just stall. Without a real time kernel,
there can be unpredictable gaps when the CPU is busy processing a
network packet, checking if it is time to switch to another task, handling
a temporary disk error, checking CPU temperature or battery status,
etc. These gaps can be sizable fractions of a second, and the motors
will have to stop or stall during them, leading to unpredictable
positioning errors.
After the system, drivers and software have been tested to prove they do
not suffer from these errors, you can be confident that such loss of
position will not occur.
Jon
Jon
Last edit: 25 Jan 2014 02:09 by jmelson.
The following user(s) said Thank You: jsp21
Please Log in or Create an account to join the conversation.
25 Jan 2014 02:16 #43139
by jsp21
Replied by jsp21 on topic What is the importance of real-time kernel
Thank you very much for the helpful replies!
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds