Asked — Edited

Auto Shut Down Of Ezb And Computer?

I have been successful with the Help of Alan (@thetechgruru) in having my robot automatically start by applying power to the EZB and starting my computer. This allows the robot to fully activate.

I have built a script that upon verbal command I can get the program and the EZB to shut down.

My next goal is to have this verbal command disconnect the EZB and shut off the computer. I know there is a command to disconnect the EZB which I can add to the verbal shut down script. I can also add a relay which applies and removes the EZB power prior to startup and after shut down.

My question is: Is it possible to shut off the computer from the EZB ?


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

#9  

Just a reminder, I am using Win 7.

It almost works. I tried the script using the /p and it gets to the shutdown window but says it is need ARC to be closed. It goes no further.

I tried the /f and it brings me to another screen on which I need to activate a button to complete the shut down.

Any thoughts?

#10  

Hi Dj, I don't want to do any Sleep or Hibernate functions. I need the computer to fully shut down. The reason is, I remove all power once it is shut down.

I have tried not completing the shut down. With the force screen open I remove the power. I know this is not good to do. Upon restarting I get an error screen which asks how to restart. ( Safe Mode etc.) If I wait the 25 seconds or so, it will do a "Start Windows Normally". I know it works, but I also know it is not right.

My end goal is having a Latte Panda inside my robot. I will only have a Power / Safety switch which supplies power to the whole system. This will start the robot and remove power after shutdown. (The start part works fine.)

Any other ideas?

#11  

Andy, Try a timed shutdown to give ARC time to close. Try replacing the command in the shutdown .EXE file with the following command:

shutdown.exe -s -t 00 -f

This sets the shutdown to take place immediately when the shortcut is clicked. However edit the '00' part of the code to reflect the number of seconds delay that will take place before shutdown in implemented.

This delay should give ARC time to close.

If you still have issues like the computer not shutting down all the way go back to Alan's command but add the delay to the end. Not sure how to format that but try looking at this (or maybe someone can help with the santex):

Timed delay shutdown of win 7

#12  

The issue with shutdown.exe -s -t 00 -f is that depending on the computer, it may shut down the operating system, but not actually power it down (the screen will say "it is now safe to power off your computer"

Hibernate is actually a good solution. Unlike Sleep, hibernate requires no power, and will return the computer to the exact state it was in before hibernating (as far as what applications were running). You will definitely need the connect script in a time loop like we discussed earlier though because ARC will already be running, so it won't know to execute the script on startup.

Alan

#13  

Ya, my suggestion seems to suck. LOL:) Useing the /f switch would shut down ARC right away anyway.


/f = This option forces running programs to close without warning. Except with the /l, /p, and /h options, not using shutdown's /f option will present a warning about the pending shutdown or restart.

Maybe if the /f switch was left out and just the -s and -t 00 switches?

Andy wants to cut power to the computer with a outside switch when he leaves the building. If the computer is in Hibernate mode and loses power what would this do the next time he starts the computer?

#14  

Hibernate does not use any power... The current windows session (contents of RAM) is copied to a file on the hard drive... The computer then basically shuts down. Next time you press the power button the image file or whatever you call it is copied back to RAM so you can continue where you left off... If you cut the power while a PC is in hibernation mode it will still boot up to it's last session. So hibernation would work well in this case...

#15  

Thanks to all for the help.

So, if I understand right, I can use the method DJ mentioned to shutdown in hibernate, Then do I still need the same startup script Alan gave ?

#16  

You need the connect script in your app. Technically you don't need the shortcut in the startup folder, but it would be useful if the computer unexpectedly reboots or otherwise starts up from powered off rather than restoring from hibernation.

Alan