On 12/5/2016 8:55 AM, andy pugh wrote: > > You can often (but not always) determine the sub-component count by > looking at the number of commas or spaces in the config string. (this > is moderately safe as the RTAPI_MP_ARRAY macros always break on commas > or spaces. > OK, So based on the above, what I currently do is I look in the string for "count=" and set up sub-components based on the count number. If "count=" is not present I look for "names=" and create sub-components based on splitting the string at the commas. So the next thing I could do would be look for a string with commas in it and then split it on the commas and create sub-components based on that quantity of sub-strings. However I am not sure I would be able to extrapolate the naming convention for the sub-components. In this case would I assume the naming convention would be component.NN with NN being the instance number of the sub-component? I guess I could look at the component pin names to determine what the naming convention is.
At this point I see this as my largest obstacle. Right now there is no convention so what will work for one component may not work for another. I want to attempt to make this work for all configurations but I have a feeling it may have limits. I am not sure that parsing the man page will do me any good either. There is too much variation in wording in the man pages also. Thanks, Jim ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers