[No...] Posted Tuesday at 07:13 AM Share Posted Tuesday at 07:13 AM (edited) Is there a way in PCM to find out at the end of a run whether a characteristic table file was generated and exported (i.e. if the table file option was activated in the start window AND if the custom path setting was set and activated) where (custom path and file name) it was exported to. I think this would need a few "undocumented" commands. Does anyone happen to know some? 🙂 Edited Tuesday at 07:14 AM Link to comment Share on other sites More sharing options...
[Mi...] Posted Tuesday at 10:49 AM Share Posted Tuesday at 10:49 AM Hello Norbert, all generated files are logged in the protocols.log file located in the actuals directory (directoryPath("actuals")): baseSystem().machine.inspection.settings.protocollog settingGet("protocollog") remark: baseSystem().machine.inspection.settings.blabla is the "same" as settingGet("blabla") If the table file option is activated in the start window: baseSystem().machine.inspection.settings.resultToTableFileDialog settingGet("resultToTableFileDialog") settingGet("resultToTableFile") shows if table files are activated You can check custom path settings with baseSystem().machine.inspection.settings.protocolSettings.outputFileDefinition settingGet("protocolSettings").outputFileDefinition especially (returns nil if not) baseSystem().machine.inspection.settings.protocolSettings.outputFileDefinition.tableFileHdr baseSystem().machine.inspection.protocol.protocolSettings.outputFileDefinition.tableFileChr baseSystem().machine.inspection.protocol.protocolSettings.outputFileDefinition.tableFileFet 1 1 Link to comment Share on other sites More sharing options...
[Mi...] Posted Tuesday at 11:32 AM Share Posted Tuesday at 11:32 AM Please sign in to view this quote. Edit: Missing files are labeled with MISSING in the protocols.log file: C:\Users\Public\Documents\Zeiss\CALYPSO\workarea\results\somtehing_2026_07_28_pwr.pdf MISSING By the way: Why can't I edit my posts anymore? 1 1 Link to comment Share on other sites More sharing options...
[No...] Posted Tuesday at 01:43 PM Author Share Posted Tuesday at 01:43 PM Insane! Thanks a lot! I didn't expect it to be that easy. Never payed attention to that log file before. Does the log grow or does it always mirror the state of the last run? Because if it doesn't grow and missing files are marked, I probably won't need all the other check functions. 👍 Link to comment Share on other sites More sharing options...
[No...] Posted 9 hours ago Author Share Posted 9 hours ago Please sign in to view this quote. One more question: Can we also access other (non-inspection) settings this way? settingGet() seems to be specially deisgned for inspection settings. What about more general settings? Link to comment Share on other sites More sharing options...
[Mi...] Posted 3 hours ago Share Posted 3 hours ago Please sign in to view this quote. Hello Norbert, the log always mirrors the state of the last run. But the file is only updated at the end of run. Meanwhile it contains the data of the last run. To be save you may delete it at start. Link to comment Share on other sites More sharing options...
[Mi...] Posted 3 hours ago Share Posted 3 hours ago Please sign in to view this quote. What kind of settings do you have in mind? Link to comment Share on other sites More sharing options...
[No...] Posted 2 hours ago Author Share Posted 2 hours ago Please sign in to view this quote. The best time to run my code (from an external PCM file) is something I have yet to figure out. I will probably just read the protocol name from that log and hope it wil already be updated at that time. But thinking about it, the best way to do it would be to retrieve the actual string written by Calypso to the log. That would also avoid possible errors if the configuration is changed in the future. Please sign in to view this quote. Things from \config\env\values for example. How does one figure out all those queries in the first place? I'm clearly mssing something here although I know the basics. 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