On 11/24/2016 9:04 PM, TJoseph Powderly wrote: > wow, great Jim > if you want > i will test by trying to draw the hal files supplied with standard > linuxcnc distro That would be great. I will need some willing testers. > > also > how will you connect to a thread? > handle parameters & functions > bidirectional io > net names (edge names, the idea of the connection ) > deleting connections, adding connections... is done at textedit level? > then redraw? > sub-blocks with only connected pins exposed, black-boxed inside but can > expand to full diagram My plan for editing is still evolving but here is the overview. Adding a signal to a config will be simple as selecting a pin right clicking and selecting connect from a context menu. Then you would be prompted to select an existing signal to connect to or to select another pin. The signal would then be created between pins or would be connected from pin to existing signal. If a new signal would be created then it would prompt for the new signal name. This could be done with a running config by running the net command in halcmd and the results would be immediately available in linuxcnc. Bidirectional io will be a special case of the previous. Warnings will be displayed if incorrect netting is detected, for example if IO pin is attempted to be connected to an output pin. As much of the editing process will be handled in the utility as possible. This should also reduce errors in the configurations as checks can be made to prevent errors.
As for parameters and functions they also will be part of the component context menu. Functions can be added or removed from threads via the context menu and parameter values could be edited via the context menu. The plan is also to have a tree view to allow for a full view of the entire configuration which will also expose and allow editing of threads, functions, parameters. . . My biggest question as far as editing goes is how to determine what components are available to use? What directory would I look in to see what hal components are available for use? Is there a command line command that would provide a list of hal components? Once I have the list of components I can parse the man page for proper load command formatting and function names. As I said this is my "plan" for editing but I have not started on the editing code at all yet. Just a little playing with ideas here and there but no real progress. My overall plan is to get the viewing navigation portion working first then start on the editing code. If you cannot view and use an existing configuration correctly there is no need in editing. I think I will finish a couple more things that are hanging out there and then I will publish the first development version for testing. I will try to get this out in the next couple weeks. Thanks, Jim ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
