[Ka...] Posted January 23 Share Posted January 23 Moin aus Hamburg, gibt es eine Möglichkeit die Tasterdaten (Taster und Schwenkpositionen) global via Suchfunktion auszulesen? Bei über 200 Messprogrammen ist es sehr aufwendig jedes Programm zu öffnen um an die Tasterdaten zu kommen. Vielleicht kann man ja nach bestimmten Daten suchen. BG, Karsten Link to comment Share on other sites More sharing options...
[Ka...] Posted January 23 Share Posted January 23 Moin Karsten 🙂 Ich nehme an du möchtest wissen welche Programme welche Taster nutzen und auch noch in welchen Tasterstellungen? Das ist möglich aber etwas gewöhnungsbedürftig zu ermitteln. In der Datei "inspection" die im Programmordner steht, gibt es ein Tag namens "#probeConfiguration" Dieser definiert den Namen des Tastersystems der in der folgenden Sektion genutzt wird. Folgend darauf gibt es den Tag "#probeName:" der angibt welchen Taster/welche Tasterstellung du nutzt. Nutzt du mehrere Taster eines Sterntasters gibt es natürlich mehrere Taster mit "#probeName". Als Beiwerk beschreibt "#safetyGroup" noch die Sicherheitsebene7Gruppe die für den eingesetzten Taster gilt. Beispiel einfacher Taster #probeConfiguration ' ->' 'D3 x 38') #safetyGroup ' ->' 'SP -Y')) #probeName: 'A90_B-90' Beispiel Taster #4 eines Sterntasters #probeConfiguration ' ->' 'TT 2 x 1,5 VL50') #safetyGroup ' ->' 'SP +Y')) #probeName: '4_-Y' So mit der Hand die Datei durchsuchen wird zu aufwändig. Dann nutzt man sicherlich für einfache Ausgaben grep und sed und später das händische bearbeiten einer csv Datei. Wer das nicht hat/kann darf sich gern mit Perl oder (würg)Python ein nettes Script schreiben dass dann alle inspections files nach diesen Tags durchsucht, sortiert und dann in eine CSV Datei schreibt. Etwas für die jungen "Hacker" in diesem Forum. 🤠 Ich habe hier leider keine Entwicklungswerkzeuge (außer heimlich ein vi natürlich .. ) und Perl runtime sonst würde ich dir das gern schreiben.. 😉 Edit: Hier ein kurzer hack wie es für ein File "inspection" gehen kann: Verwendetes Tastersystem: grep probeConfiguration inspection | awk "{ split($0,a,/'/); print a[4] }" | sort | uniq Verwendete Taster grep probeName inspection | grep -v Taster | awk "{ split($0,a,/'/); print a[2] }" | sort | uniq Beste Grüße Karsten Link to comment Share on other sites More sharing options...
[Ma...] Posted January 23 Share Posted January 23 I am getting used to LUA and it's "GUI". I've made an app for creating new autorun file with selected panels from complete autorun with GUI ( not finished since i tried navigation panel with shortcuts ). LUA is standalone - no need for install and scripts are "readable" Link to comment Share on other sites More sharing options...
[Ka...] Posted January 23 Share Posted January 23 Dear Martin, I´m sorry but I do not catch what you mean.. 😕 Please sign in to view this quote. Back to the question how to retrieve which stylus system and stylus is used within a program: Well for those who do not get any useful script language at hand, you can use this ( or similar ) cruel DOS command. It search recursive from current path for a file named "inspection", grep out the stylus system definition and put the output to a CSV file. All you need is some unix tools installed on your PC. Take a look to "coreUtils for windows" as part of GnuTools. Take care about the ">" at the end of this command line. This means, that the given file name "mystylus.txt" will be overwritten every times you invoce this command. It´s only a fast hack 🙂 Example output: D3 x 16;D2 x 21;D2 x 30_kein_CAA;"Z:\Magrathea\zaphod\hard_of_gold_sphere_dimension forfiles /p .\ /S /M inspection /C "cmd /c grep probeConfiguration inspection | tr '\' # | awk '{ split($0,a,/#/); print a[5] }'| sort | uniq |tr -s '\r\n' ; && echo @path | sed s/\\inspection// " > mystylus.txt Happy hacking 🙂 Karsten Link to comment Share on other sites More sharing options...
[Ma...] Posted January 23 Share Posted January 23 Please sign in to view this quote. Hi Karsten, I am willing to help with to anybody who will contact me. In this case i offer my knowledge in LUA script for completing this task. I think python must be installed, so IT would not allow that in most cases. LUA is interpreter ( like PHP or python ) but more powerful than Windows BAT file. If is anynone interested I can offer that LUA script or Win32 exe program ( in Delphi ) Link to comment Share on other sites More sharing options...
[Ka...] Posted January 23 Share Posted January 23 Hi Martin, Aiiieee: Don´t know these scripting LUA before 😃 Well, at the end of the day there are simply too many programming languages and interpreters in the world. I limit myself to the few basic languages, which are certainly a bit outdated. But who wants to allocate 450MB of RAM with something like io.read("myfile") just to read 10 bytes from a file? 😃 😃 Thank you very much for your offer to the community to develop a tool that can read out the stylus data! Very cool! Best regards Karsten Link to comment Share on other sites More sharing options...
[Ma...] Posted January 23 Share Posted January 23 There were some attempts with excel and I didn't looked closely how much RAM is used 🤣 mainly PCs for Calpso are often overdimensioned on that. If someone will send me some files for that task ( i would appreciate with real name of stylus ) then I can make something - no problem - I have plenty of time 🤣 I have only VAST XT, so no rotary table and no swivel head in my programs - so anyone with that can send those files ( i think inspset or inspection is used, right? ) Link to comment Share on other sites More sharing options...
[Ka...] Posted January 23 Share Posted January 23 Uiiii: Someone who has a lot of time, knowledge and vigour is looking for challenges around CALYPSO? So guys, send the good man what you have and what you want 🙂 A few years ago I almost had to give up my left little finger for such a code because: Huge waste of RAM! 🤠 char mybuf[40]; Regards Karsten Link to comment Share on other sites More sharing options...
[Jö...] Posted January 24 Share Posted January 24 Hallo Karsten, vielleicht hilft dir das schon mal weiter. Damit kann man die Tasterkonfigurationen auslesen. Einfach mal Testen. Mir hat es sehr geholfen. Vielleicht kennt sich ja jemand mit VBA gut aus der auch noch die längen der einzelnen Achsen mit aus liest. Hier mal der Link zu Michael Hinterschuster Post https://forums.zeiss.com/messtechnik/c ... 9069#p9069 Link to comment Share on other sites More sharing options...
[Ka...] Posted January 30 Author Share Posted January 30 Moin und vielen Dank erst einmal, ich spiele mal mit der Excel Datei und hoffe damit zum Ziel zu kommen. BG, Karsten Link to comment Share on other sites More sharing options...
[Ma...] Posted January 30 Share Posted January 30 Please sign in to view this quote. If you have used default probe configuration for plan ( if you see double asterisks "**" in blue color ) then it won't tell anything. I am working on LUA script - still not ready yet, but i have some results 😉 Still no CSV output, just console. I will post working project on GitHub and somewhere on forum. 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