Hi Steve,
I tried nanosleep as well with similar results. The 1ms delay does not
need to be accurate. I just have a fairly short loop that needs to run
quite often. Even at 1ms it should spend most of it's time sleeping.
I'll have to do some more experiments to try to tie down what is
actually
Les Newell wrote:
> What is the correct way to sleep in the main loop of a user mode
> component? I have code like the following:
>
> while(1)
> {
> do something...
> usleep(1000);
> }
>
> For some reason the usleep almost never returns. If I take the usleep
> out the component works fi
Axis: if no .ngc file is open (for instance [DISPLAY]OPEN_FILE pointed to a
non-existent file), and an oword sub is called from MDI like 'o call', the
call fails with 'File not open', and the subroutine body is not executed
This is fairly confusing because one would think the interpreter couldnt
What is the correct way to sleep in the main loop of a user mode
component? I have code like the following:
while(1)
{
do something...
usleep(1000);
}
For some reason the usleep almost never returns. If I take the usleep
out the component works fine, though it obviously hogs the CPU.
Oops, I just realized I broke the components when I tidied them up.
These ones should work. Note the spindle component needs a header file
as well.
Les
On 03/04/11 19:01, andy pugh wrote:
Well, that's 4 gearchange options on the table now :-)
The only one we probably don't want to use is the
On 3 April 2011 09:54, Les Newell wrote:
> This one is a gear change and spindle management component. It can handle up
> to 16 gears, each of which has a scale factor.
Well, that's 4 gearchange options on the table now :-)
The only one we probably don't want to use is the one in the current
2.5
Bugs item #1922330, was opened at 2008-03-21 17:19
Message generated for change (Comment added) made by crazyimp
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=1922330&group_id=6744
Please note that this message will contain a full copy of the comment th
Bugs item #1922330, was opened at 2008-03-21 17:19
Message generated for change (Comment added) made by crazyimp
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=1922330&group_id=6744
Please note that this message will contain a full copy of the comment th
This one is a gear change and spindle management component. It can
handle up to 16 gears, each of which has a scale factor. Negative scale
factors indicate a reverse gear (e.g back gear). The component
automatically takes care of reversing the spindle in this case. It also
processes the spindle
While working on the latest additions to my lathe I dug out some of the
extra components I wrote for it. Hopefully they might be of some use to
someone else. This one simply outputs a message using rtapi_print_msg
when a HAL pin goes high. I use it to give sensible notifications if the
lathe es
10 matches
Mail list logo