how to auto-set widget?
into the file: ../emc2-dev/src/emc/usr_intf/axis/scripts/axis.py , i changed the line 3051 in this way:
in this way it creates the hal pin i need, also if loaded inside emc2 windows.cmd = "halcmd loadusr -Wn tgvcp gladevcp".split()
into the .ini file the Gladevcp line looks like that:
GLADEVCP = -c tgvcp -u tgvcp.py -H tgvcp.hal tgvcp.ui
obviously i needed to run: make , into my src directory.
If i did something wrong please correct me.
Thanks!
p.s. I still need an hint on the previous question about the inifile.
Ciao, Davide.
Please Log in or Create an account to join the conversation.
Re: "pin not created":
The issue could be sequencing. Note that when using a tab inside Axis, gladevcp is started by Axis, which means that the pins created by gladevcp are only accessible after Axis startup. Therefore these pins can be referenced only by HAL commands which are executed through HAL/POSTGUI_HALFILE. Those are executed post gladevcp setup when running inside Axis in the right-hand panel.
-Michael
dab77 wrote:
That's why i'm asking help here, 'cause it seems strange that it didn't create the pin!
now i'll post my files, which work now, but only if i run them after emc2:
then i try again to set them to work inside the emc2 window, and call all the pins gladevcp.xxx...
Please Log in or Create an account to join the conversation.
p.s. another question for you, in the .py file instead of this line:how can i write directly the name of the file? ..i couldn't..inifile = emc.ini(os.getenv("INI_FILE_NAME"))
try
inifile = emc.ini("/path/to/inifile")
-Michael
Please Log in or Create an account to join the conversation.
Yes it should be like that, but if the pins and glade hal file have the standard name 'gladevcp' the pin is not created. I can say that because i tried to disable all the references to that pins, so that emc2 runs without errors and i can see the pins....
Re: "pin not created":
The issue could be sequencing. Note that when using a tab inside Axis, gladevcp is started by Axis, which means that the pins created by gladevcp are only accessible after Axis startup. Therefore these pins can be referenced only by HAL commands which are executed through HAL/POSTGUI_HALFILE. Those are executed post gladevcp setup when running inside Axis in the right-hand panel.
-Michael
gladevcp.max-value is not there.
then i have tried, as i wrote in my last post, to change the default name to something else, and it worked.
but i really can't understand definitely where the bug is.
I thought i sent you all the necessary files, i'll send you tomorrow all that you may need to try that your self (except you should have a thrustmaster joystick...)
The only thing i didn't try was to put the file name inside ""... sorry.try
inifile = emc.ini("/path/to/inifile")
-Michael
I'll try that tomorrow.
Thanks, Davide.
Please Log in or Create an account to join the conversation.
Ah, maybe it's because this configuration is intended to be run on emc2.4 JA3 branch? so axis and joint configuration into the .ini file is different from standard emc2.
Please Log in or Create an account to join the conversation.
I checked ...
What is missing?
Your homebrew kins module, and the fact that you are running some none-standard branch?
Look, this is the deal:
You ask for help, so please do your part of the work first. That is: isolating the problem so it can reproduced without somebody else fiddling for hours on end. This is not a manufacturer support hotline with handholding for a fee.
Your kins stuff, JA3 etc etc is obviously irrelevant to the problem you claim exists.
Please take the time to take master or v2.5_branch, and modify configs/sim/axis.ini it until it shows the problem. Then file it on the bugtracker so it isnt forgotten in the mists of forum posts.
There are some really good Python tutorials online, and this site isnt one of them.
- Michael
Please Log in or Create an account to join the conversation.
I have this machine ready also on emc2.5, so i'll try my config there and report results, as i have possibility.
Thank you again for helping me.
Please Log in or Create an account to join the conversation.