[No...] Posted July 9 Share Posted July 9 (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 July 9 Link to comment Share on other sites More sharing options...
[Ch...] Posted July 9 Share Posted July 9 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 July 10 Share Posted July 10 (edited) Maybe baseSystem().machine.inspection.settings.actualCFName // name only baseSystem().machine.inspection.settings.actualCF // type and name, for example "Diameter Diameter1" could work. Edited July 10 2 1 Link to comment Share on other sites More sharing options...
[No...] Posted July 14 Author Share Posted July 14 I'm going to test this as soon as possible. Stay tuned... Link to comment Share on other sites More sharing options...
[No...] Posted July 15 Author Share Posted July 15 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