On Thu, Mar 31, 2011 at 2:31 PM, Chris Radek <[email protected]> wrote:
>
> The short answer is you don't have a main function, which I suspect
> was an earlier error, and you tried surrounding all the code in
> faro_arm.c with main{ ... } which is not valid C.
>
you are correct
>
> The long answer:
>
> You are missing a lot of code here, specifically the Serial_*
> functions whose headers you have.
>
> Your arm talks serial at 9600 8N1
>
> It reports the position, button status, and error status whenever you
> send it the two-byte string "_P". It reports in a nice human-readable
> ascii string that is 74 bytes long.
>
thanks - I will study the code to learn how it does this
>
> Doing serial I/O in C is kind of a pain. I would recommend using
> python (where you can use the hal python module directly) and the
> python-serial module to do the I/O.
>
I will look into this.
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
thanks
Stuart
--
dos centavos
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users