[Ch...] Posted June 18, 2018 Share Posted June 18, 2018 Hi all, I am setting up the autorun screen for my operators where some of the parts being scanned on a LineScan require post processing and data upload to PolyWorks separate from the inspection program. I have all the scripts ready and the batch file primed to go, BUT the report_end.bat or inspection_end.bat does not trigger the batch file to run. I am currently working on 5.8.28 on an empty program, as in I just created a new measurement plan and saved it with the .bat in the inspection folder. Does anyone have an idea on why I can't get the the .bat to execute? Thank you! -Chris Link to comment Share on other sites More sharing options...
[Ma...] Posted June 18, 2018 Share Posted June 18, 2018 Are you using PCM? If so, right click in the Characteristic tab and select Parameter. Paste your code in the Post Settings window. Mark Link to comment Share on other sites More sharing options...
[De...] Posted June 18, 2018 Share Posted June 18, 2018 I could be wrong, but I thought that if you stuffed a batch file in the program folder it would execute automatically at the end of the program. How true is this? Link to comment Share on other sites More sharing options...
[Ro...] Posted June 19, 2018 Share Posted June 19, 2018 I have a file "inspection_end.bat" in every one of my folders that triggers a train whistle sound at the end of a program run. it works fine in regular and autorun mode. I don't understand what you're trying to do with the empty program.... Matthew Yes it works if you know how to setup a bat file. name it inspection_end. Link to comment Share on other sites More sharing options...
[To...] Posted June 19, 2018 Share Posted June 19, 2018 Make sure it is a .bat file and not a .bat.txt file. Some editors will automatically add .txt to the file name. Use Windows Explorer to verify the file type is a Windows Batch File Link to comment Share on other sites More sharing options...
[Ch...] Posted June 26, 2018 Author Share Posted June 26, 2018 Called into Zeiss support, and figured it out, thought I would let everyone know... It was windows messing things up. The extension .bat gets saved as .bat.bat if you have hide extensions for known file types and you manually call the file a batch file. Its under folder options, "hide extensions for known file types" Link to comment Share on other sites More sharing options...
[Da...] Posted September 13, 2019 Share Posted September 13, 2019 Please sign in to view this quote. Hi! Is it possible that you could share how did you manage to pull this off? We have parts that take a long time to measure and would be great if we have a "sound alarm" when the measuring is finished. Does this .bat work on all versions? (we have 2016 Calyso on our machines). Would be greatfull! Regards Link to comment Share on other sites More sharing options...
[Ma...] Posted September 13, 2019 Share Posted September 13, 2019 Here is a link to the topic discussed before viewtopic.php?f=13&t=1706&p=10870&hilit=sound#p10870 Mark Link to comment Share on other sites More sharing options...
[No...] Posted September 13, 2019 Share Posted September 13, 2019 Please sign in to view this quote. Making this the default was one of the most stupid things Microsoft ever did! 🤬 Link to comment Share on other sites More sharing options...
[Ro...] Posted September 13, 2019 Share Posted September 13, 2019 Please sign in to view this quote. I attached a zip file, it contains a Bat file called "inspection_end" and the train whistle sounder i use. (FYI i use a train whistle in order to penetrate the ambient noise of my shop i need a loud and high pitch noise, a lower tone or a song would be difficult to hear) Put the train whistle somewhere in your computer that wont be moved or changed, i would suggest NOT putting it in a Zeiss folder as the file paths can change with major updates. I use C:/Temp because every computer has that file. Put the Inspection_end file in the program folder of the part you want the sounder on, right click on it and click "edit". change the file path to the place you put the whistle. Close and test by double clicking on the bat file, it should launch the sounder, if not then something is screwed up. If it works then you're done, Calypso will look for inspection_end at the end of every run and if present will execute it. Now that you're done you can copy the bat file and add the sounder to other programs as fast as you can hit [Ctrl V]gejkfgnjkfgjkfgdjk.JPGbat file & Train Whistle.zip Link to comment Share on other sites More sharing options...
[Ri...] Posted September 14, 2019 Share Posted September 14, 2019 Fun fact, if you name it run_end, it will trigger after the reporting/exporting is complete. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in