python embedded in linuxcnc isn't directly connected to the HAL module library.
The embedded python is for remap and is optional.
I suggested the HAL module because it's written in C++ which I assume you do 
know.
It's a stand alone module for communicating with HAL's shared memory.

There are also many components that connect to HAL's shared memory I'd suggest 
the C based drivers as comp hides the details. these can be used as reference 
for the basic premise - some are well commented.

Chris
________________________________
From: Reinhard <[email protected]>
Sent: May 14, 2020 7:22 PM
To: EMC developers <[email protected]>
Subject: Re: [Emc-developers] spindle status

Hi Chris,

On Donnerstag, 14. Mai 2020, 21:01:50 CEST Chris Morley wrote:
> reading and writing HAL is super useful for GUIs. python's HAL module would
> be a good source for ideas. it's C++ based. halcmd is C and might  be a
> little easier to digest.

My problem is, that I was able to build a hal-component. I did a dummy
toolchanger, that was pretty easy. And it worked, as long as I started it with
halcmd.
As soon as I start a program with halaccess without the help of halcmd, it
crashes. And I have no idea why. All dev-tools I know don't really help on it.

I would like to access hal from a library, that is not in the halcmd
environment, like I did for nml-layer. But I don't know, how to do that.
Python isn't any help for me, as I don't know Python and python is embedded in
Linuxcnc, so I don't know the startup environment too.

May be I have to dive into halcmd.

Next timeslot will be reserved for research :)


cheers Reinhard




_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to