Flexible GUI

More
20 Jan 2025 02:49 #319435 by rodw
Replied by rodw on topic Flexible GUI
Try halui.axis.selected u32 out  - selected axis (by index: 0:x 1:y 2:z 3:a 4:b 5:cr 6:u 7:v 8:w)

Please Log in or Create an account to join the conversation.

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
20 Jan 2025 06:44 #319444 by blazini36
Replied by blazini36 on topic Flexible GUI

Try halui.axis.selected u32 out  - selected axis (by index: 0:x 1:y 2:z 3:a 4:b 5:cr 6:u 7:v 8:w)
 

That's a hal pin, that doesn't have anything to do with how Flex GUI would handle displaying the value of the HAL pin.

What I mentioned was based on the Flex Label with a bit input that was just added, could add multiple bit inputs but now that I think about it that probably wouldn't go well if multiple bits were true. So yeah, it could use an S32/U32 input and that would probably solve that issue but there's still no way of displaying different text based on the value of the input other than just to display the value itself.

Something like this could work, it currently doesn't:
 
Attachments:
The following user(s) said Thank You: JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
20 Jan 2025 12:39 #319454 by JT
Replied by JT on topic Flexible GUI
I don't see any reason that can't be done in Flex... give me a few minutes to code that up.

JT
The following user(s) said Thank You: blazini36

Please Log in or Create an account to join the conversation.

  • blazini36
  • Away
  • Platinum Member
  • Platinum Member
More
20 Jan 2025 12:48 #319456 by blazini36
Replied by blazini36 on topic Flexible GUI
My GUI might be ugly, but at least I'm giving Flex a workout lol
The following user(s) said Thank You: JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
20 Jan 2025 14:06 #319460 by JT
Replied by JT on topic Flexible GUI

My GUI might be ugly, but at least I'm giving Flex a workout lol
 

I like it!

And here you go Flex GUI Multi-State HAL labels!
gnipsel.com/linuxcnc/flexgui/hal.html#multi-state-label

JT

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
20 Jan 2025 14:09 - 20 Jan 2025 14:11 #319461 by JT
Replied by JT on topic Flexible GUI

What I mentioned was based on the Flex Label with a bit input that was just added, could add multiple bit inputs but now that I think about it that probably wouldn't go well if multiple bits were true. So yeah, it could use an S32/U32 input and that would probably solve that issue but there's still no way of displaying different text based on the value of the input other than just to display the value itself.

Something like this could work, it currently doesn't:
 


Now it does :) and BTW it only uses U32. Oh and the function is hal_msl instead of hal_pin.

JT
Last edit: 20 Jan 2025 14:11 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
20 Jan 2025 14:14 #319462 by JT
Replied by JT on topic Flexible GUI
 

JT
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.135 seconds
Powered by Kunena Forum