THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
AR4 Control Softwar...
 
Notifications
Clear all

AR4 Control Software does` t want to start!

28 Posts
10 Users
0 Reactions
412 Views
Avatar of raghuraman.b
(@raghuraman-b)
Active Member
Joined: 2 months ago
Posts: 6
 

@dedoky

Watch Annin's python startup video, and follow the exact same procedure. This error may not appear.

Still the error persists, comment out the line root.iconbitmap(r'AR.ico')



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

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.



   
ReplyQuote
Avatar of dedoky
(@dedoky)
Active Member
Joined: 2 months ago
Posts: 13
 

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.


This post was modified 2 months ago by dedoky

   
ReplyQuote
Avatar of dedoky
(@dedoky)
Active Member
Joined: 2 months ago
Posts: 13
 

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?



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

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.



   
ReplyQuote
Avatar of dedoky
(@dedoky)
Active Member
Joined: 2 months ago
Posts: 13
 

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 =/



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

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.

https://drive.google.com/file/d/1W4AJropRUT94x60HF9VA-irE5EGUjEn4/view?usp=sharing



   
ReplyQuote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

@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.



   
ReplyQuote
Avatar of dedoky
(@dedoky)
Active Member
Joined: 2 months ago
Posts: 13
 

@chris-annin 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!



   
ReplyQuote
Avatar of Cretan1987
(@cretan1987)
Eminent Member
Joined: 2 months ago
Posts: 13
 

@chris-annin please share the link again for me. I am new and is expired. Thank you.



   
ReplyQuote
Avatar of Cody S
(@cody-s)
Eminent Member
Joined: 2 months ago
Posts: 20
 

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.



   
ReplyQuote
Avatar of Cretan1987
(@cretan1987)
Eminent Member
Joined: 2 months ago
Posts: 13
 

any updates on that?



   
ReplyQuote
Frank G
(@frank-g)
Active Member
Joined: 2 months ago
Posts: 3
 

I'm just trying to run the 5.1 version for the first time. The demo codes like the "move axis" always crashed after 3 clicks on one axis. Without the demo code the software was working fine. Managed to calibrate axis 1-4 without problem 6 went haywire and no the software does not start anymore. It just hangs while trying to start. Using Win 11... not sure what else to try?



   
ReplyQuote
Page 2 / 2
Share:
Upload your Photo