Experimental Physics and
| |||||||||||||||||
|
As I understand Application Developer's Guide 6.8 I can register function and call it from iocsh (ioc shell). A registrar(function) entry in a DBD file does not automatically register a command with the IOC shell itself, it just arranges for the named function to be called during the IOC's startup process. The registrar function can then perform any actions you wish to take place at that time, including registering new iocsh commands (for which you have to provide additional information in C code). See the various files in the <base>/src/iocsh/ directory for examples of the command tables and the related call to iocshRegister() that you have to make to add a new command. We really should have an example of how to do all this in the example template, but we don't appear to at present. There is no fundamental reason why we can't provide a way to register commands by just adding them to a .dbd file and have them converted into the appropriate tables automatically, it's just that nobody has had time to write that code yet. - Andrew -- Podiabombastic: The tendency to shoot oneself in the foot.
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |