[No...] Posted Thursday at 01:13 PM Share Posted Thursday at 01:13 PM (edited) I want to add the first few characters of each characteristic name (up to the first space character) to a column of the chr table file. I know that generateTableColumn() iterates through all the characteristics and calls a user-defined function for each of them. But how can I access the name of the currently processed characteristic from within that function? From the post settings of a characteristic I can get the substring I want with the following command: strElement(1," ",getActual().identifier) But of course this doesn't work anywhere else as getActual().identifier then no longer returns a valid name. In the end my code needs to run from an external PCM file, so I need a different way to get that characteristic name. Any ideas? Edited Thursday at 01:15 PM Link to comment Share on other sites More sharing options...
[Ch...] Posted Thursday at 04:23 PM Share Posted Thursday at 04:23 PM Assign it a VAR ? e.g. CHR1 = strElement(1," ",getActual().identifier) , CHR2 = strElement(1," ",getActual().identifier) Then call CHR1 CHR2 at end as needed. Also if you have Calypso 2024 or later perhaps excel functions can help with generateTableColumn() I no longer have PCM license or I would dig deeper. Link to comment Share on other sites More sharing options...
[Mi...] Posted Friday at 10:48 AM Share Posted Friday at 10:48 AM (edited) Maybe baseSystem().machine.inspection.settings.actualCFName // name only baseSystem().machine.inspection.settings.actualCF // type and name, for example "Diameter Diameter1" could work. Edited Friday at 11:00 AM 2 1 Link to comment Share on other sites More sharing options...
[No...] Posted yesterday at 07:07 AM Author Share Posted yesterday at 07:07 AM I'm going to test this as soon as possible. Stay tuned... Link to comment Share on other sites More sharing options...
[No...] Posted 1 hour ago Author Share Posted 1 hour ago Please sign in to view this quote. Works like a charm! Thank you very much! 1 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