Open or close vismach with pyvcp button

More
3 years 6 months ago #269253 by cmorley
First, did the sample qt_vismach config run properly ? the image you posted seems to indicate it did.
If so could you post your custom vismach file?

Please Log in to join the conversation.

More
3 years 6 months ago #269258 by fery15sty
Yes. my configuration runs correctly, but it still uses the original simulation. in the .ini file I wrote:

###########
EMBED_TAB_NAME = qtscreen
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} vismach_mill_xyz
###########

and in my .hal file I wrote:

############
loadusr -W ./3axisatcgui
net j0 joint.0.pos-fb 3axisatcgui.joint0
net j1 joint.1.pos-fb 3axisatcgui.joint1
net j2 joint.2.pos-fb 3axisatcgui.joint2
############

3axisatcgui is my vismach simulation file, using the old vismach method.

Please Log in to join the conversation.

More
3 years 6 months ago #269261 by cmorley
You didn't include the obj files so I couldn't completely test but here is most of the work.
You need to add the decompressed folder to share/qtvcp/panels (where that is depends if you are using an installed version or RIP version)

Then add the missing object files into the folder.
Then to test, open a terminal and type: qtvcp -d 3axisatcgui.

If that works then we can change the command in the INI to load it.

 

Please Log in to join the conversation.

More
3 years 6 months ago #269262 by cmorley
the command for the INI will be:
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -c qtvcp_embed -x {XID} 3axisatcgui

Also you won't need/can't connect the HAL pins
so remove this:
############
loadusr -W ./3axisatcgui
net j0 joint.0.pos-fb 3axisatcgui.joint0
net j1 joint.1.pos-fb 3axisatcgui.joint1
net j2 joint.2.pos-fb 3axisatcgui.joint2
############

Please Log in to join the conversation.

More
3 years 6 months ago #269263 by fery15sty
here is my .obj file..

Please Log in to join the conversation.

More
3 years 6 months ago #269265 by fery15sty
I have tried, your instructions.. but it shows an error

 

Attachment not found



 

Attachment not found



 

Attachment not found



 

Attachment not found

Please Log in to join the conversation.

More
3 years 6 months ago #269266 by cmorley
Thanks for files - I had to do some adjustments...

here are the new files to replace all the others.

Please Log in to join the conversation.

More
3 years 6 months ago #269268 by cmorley
Also would it be ok to add your vismach to linuxcnc? are they copyrighted?

Chris

Please Log in to join the conversation.

More
3 years 6 months ago #269271 by fery15sty
thanks for your help, i appreciate it.

 

Attachment not found

Please Log in to join the conversation.

More
3 years 6 months ago #269272 by fery15sty
yes.. no problem, you can share it..

Actually I work for the company, but it's not a very private thing..

Please Log in to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum