- Posts: 19899
- Thank you received: 4655
Toggle On/Off Button
- andypugh
- Offline
- Moderator
-
Less
More
5 years 2 weeks ago #223091
by andypugh
Replied by andypugh on topic Toggle On/Off Button
If halmeter shows that every signal is working as-expected, then what isn't working?
Please Log in or Create an account to join the conversation.
- chris@cnc
- Offline
- Platinum Member
-
Less
More
- Posts: 529
- Thank you received: 140
5 years 2 weeks ago #223101
by chris@cnc
Replied by chris@cnc on topic Toggle On/Off Button
I have had a bad experience using loadrt and addf in the postgui.hal. Write this lines in your top level hal.
Code:
loadrt toggle count=3
loadrt toggle2nist count=3
addf toggle.0 servo-thread
addf toggle.1 servo-thread
addf toggle.2 servo-thread
addf toggle2nist.0 servo-thread
addf toggle2nist.1 servo-thread
addf toggle2nist.2 servo-thread
Please Log in or Create an account to join the conversation.
- julien83
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
5 years 2 weeks ago #223280
by julien83
Replied by julien83 on topic Toggle On/Off Button
Sorry guys. I confused halui.lube and halui.flood. now it's works
Please Log in or Create an account to join the conversation.
- Kasper-001
- Offline
- Premium Member
-
Less
More
- Posts: 81
- Thank you received: 5
4 years 10 months ago #229495
by Kasper-001
Replied by Kasper-001 on topic Toggle On/Off Button
hello i just tried to put in machine on button, but i can´t see whats wrong get this :
./test2.hal:346: Pin 'halui.machine.is-on' was already linked to signal 'tog-on'
but it is not linked?
my hal file under here
./test2.hal:346: Pin 'halui.machine.is-on' was already linked to signal 'tog-on'
but it is not linked?
my hal file under here
Please Log in or Create an account to join the conversation.
- Kasper-001
- Offline
- Premium Member
-
Less
More
- Posts: 81
- Thank you received: 5
4 years 10 months ago #229496
by Kasper-001
Replied by Kasper-001 on topic Toggle On/Off Button
haha just put a # in front of the line 346
Please Log in or Create an account to join the conversation.
Time to create page: 0.128 seconds