I agree with you John. On the otherhand, it's a message that tries to be as
informative as possible. An alternative might be:

"...You must reduce the specified maximum distance per unit time, the
distance per step, or the number of times STEPGEN is called per second..."

Ken

[EMAIL PROTECTED]
Mark Kenny Products Company, LLC
55 Main Street                     Voice: (203)426-7166
Newtown, CT 06470                    Fax: (203)426-9138
http://www.MarkKenny.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, January 18, 2007 1:41 PM
To: [email protected]
Subject: Re: [Emc-developers] [Emc-commit] emc2/src/hal/components
stepgen.c,1.44, 1.45


Jeff Epler <[EMAIL PROTECTED]> wrote:

> Modified file emc2/src/hal/components/stepgen.c
>
> date: 2007/01/18 17:54:15; author: jepler; state: Exp; lines: +8 -8
> improve unobtainable step rate message (backport candidate)
>
> - "STEPGEN: Channel %d: The requested maximum velocity of %d steps
>     per second is not attainable.\n",
> - n, (int) (stepgen->maxvel * fabs(stepgen->pos_scale)));
> - rtapi_print_msg(RTAPI_MSG_ERR,
> - "STEPGEN: The maximum number of steps possible is %d
>     per second\n",
> - (int)max_freq);
> +"STEPGEN: Channel %d: The requested step rate of %dHz is not attainable.
"
> +"The maximum step rate is %dHz. You must reduce MAX_VELOCITY,
INPUT_SCALE, "
> +"or BASE_PERIOD. Otherwise, following errors will result.\n",
> + n, (int) (stepgen->maxvel * fabs(stepgen->pos_scale)),
> + (int)max_freq);

This opinion probably won't be popular, especially among those who
only use HAL as part of EMC.  But I don't think EMC specific items
such as MAX_VELOCITY, INPUT_SCALE, and BASE_PERIOD should not appear
in a generic HAL component like stepgen.

Regards,

John Kasunich



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to