AR logo.png

ANNIN ROBOTICS

0
  • HOME

  • TUTORIALS

  • DOWNLOADS

  • THIRD-PARTY SOFTWARE

  • ROBOT KITS

  • FORUM

  • BLOG

  • CONTACT

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    ADGR
    Mar 03

    AR4 Control Software does` t want to start!

    in General Discussion

    Hey,


    I'm just trying to run the program for the AR4 version, but unfortunately nothing happens. The program crashes immediately after starting. I checked this on two different computers. Win10.


    Should I install something additional? Python for example?





    24 comments
    0
    24 Comments

    Share Your ThoughtsSign up to leave a comment.

    C
    Cody S
    Jun 07

    I'm unsure what I'm doing wrong, but it doesn't work for me on two different laptops. One is windows 11 and the other is Windows 10.

    Like

    C
    Chris Annin
    May 21

    I have compiled a exe beta version that has the serial timeout added. Please let me know if anyone having the windows 11 issue can open this and then set the com port.



    drive.google.com
    AR4 HMI interface 1.2 exe.zip

    Like
    M
    Minh Nguyen
    May 22
    Replying to

    Update Program start OK but I got an error when calibration, Robot is moving but then AR4 show Calibration fail. (Robot Calibration success with Ver 1.1 on another PC)

    Like

    C
    Chris Annin
    May 22
    Replying to

    @Minh Nguyen the serial com timeout should be the only difference but I'll do some testing on the calibration and let you know what I find.

    Like

    D
    dedoky
    May 23
    Replying to

    The program now loads up for me. It will be a while until I can test it with the hardware, but I'll let you know if there are any issues. Thanks!

    Like

    D
    dedoky
    May 20



    Adding the timeout of 1 second worked for me. It runs 4 functions after this, each which do a serial read and then time out, so there is a 4 second pause before the program loads. This runs fine when I do a build from sublime text editor. I can't compile yet, I have some python path issues after installing python from the windows app store =/


    Like

    C
    Chris Annin
    May 18

    Interesting, thank you for the feedback on that. The serial commands are nested in a "try" function which should write an error to the log if there is no serial connection available but still open the software. I will start looking into that and see what I can figure out.

    Like

    D
    dedoky
    May 17

    I know what is going on, at least in my case. I do not have any hardware at all yet. I only just ordered the parts kit last week.

    What freezes the program up is that it does a few ser.read() commands during startup, but there is no hardware to read from. If I comment out the serial reads on startup, it loads up quick. I was not aware the software wasn't meant to be run without any hardware attached. Maybe we could implement a timeout if there is no response?

    Like

    D
    dedoky
    May 17

    I have spent all day trying to figure this out. I then got a bit desperate and just started commenting out little bits of code to see if something would change.

    With serial commented out the software loads right up. I know this isn't a solution but letting you know in case it helps. I'll look in to this further as well.

    Like

    C
    Chris Annin
    May 16

    That error indicates the icon file is not in your build folder. I have not yet figured out the initial issue. I just bought a brand new windows 11 computer and I am unable to replicate the issue, the software starts for me. If anyone has any errors come up or any other indications that would help narrow this down it would be greatly appreciated.

    Like

    D
    dedoky
    May 14

    Anyone figure this out? I can't get the software to run on my main Windows 11 PC. I tried installing ttkthemese, pyserial, numpy and then pysintaller to make an executable, but I get an error when I try to run it.

    " File "AR4.py", line 75, in <module>

    File "tkinter\__init__.py", line 2109, in wm_iconbitmap

    _tkinter.TclError: bitmap "AR.ico" not defined"

    I may have just compiled something wrong.

    The downloaded pre-compiled version does the same for me as what is shown in the picture of the first post.

    Like

    M
    Minh Nguyen
    Apr 28

    Update: I try to reinstall old version of win 10 ( build: 1803) then ar4 soft work normaly. So i think the problem come with something change in windows.

    Like

    C
    Chris Annin
    Apr 27

    I haven't been able to reproduce the issue on windows 10 or 11 but Cody was able to send me a screenshot of the cmd window / error which helps immensely so I will work on this next week when I get back.

    Like

    C
    Cody S
    Apr 26

    I too am having the same issue as Minh Nguyen but on Windows 11

    . I'm attempting to work through it now, sadly I am rather unfamiliar with using Python/CMD. Chris, could you put together a step by step in the AR4 manual for people like myself? I just want to make sure I follow the correct steps. But now that I think of it, I believe you have outlined this somewhere in one of your videos.

    Like
    C
    Cody S
    Apr 26
    Replying to

    Update: I have zero issues getting the AR3 software up and running. It was a very quick and painless process. Sadly I can't provide any more insight.

    Like

    C
    Chris Annin
    Apr 17

    I've run the exe on windows 10 and 11 machines and have not been able to replicate the issue. I am continuing to investigate, in the meantime please keep me posted if anyone else has this issue or any findings.

    Like
    M
    Minh Nguyen
    Apr 24
    Replying to

    I got the same problem , when I run AR4.exe, command windows appear for 0.5s then nothing happen. I use win 10 64bit.

    Like

    J
    Jude Loza
    Apr 17

    So, I compiled the exe my self with no luck but after I installed the libraries with the pip install numpy pip install ttkthemes

    pip install pyserial Then I went to the directory of the file(you will have to enable the open command prompt window here option{https://www.youtube.com/watch?v=xhQz3pVWQDQ&ab_channel=TechSolution}) then go to the folder with the source code right click on it and open in command prompt. From there it is a simple as typing python AR4.py or python3 AR4.py

    Like

    J
    Jude Loza
    Apr 14

    I have come across the same issue I will try running it with python 3.9 as the .exe file does not work.

    Like

    A
    ADGR
    Mar 06

    I cannot run the exe file compiled by you.


    Today I compiled the AR4 program myself (also after some problems. With python 3.7 I could not connect the teensy board, after installing python 3.9 connecting worked). and it works.

    I tested the AR4 and AR3 program (compiled by you) on 3 different computers.

    On one it crashes as shown on the screenshot, on the second only the cmd window appears for about 0.5s and the program shuts down. On the third one it works without any problem.


    The AR3 program runs on all of them without any problem.



    Like
    M
    Minh Nguyen
    Apr 27
    Replying to

    @ADGR Hi, could you send me your AR4 software? I dont know how to compile by myself. Thank alot.

    My email: minh.nguyen299@gmail.

    Like

    C
    Chris Annin
    Mar 05

    Are you trying to run the source code or just the exe file?

    Like

    jroblesc
    Mar 03

    As I have a Mac, what I did was to install the last version of Python 3, and open a Terminal window to:

    1. Go to the AR4 source code directory

    2. Create a virtual environment in this terminal window (do "python3 -m venv venv")

    3. Install the ttkthemes, pyserial, and numpy libraries (using pip3 install <package>)

    4. and finally do: python3 AR4.py

    Hope it helps doing the same in Windows.


    Like
    24 comments