Add Buttons in Probe Basic

More
8 months 1 week ago - 8 months 1 week ago #343284 by Lcvette
Replied by Lcvette on topic Add Buttons in Probe Basic
open a terminal and type in:

editvcp probe_basic

it will open the editor so you can see the properties. here is an image of them for reference:

 

 



Follow the sim hal and postgui hal to see the connections. note the pinbasename properties for the in gui button and the led and how the connections flow in postgui hal:

# *** Probe graphic simulation trigger push probe tip ***
net probe-in  =>  qtpyvcp.probe-in.out
net probe-in  <=  qtpyvcp.probe-led.on
Last edit: 8 months 1 week ago by Lcvette.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #343302 by DerKlotz
Replied by DerKlotz on topic Add Buttons in Probe Basic
I can open probe_basic now and QT Designer starts. The sidebar here shows many more options then on the sidebar when i open template_main-ui. I don´t have these QtPyVCP Widgets. So QtPyVCP it is probably not installed. 
So i tried to install it like shown here  www.qtpyvcp.com/install/pypi_install.html  . I installed the Prerequisites and did "python3 -m pip install qtpyvcp"
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Then i tried

sudo apt install python3-qtpyvcp
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3-qtpyvcp is already the newest version (5.1.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #343312 by Lcvette
Replied by Lcvette on topic Add Buttons in Probe Basic
you have a mess going on there. if you were installing per the probe basic docs then it would have looked exactly as what i showed above, that is from a very simple apt installation. you seem to be making this much harder on yourself than it should be. i would remove everything and reinstall from scratch using apt only, be sure to purge all installations you may have installed per the docs on how to do that that you used to install. hat goes for both probe basic and qtpyvcp.

once done you ONLY edit while running:

editvcp probe_basic

this goes for when you edit anything including the user sidebar, the user tabs, user buttons etc. this opens probe basic in qtdesigner and qtpyvcp so all of the existing custom widgets are available.

DO NOT EDIT THE PROBE BASIC SCREEN or it will break you apt update ability.

only run it to startup qtpyvcp with full functionality.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #343467 by DerKlotz
Replied by DerKlotz on topic Add Buttons in Probe Basic
Hello and sorry for the late reply. I got a new PC yesterday and i finished to do the Debian 12 installation right now.

I followed the Probe Basic Stable docs...

I stuck on step 3 now 
cd ~

cd Downloads

sudo dpkg -i linuxcnc-uspace_2.9.8_amd64.deb

These are my errors now... Python not installed? If yes how do i install it via Terminal?

Reading database ... 129701 files and directories currently installed.)
Preparing to unpack linuxcnc-uspace_2.9.8_amd64.deb ...
Unpacking linuxcnc-uspace (1:2.9.8) over (1:2.9.8) ...
dpkg: dependency problems prevent configuration of linuxcnc-uspace:
 linuxcnc-uspace depends on libboost-python1.74.0 (>= 1.74.0+ds1); however:
  Package libboost-python1.74.0 is not installed.
 linuxcnc-uspace depends on libboost-python1.74.0-py311; however:
  Package libboost-python1.74.0-py311 is not installed.
 linuxcnc-uspace depends on libgpiod2 (>= 1.5.1); however:
  Package libgpiod2 is not installed.
 linuxcnc-uspace depends on libmodbus5 (>= 3.1.4); however:
  Package libmodbus5 is not installed.
 linuxcnc-uspace depends on libtk8.6 (>= 8.6.0); however:
  Package libtk8.6 is not installed.
 linuxcnc-uspace depends on libudev-dev; however:
  Package libudev-dev is not installed.
 linuxcnc-uspace depends on iptables; however:
  Package iptables is not installed.
 linuxcnc-uspace depends on blt; however:
  Package blt is not installed.
 linuxcnc-uspace depends on mesa-utils; however:
  Package mesa-utils is not installed.
 linuxcnc-uspace depends on python3-tk; however:
  Package python3-tk is not installed.
 linuxcnc-uspace depends on python3-numpy; however:
  Package python3-numpy is not installed.
 linuxcnc-uspace depends on python3-opengl; however:
  Package python3-opengl is not installed.
 linuxcnc-uspace depends on python3-configobj; however:
  Package python3-configobj is not installed.
 linuxcnc-uspace depends on python3-xlib; however:
  Package python3-xlib is not installed.
 linuxcnc-uspace depends on libgtksourceview-4-dev; however:
  Package libgtksourceview-4-dev is not installed.
 linuxcnc-uspace depends on tcl8.6; however:
  Package tcl8.6 is not installed.
 linuxcnc-uspace depends on tk8.6; however:
  Package tk8.6 is not installed.
 linuxcnc-uspace depends on bwidget (>= 1.7); however:
  Package bwidget is not installed.
 linuxcnc-uspace depends on tclreadline; however:
  Package tclreadline is not installed.
 linuxcnc-uspace depends on tclx; however:
  Package tclx is not installed.
 linuxcnc-uspace depends on python3-pyqt5; however:
  Package python3-pyqt5 is not installed.
 linuxcnc-uspace depends on python3-pyqt5.qsci; however:
  Package python3-pyqt5.qsci is not installed.
 linuxcnc-uspace depends on python3-pyqt5.qtsvg; however:
  Package python3-pyqt5.qtsvg is not installed.
 linuxcnc-uspace depends on python3-pyqt5.qtopengl; however:
  Package python3-pyqt5.qtopengl is not installed.
 linuxcnc-uspace depends on python3-opencv; however:
  Package python3-opencv is not installed.
 linuxcnc-uspace depends on python3-espeak; however:
  Package python3-espeak is not installed.
 linuxcnc-uspace depends on python3-dbus.mainloop.pyqt5; however:
  Package python3-dbus.mainloop.pyqt5 is not installed.
 linuxcnc-uspace depends on python3-pyqt5.qtwebengine | python3-pyqt5.qtwebkit; however:
  Package python3-pyqt5.qtwebengine is not installed.
  Package python3-pyqt5.qtwebkit is not installed.
 linuxcnc-uspace depends on espeak-ng; however:
  Package espeak-ng is not installed.
 linuxcnc-uspace depends on pyqt5-dev-tools; however:
  Package pyqt5-dev-tools is not installed.
 linuxcnc-uspace depends on gstreamer1.0-tools; however:
  Package gstreamer1.0-tools is not installed.
 linuxcnc-uspace depends on espeak; however:
  Package espeak is not installed.
 linuxcnc-uspace depends on python3-poppler-qt5; however:
  Package python3-poppler-qt5 is not installed.
 linuxcnc-uspace depends on psmisc; however:
  Package psmisc is not installed.

dpkg: error processing package linuxcnc-uspace (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.36-9+deb12u13) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for shared-mime-info (2.2-1) ...
Errors were encountered while processing:
 linuxcnc-uspace
Last edit: 8 months 1 week ago by DerKlotz.

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #343469 by tommylight
Did you do a
sudo apt update
before
sudo dpkg -i linuxcnc-uspace_2.9.8_amd64.deb
?

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago - 8 months 1 week ago #343472 by DerKlotz
Replied by DerKlotz on topic Add Buttons in Probe Basic
Pretty sure yes... i got it to work now. But the latency of my new system is really really slow. I switch back to the old one. 

Last question for today...
" i would remove everything and reinstall from scratch using apt only, be sure to purge all installations"
what exactly i need to deinstall and which commands in the terminal?
Last edit: 8 months 1 week ago by DerKlotz.

Please Log in or Create an account to join the conversation.

Moderators: KCJ, Lcvette
Time to create page: 0.233 seconds
Powered by Kunena Forum