vismach --import STL
19 Jun 2014 18:38 #48120
by ArcEye
Replied by ArcEye on topic vismach --import STL
OK
I will hopefully be able to try it tomorrow
regards
I will hopefully be able to try it tomorrow
regards
Please Log in or Create an account to join the conversation.
21 Jun 2014 18:35 #48163
by ArcEye
Replied by ArcEye on topic vismach --import STL
Hi
There is nothing wrong with your actual component, it is the way you are trying to create it.
BIG rule No 1, the component and the file it is in MUST be the same name.
The file 6hus-gui-1.py has a component name puma560gui inside it.
Not only does this component already exist, in a file of that name, but if you load the file it will hang forever trying to find a component called 6hus-gui-1
The file 6hus-gui-2.py has a component called 6husgui inside it and will fail for the same reasons.
Not so big rule No 2, do not use dashes in component names
You can get away with it in python probably, but it is a good habit to start.
When you write a component that uses C, the compiler can get very confused trying to resolve what it thinks is a subtraction operation with 2 named variables
I rewrote the component name in the 6hus-gui-2.py file, changed the STL file paths, changed the file name to suit and added 6husgui.py to the submakefile
The result built and this is the output rendering when run through halcmd, which presumably is what you intended.
regards
There is nothing wrong with your actual component, it is the way you are trying to create it.
BIG rule No 1, the component and the file it is in MUST be the same name.
The file 6hus-gui-1.py has a component name puma560gui inside it.
Not only does this component already exist, in a file of that name, but if you load the file it will hang forever trying to find a component called 6hus-gui-1
The file 6hus-gui-2.py has a component called 6husgui inside it and will fail for the same reasons.
Not so big rule No 2, do not use dashes in component names
You can get away with it in python probably, but it is a good habit to start.
When you write a component that uses C, the compiler can get very confused trying to resolve what it thinks is a subtraction operation with 2 named variables
I rewrote the component name in the 6hus-gui-2.py file, changed the STL file paths, changed the file name to suit and added 6husgui.py to the submakefile
The result built and this is the output rendering when run through halcmd, which presumably is what you intended.
regards
Please Log in or Create an account to join the conversation.
21 Jun 2014 18:40 #48164
by ArcEye
Replied by ArcEye on topic vismach --import STL
This is a zip of the files I inserted / changed in src/hal/user-comps/vismach
regards
regards
Please Log in or Create an account to join the conversation.
23 Jun 2014 09:42 #48193
by tiffany
Replied by tiffany on topic vismach --import STL
Please Log in or Create an account to join the conversation.
23 Jun 2014 21:41 #48201
by ArcEye
I have shown you can load the component with halcmd and it will display OK.
I don't know what you are doing when you get these errors, without the full configs, I cannot even know if I can help or not
regards
Replied by ArcEye on topic vismach --import STL
I tried again~ but there is always some errors;
I have shown you can load the component with halcmd and it will display OK.
I don't know what you are doing when you get these errors, without the full configs, I cannot even know if I can help or not
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.301 seconds