On 1/12/23 23:45, Chris Morley wrote:
ok good it seems the useable camera number is 1 rather then the assumed 0:

<snip>
Port 1 is working and reads images (480.0 x 640.0)
<snip>

This can be set in the INI but looks like you need to pull in an update.
Or I can show you what to fix.

after that then you need to use this in the ini.
EMBED_TAB_COMMAND = halcmd loadusr qtvcp -d -c cam_align -x {XID} -o 
camnumber=1 cam_align

Chris
________________________________
From: gene heskett <ghesk...@shentel.net>
Sent: January 12, 2023 5:43 PM
To: emc-developers@lists.sourceforge.net <emc-developers@lists.sourceforge.net>
Subject: Re: [Emc-developers] Broken master 06jan23

On 1/11/23 16:43, Chris Morley wrote:
looks like you are using a command like this:

EMBED_TAB_COMMAND = qtvcp -d -c cam_align -x {XID} cam_align

try changing it to:
EMBED_TAB_COMMAND = halcmd loadusr qtvcp -d -c cam_align -x {XID} cam_align

Thats better, at least lcnc runs, but prints this on the terminal screen:

[QTvcp.QTVCP.QT_MAKEPINS][INFO]  No preference file - cannot set
preference geometry. (qt_makepins.py:160)
VIDEOIO ERROR: V4L: index 0 is not correct!
Could not open video device 0
VIDEOIO ERROR: V4L: index 0 is not correct!
Port 0 is not working.
Port 1 is working and reads images (480.0 x 640.0)
Unable to stop the stream: Invalid argument
Port 2 is not working.
VIDEOIO ERROR: V4L: index 3 is not correct!
Port 3 is not working.
VIDEOIO ERROR: V4L: index 4 is not correct!
Port 4 is not working.
VIDEOIO ERROR: V4L: index 5 is not correct!
Port 5 is not working.
VIDEOIO ERROR: V4L: index 6 is not correct!
Port 6 is not working.
[QTvcp][INFO]  Preference path: None (qtvcp:421)

So I issued a sudo reboot in case something has it running already. I'm
in the house, ssh'd into it.
so I'll restore the sshfs share, and attach the qtvcp.log. Done. I know
zip about qtvcp. Everything I done so far has been pyvcp.

Thank you Chris.  Take care & stay well.

Update, I was out in the garage, making a brass insert to install in a soldering iron to set heat set nuts into plastic holes as this printer has 75 of them to set, While the lathe was making brass dust, I logged into the go704 and ran it from its own keyboard, and was pleasantly surprised so see it work quite well, on its own monitor. The camera was looking at the edge grain of a 9 ply plywood shelf from about an inch away, and the stripes of the plywood layers and the grain of the wood were perfect. Hopefully I can get it mounted again and calibrated this time.

So on its own monitor, it works, but it does not work from an ssh -Y login. I do maintenance from an easy chair here in the house, but I don't move a machine unless I'm there to see it get started ok.

But this has gone on for several years, works till the buildbot makes me a version of master and I install it, and the camera is gone again.

It takes a couple days to make one of these screws, and that once its running, I'm fine with walking away for a couple hours. and due to limits of z motion on the 6040, making the stick round is a two stage job, which with the teeny tool takes around 36 hours in 2 stages, I approach it from the side as high as it will go until its centered over the stick, that stage 1, stage 2 is dropping the spindle until the 2x2's flats are gone as stage 2, then stage 3 actually carves the 12mm pitch, 2 start, buttress thread. That takes the final 3 or so hours, and I have stops at the end of each stage, so once its running. I can get some sleep.

I just updated that machine, and now the camera is working for an ssh -Y login. Now I wonder if it's because I am also locally logged in.

Should I go ahead and change the launch line as you suggested?

Many many thanks for getting it going again. Take care and stay well.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>



_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to