my f`irst hal `file need help
- PhilipME
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 13
09 Aug 2024 20:07 - 09 Aug 2024 20:08 #307381
by PhilipME
my f`irst hal `file need help was created by PhilipME
I want to change the state of pin 17 on my breakout board. At this stage, I dont want any GUI involved.
I want to change the state of pin 17 by halrun command
halcmd: setp parport.0.pin-17-out 1
the hal file name secondhal.hal, then I issue
halrun -I -f secondhal.hal
loadrt threads name1=base-thread fp1=0 period1=50000 name2=servo-thread period2=1000000
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
1addf parport.0.read base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
but no change to bob pin 17
Can anyone help?
Good day
Philip
I want to change the state of pin 17 by halrun command
halcmd: setp parport.0.pin-17-out 1
the hal file name secondhal.hal, then I issue
halrun -I -f secondhal.hal
loadrt threads name1=base-thread fp1=0 period1=50000 name2=servo-thread period2=1000000
loadrt hal_parport cfg="0 out"
setp parport.0.reset-time 5000
1addf parport.0.read base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread
but no change to bob pin 17
Can anyone help?
Good day
Philip
Last edit: 09 Aug 2024 20:08 by PhilipME.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17916
- Thank you received: 4785
09 Aug 2024 20:27 #307384
by PCW
Replied by PCW on topic my f`irst hal `file need help
I'm not sure about halrun but the thread component needs
a start command when run from halcmd
a start command when run from halcmd
The following user(s) said Thank You: PhilipME
Please Log in or Create an account to join the conversation.
- PhilipME
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 176
- Thank you received: 13
09 Aug 2024 21:16 - 09 Aug 2024 21:18 #307387
by PhilipME
Replied by PhilipME on topic my f`irst hal `file need help
yes
I was missing the start
after adding start it is working
Now I will read how to make soft button
Thanks
I was missing the start
after adding start it is working
Now I will read how to make soft button
Thanks
Last edit: 09 Aug 2024 21:18 by PhilipME.
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds