hexagon logo

How can I save past runs as individual files

Hello,

I am relatively new to CMM programing. I was wondering if there was any way to set up a system where when a measurement routine ends, the program automatically saves the routine with the measurement points for that specific serial number to a set file directory. It's been a hassle for when I forget to print out a report at the end of a routine, go to run the next part and I lose my information for the previous one forever. I would like to have it set up as to where, when a measurement routine ends, the program asks me what i could like to name the file, and where to save it. Would someone with more knowledge of the program be able to assist me with some code that I can put in my programs so that this can be done, please?

Thanks
Parents


  • I am trying to insert the script into my program. I start to type script and it gives me this line of code:
    CS1 =SCRIPT/FILENAME= C:\USERS\CMM\DESKTOP\AUTOARCHIVE.BAS
    FUNCTION/Main,SHOW=YES,,,
    STARTSCRIPT/
    Hmmm. This is the same way it appears when I use the script. I don't get an ENDSCRIPT/ line in my edit window. I don't know why NinjaBadger's example has that. At any rate, it still executes properly for me. It might have been something that has changed in the newer software versions.


    I noticed that in ninja badger's code he has "ENDSCRIPT/" inserted after his start script but when I try and type "ENDSCRIPT" nothing pops up. Am I doing something wrong here? When I try and run my program, the file doesn't get routed to the selected folder I have in the script unless I press F9 on the line of code and hit the run button to the far right of the screen. Is there a way that I can insert this script code into a program and have it run automatically and send it to my requested directory without having to press F9 to run it each time?
    I don't know why it wouldn't run automatically when that command is executed in the measuring routine. The only thing I can think of is that when you insert a Basic Script command, PC-DMIS will automatically un-mark it (Skip it during execution). Make sure you have the command Marked. You can toggle it by putting the cursor on the command and hit F3.


    Try that
Reply


  • I am trying to insert the script into my program. I start to type script and it gives me this line of code:
    CS1 =SCRIPT/FILENAME= C:\USERS\CMM\DESKTOP\AUTOARCHIVE.BAS
    FUNCTION/Main,SHOW=YES,,,
    STARTSCRIPT/
    Hmmm. This is the same way it appears when I use the script. I don't get an ENDSCRIPT/ line in my edit window. I don't know why NinjaBadger's example has that. At any rate, it still executes properly for me. It might have been something that has changed in the newer software versions.


    I noticed that in ninja badger's code he has "ENDSCRIPT/" inserted after his start script but when I try and type "ENDSCRIPT" nothing pops up. Am I doing something wrong here? When I try and run my program, the file doesn't get routed to the selected folder I have in the script unless I press F9 on the line of code and hit the run button to the far right of the screen. Is there a way that I can insert this script code into a program and have it run automatically and send it to my requested directory without having to press F9 to run it each time?
    I don't know why it wouldn't run automatically when that command is executed in the measuring routine. The only thing I can think of is that when you insert a Basic Script command, PC-DMIS will automatically un-mark it (Skip it during execution). Make sure you have the command Marked. You can toggle it by putting the cursor on the command and hit F3.


    Try that
Children
No Data