I am working on the code that reads HAL files directly. I am using this to get the loadrt statements so that I can split the components into the subcomponents. What do you all think is the best method for determining sub components? My first thought was to read the loadrt statements and get the number= variable and instantiate based on the number. Find the pins that have the component.n prefix and add them to the subcomponent. I would do the same for names= and instantiate based on the names in the list. I already have this code in place. However looking over some of the components. number= and names= are not always present and other loadrt variables determine the quantity and names of subcomponents. What do you all think is the best method?
Secondly when looking for halfiles the HAL system checks the .ini directory first then it checks a system library of halfiles. I think this system library is located at /usr/share/linuxcnc/hallib but I wanted to make sure that is the only place that is checked. Currently my code looks for the halfiles in the .ini directory or the specified directory then the /usr/share/linuxcnc/hallib directory. If changes are made to a halfile in the system library the new version will be saved in the .ini directory not in the library. Thanks, Jim ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers