(Solved) Probe Basic - HAL pins not being created

More
1 month 3 weeks ago - 1 month 3 weeks ago #349525 by Lcvette
Ok I see now, did you try just using a halbutton? If you just wanted color change I think that would work and be simple. Have to check, but I believe they are bidirectional.
Last edit: 1 month 3 weeks ago by Lcvette.

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

More
1 month 3 weeks ago #349526 by spumco

Ok I see now, did you try just using a halbutton? If you just wanted color change I think that would work and be simple. Have to check, but I believe they are bidirectional.
 
No, it didn't occur to me to use a button as an indicator.  And I didn't want an on-screen button or control widget.

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

More
1 month 3 weeks ago #349527 by Lcvette
doesn't have to be, you can give it no focus, im tinklering with it now just about have it and it is pretty easy with no code changes and making more of them would be way faster and not require code changes for each instance

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

More
1 month 3 weeks ago - 1 month 3 weeks ago #349528 by Lcvette
ok yeah this is what you want to do it is much cleaner with no code changes to hack it up, this is existing hal code and the button itself is none functional in the ui essentially becomes a label, you cannot click it or select it or do anything bu observe it physically.

you then just add your net in postgui.hal file and your off to the races!

here is the stylesheet used:

Code:
QPushButton {     color: white;     border-color: black;     border-style: solid;     border-radius: 5px;     border-width: 1px;     background: green;     font-family: "Probe Basic Bebas Mono";     font-size: 15pt; } QPushButton:checked {     background: red; } and for reference here is the simple net to the hal test_button:
Code:
# *** Probe graphic simulation trigger push probe tip *** net probe-in  =>  qtpyvcp.probe-in.out net probe-in  <=  qtpyvcp.probe-led.on net probe-in  =>  qtpyvcp.test_button.check


Last edit: 1 month 3 weeks ago by Lcvette.
The following user(s) said Thank You: spumco

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

More
1 month 3 weeks ago #349529 by spumco
That's really slick!

Any thoughts on the three-state label I mentioned?

PAUSED state is blinking.

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

More
1 month 3 weeks ago #349530 by Lcvette
and i am adding a flashing property to button widgets because thats a good idea..

 

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

Moderators: KCJ, Lcvette
Time to create page: 0.455 seconds
Powered by Kunena Forum