Jump to content

Creating an incremental custom variable?


---
 Share

Recommended Posts

I've been using the built in Part Ident variable in my reports as part of my serial number naming convention. My serial number format is $Date Code - $Incremental Part Number. The problem I've run into is that if I believe the "Part Ident" variable is not meant to be duplicated ever. If I run parts 1->10 today and 1->10 tomorrow, Calypso will overwrite the point data needed for subsequent evaluation with whatever is the most recent part "1", even if they were run on different dates.

How can I create a user variable that auto-increments to the next sequential number after a part has been run?
Link to comment
Share on other sites

I always label my incremental part number with a date like 01.03.22-1 so, if I rerun the same part number the next day it will be different and won't overwrite the subsequent files.
The last number automatically updates to 2 and then 3,ect. 01.03.22-2, 01.03.22-3.
You could put the serial number and then a date and then the incremental number but, you have to remember to change the date the next time it is run on a different date.
Link to comment
Share on other sites

Please sign in to view this quote.

You can create a custom file name as well.
"Date_"+getRecordHead("dateshort")+"_Time_"+getRecordHead("time")+"_IncPartNum_"+getRecordHead("partnbinc")+".zmp"
659_e8b68c564d5f792fb32e4b712ac67de7.png
Then if you place it in Name for output file for all Measurement Plan then it is just two checkboxes for each new Measurement Plan. 🙂
Link to comment
Share on other sites

If you want to get really fancy to make things nice and clean. You can have the software place the files (this applies to any output file) in subfolders based upon header information.
"C:\Measuring Points\"+getRecordHead("planid")+"\Purchase Order_"+getRecordHead("u_{1110}")+"\SN_"+getRecordHead("u_{2216}")+".zmp"
659_e8b68c564d5f792fb32e4b712ac67de7.png

Capture.PNG

Link to comment
Share on other sites

 Share

×
×
  • Create New...