Am 07.05.2013 um 16:43 schrieb Curtis Dutton <[email protected]>: > I have a preliminary WJ200 modbus inverter driver that I've written, based > upon other modbus drivers I have seen from the VFD wiki page. > > The source code so far is posted at https://github.com/OKComputers/wj200vfd > > > How do I report an error from user_mainloop?
Currently error reporting of user HAL components just goes to stderr. This limitation will be removed in a version later this year, which will have common error reporting regardless of origin. Where would you a message want to appear? > If the driver crashes, or > errors out, how do I get the hal to automatically ESTOP and fail. by immediately changing a pin which is hooked into the stop chain 'crashing' might translate into a segmentation fault; until you have these issues removed in the code, you might want to add a signal handler for SIGSEGV and toggle the estop pin there (hoping you still can, meaning the HAL environment hasnt beend wedged by the error to start with= > The > usermode comp does not seem to be able to report an error. The behavior so > far, seems to be that the pins and parameters just dissapear from the hal > if the driver exits for any reason. > > > Also, when logging information, does the hal watch stdout and stderr and > pass information along somewhere? no, HAL watches pins; it doesnt react to messages except in a very narrow way around motion. > I'm not sure if there is a page somewhere > that shows me how to do logging. > > > > Thanks, > Curt -Michaell > > > P.S. Once I get it sorted out, I'll be happy to support this driver. > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
