[Ri...] Posted December 8, 2023 Share Posted December 8, 2023 I have a large AutoRun setup with several pages. After selecting a Pallet in AutoRun, how can I pass that programs folder path to a variable or text file? I know this can be done; I just don't know how. Link to comment Share on other sites More sharing options...
[No...] Posted December 8, 2023 Share Posted December 8, 2023 Is this what you're looking for? getRecordHead("nameOfFile") Hint: A list of not-so-obvious header variables and their content can be found near the end of each inspection file. You'll know it when you see it. Link to comment Share on other sites More sharing options...
[Ri...] Posted December 8, 2023 Author Share Posted December 8, 2023 Reading the Inspection file will give me the previous folder path. #nameOfFile ' ->' Holds the path. I need to trigger an event at selection of the AutoRun program at selection of the Pallet. Example: User Clicks on a Pallet "My Program1", that mouse click has folder path information. How do I get that prior to selecting "Run"? Maybe I should explain more. I have an exe program that loads PCM data to and from "lastpart.para and runpart.para". I am trying to set a path variable in the exe program (VB.net) in leu of hardcoding path scenarios. Another company made a program (see image: Original PCM to Excel format.PNG), this needs updated for future use and we do not have the source code, so I wrote a program to do the same which allows for future enhancements.Original PCM to Excel format.PNG Link to comment Share on other sites More sharing options...
[Je...] Posted December 11, 2023 Share Posted December 11, 2023 Page 84 of the 2023 CALYPSO PCM manual. Link to comment Share on other sites More sharing options...
[No...] Posted December 11, 2023 Share Posted December 11, 2023 Please sign in to view this quote. Ah, so we're talking about an event outside of any loaded measurement plan. Are you absolutely sure that the exe you mentioned grabs the path information directly from Autorun? Because if an external program wants to retrieve data from Calypso, which is kept in memory and not saved anywhere, it needs to establish a connection via an API. There's no doubt Calypso has such an API, but it's not documented publicly (apart from the API to retrieve measurement results). Maybe that third-party exe uses this private API to get the information? Link to comment Share on other sites More sharing options...
[Ri...] Posted December 11, 2023 Author Share Posted December 11, 2023 With Jeffrey Penrod's post I think I figured out how it is being activated. There will be a copy of the EXE file in each CMM program folder along with some PCM files. PCM passes a directory string to start the EXE file. From that I should be able to get the path based on where my EXE file starts. cd=(getActualInspectionDir()) systemCallWithWait(cd+"\"+"parameters.exe") readPCMFile(cd+"\"+"runpart.para") if PN==0 cncBreak() endif The EXE file creates the data for "runpart.para". Link to comment Share on other sites More sharing options...
[No...] Posted December 11, 2023 Share Posted December 11, 2023 So it's actually NOT outside of an inspection plan 😃 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