On 02/15/2021 04:36 PM, Ralph Stirling wrote:
I'm working on some ideas for a user interface for
a multichannel syringe pump.  It will support up to
twelve syringes, and link any combination of them,
such that a "leader" channel has a dispense rate,
and "follower" channels have dispense ratio as a
percentage of the "leader" channel rate.

I would like to be able to be able to add or remove
channels from within the gui itself, or at least
"gray out" disabled channels from the gui.  I've made
custom panels for Axis before, but never one where
the widgets themselves could be changed from within
the running gui itself.

Is this possible?  Any suggestions or examples to help?

The final system will just run with hal, no g-code
needed of course.  I expect I'll need some python,
which is fine.

I have done some apps on the Beagle Bone with Glade GUIs, no connection to LinuxCNC. I have pushed the xml about as far as it can go, with buttons that change color to show the mode, etc. I have never tried to change the xml on the fly, however.

Graying out a button should be fairly easy, that is about the same as changing the background color.

I have done some setups where there were "pages", in other words, you click on a button to "page" through a group of settings, and it repaints all the buttons on the screen with different values for that group. So, at atartup, the GUI shows settings for unit 1-16, and if you click a button, you can show the settings for unit 17-32, or 33-48, etc.

You could probably put all 12 controls on one page, and have an on/off button for each. If the button is set to off, the rest of the controls for that unit would be grayed out.

Jon


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to