- Posts: 175
- Thank you received: 0
my f`irst hal `file need help
2 years 2 months ago #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
Please Log in to join the conversation.
2 years 2 months ago #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
Please Log in to join the conversation.
2 years 2 months ago #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
Please Log in to join the conversation.
Time to create page: 0.078 seconds
