Loadrt syntax
07 Mar 2019 18:43 #128011
by dberndt
Loadrt syntax was created by dberndt
Looking for some help at the command line using halcmd.
If I have my machine running and it has for example a minmax component loadrt'd, addf'd and net'd in use, all good named minmax.0.
And I come along at the command line and decide I want to add another minmax I can't seem to do that.
halcmd loadrt minmax names=minmax.1
Doesn't seem to do it
halcmd loadrt minmax names=test
Doesn't work.
The syntax is stumping me. If I unloadrt the existing minmax item and then reload it with a higher count, that works, but it causing the existing minmax.0 to be removed which is unpleasant.
Is there a syntax to dynamically add more of an component of a pre-existing type? I expect there is and I'm just missing some basic syntax.
If I have my machine running and it has for example a minmax component loadrt'd, addf'd and net'd in use, all good named minmax.0.
And I come along at the command line and decide I want to add another minmax I can't seem to do that.
halcmd loadrt minmax names=minmax.1
Doesn't seem to do it
halcmd loadrt minmax names=test
Doesn't work.
The syntax is stumping me. If I unloadrt the existing minmax item and then reload it with a higher count, that works, but it causing the existing minmax.0 to be removed which is unpleasant.
Is there a syntax to dynamically add more of an component of a pre-existing type? I expect there is and I'm just missing some basic syntax.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
07 Mar 2019 18:53 #128012
by tommylight
Replied by tommylight on topic Loadrt syntax
Not sure but i think it should be
loadrt minmax names = minmax.0, minmax.1
addf minmax servo-thread
Then you have to net those 2, namely minmax.0 and minmax.1
loadrt minmax names = minmax.0, minmax.1
addf minmax servo-thread
Then you have to net those 2, namely minmax.0 and minmax.1
Please Log in or Create an account to join the conversation.
07 Mar 2019 19:11 #128015
by dberndt
Replied by dberndt on topic Loadrt syntax
Having minmax.0,minmax.1, minmax.2, minxmax.3 already existing.
halcmd loadrt minmax names=minmax.0, minmax.1, minmax.2, minmax.3, minmax.4
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
another try
halcmd loadrt minmax names=minmax.4
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
another try:
halcmd loadrt minmax names=test
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
halcmd loadrt minmax names=minmax.0, minmax.1, minmax.2, minmax.3, minmax.4
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
another try
halcmd loadrt minmax names=minmax.4
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
another try:
halcmd loadrt minmax names=test
<commandline>:0: waitpid failed /usr/bin/rtapi_app minmax
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for minmax failed, returned -1
Please Log in or Create an account to join the conversation.
07 Mar 2019 20:16 #128021
by MaHa
Replied by MaHa on topic Loadrt syntax
How about
loadrt minmax count=4
then you have minmax.0 up to minmax.3
maybe have to addf those
loadrt minmax count=4
then you have minmax.0 up to minmax.3
maybe have to addf those
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
07 Mar 2019 20:17 #128022
by tommylight
Replied by tommylight on topic Loadrt syntax
Please Log in or Create an account to join the conversation.
07 Mar 2019 20:22 #128023
by dberndt
Replied by dberndt on topic Loadrt syntax
Neither of the above help.
It's not specific to minmax, it's the same generic question for any component. Try it yourself, pick a componenet that you can have more of, loadrt one, addf it, do all the things you need. Then try to loadrt another.
It's not specific to minmax, it's the same generic question for any component. Try it yourself, pick a componenet that you can have more of, loadrt one, addf it, do all the things you need. Then try to loadrt another.
Please Log in or Create an account to join the conversation.
07 Mar 2019 20:49 #128029
by MaHa
Replied by MaHa on topic Loadrt syntax
As i remember, i had to set count= in the mymachine.hal to the proposed total amount used, also those to use later. I had the same problem with my separate pendant .hal file and postgui.hal all using toggle and toggle2nist.
Please Log in or Create an account to join the conversation.
07 Mar 2019 23:37 #128042
by cmorley
Replied by cmorley on topic Loadrt syntax
loadrt minmax names=minmax.1
works for me in master. (no spaces after names=)
Chris M
works for me in master. (no spaces after names=)
Chris M
Please Log in or Create an account to join the conversation.
08 Mar 2019 14:39 #128079
by andypugh
Unfortunately, as you have noticed, you can't add more of a component at runtime.
You can use unloadrt to remove the existing minmax ccomponents then loadrt again with more of them, and remake all the connections.
Sadly there isn't an easier way.
You might be able to "save netl" then "source" to re-make the lost links.
Replied by andypugh on topic Loadrt syntax
If I have my machine running and it has for example a minmax component loadrt'd, addf'd and net'd in use, all good named minmax.0.
And I come along at the command line and decide I want to add another minmax I can't seem to do that.
Unfortunately, as you have noticed, you can't add more of a component at runtime.
You can use unloadrt to remove the existing minmax ccomponents then loadrt again with more of them, and remake all the connections.
Sadly there isn't an easier way.
You might be able to "save netl" then "source" to re-make the lost links.
Please Log in or Create an account to join the conversation.
08 Mar 2019 18:00 #128099
by dberndt
Replied by dberndt on topic Loadrt syntax
Thanks Andy. I believe you are correct based on my experience. It's too bad, would be nice to be able to do that. Though there are probably many other features I'd prioritize over this.
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds