[Ka...] Posted Tuesday at 09:17 AM Share Posted Tuesday at 09:17 AM Dear colleagues, As much of CALYPSO still dates back to the 1990s, when IT was simply a tool and usually worked, I’m hoping for the standard functionality of that era. Virtually every piece of software (even CATIA...) could be controlled or enhanced via environment variables. One example is the batch files, which still work well as user exits. Now I would like to trigger a user input via one of these batch files, *calculation_end.bat*. I would then like to use this input – for example, a name – as a log header variable in a PiWeb log. We do not have PCM, which is probably the biggest limitation for such functionality. So is there a way to get an environment variable into PiWeb somehow? e.g. Zaphod_Beeblebrox=42 as environment variable Best Regards Karsten Link to comment Share on other sites More sharing options...
[Ch...] Posted Tuesday at 01:03 PM Share Posted Tuesday at 01:03 PM I believe so by mapping header variables Here's a doc I stumbled upon .. https://qualityforum.zeiss.com/migration/images/267_af4856641ffdecd817e9e29ae54f4816.pdf 1 Link to comment Share on other sites More sharing options...
[Ab...] Posted Tuesday at 03:02 PM Share Posted Tuesday at 03:02 PM we have a Knowledge base article also on How to Customize the Standard Protocol Header https://portal.zeiss.com/knowledge-base?id=454780 1 Link to comment Share on other sites More sharing options...
[Ka...] Posted 2 hours ago Author Share Posted 2 hours ago Chris, Abbas Thank you very much for your help. My question was about external variables that are NOT defined in CALYPSO but come from the Windows system – in other words, a user’s environment variables. Alternatively, a way in which I can, for example, upload external test characteristics for a measurement to the (local) PiWeb database. Example: A measurement taken using a hand-held device that writes the data to a file. Then upload this data to the PiWeb database. Regards Karsten Link to comment Share on other sites More sharing options...
[Ri...] Posted 56 minutes ago Share Posted 56 minutes ago If I am following properly. You may be able to use a PowerShell script to read the user environment variables desired and append to the measurements taken from a hand-held device file and if this is completed prior to running the program, could you use variables in Calypso Post settings to get this data to PiWeb? I am not sure how to create the variables that would transfer to PiWeb, I haven't looked into that. I have somewhat of what you are doing less user environment variables and calling the data at the end of the program run with: inspection_end.bat (Starts the ps1 file) inspection_end.ps1 I will look into what if any of my variables are being used for PiWeb information. Link to comment Share on other sites More sharing options...
[na...] Posted 6 minutes ago Share Posted 6 minutes ago (edited) Please sign in to view this quote. I was just testing while Please sign in to view this username. posted. Example: run powershell script with PCM: $filepathvar = $PSScriptRoot ('Curuser="{0}"' -f $env:USERNAME) | Out-File "$filepathvar\input2.para" -Encoding UTF8 in Calypso: readPCMFile(input2.para) setRecordHead("Curusertest",Curuser)' modify PiWeb report. Edited 3 minutes ago 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