Am 03.09.2012 um 07:28 schrieb Chris Morley:

> 
> I wish to write a python program to read the pin names etc.
> of a running HAL session. I don't know how to do this nor
> do I have a good idea of how to do it, so I can research.

bin there.. for LinuxCNC3 to support introspection, this will have to be be 
built-in

for now there's only two options:

- parse halcmd output
- write a program to fish out the objects, types and attributes using the 
hal_priv.h API - some hints can be gleaned examples in hal/utils/halcmd*c


-m


> 
> There are a couple of reasons I wish to do this: To begin I
> would like to make a test panel for Mesa cards.
> My efforts to do this inside of PNcconf were frustratingly close
> but I can not get it to work reliably. Something about making
> a HAL component inside of PNCconf. When you exit the component it
> doesn't completely remove it....crash the second time you open the test
> panel.
> 
> I wish to try this other route also for the future of PNCconf's ability to
> read the available pins of Mesa products. The XML file approach was 
> a fine way when there was only a few firmwares but doesn't work well
> since we don't issue any new one (in the official repository) to work 
> with the newest hardware.
> 
> So I am hoping someone could point me in a direction.
> The only way I can think of is redirecting a halcmd show to a temporary
> file then parse that but that seems pretty kludgey....Is there a better way?
> 
> Chris M
>                                         
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to