From: Carcassi, G. <car...@bn...> - 2014-07-25 12:30:19
|
Don't know how to do it for macros. You can use the 'pv' and 'concat' formula functions: =pv(concat("SR-DI-EBPM-01:FR:", 'loc://${DID}_selection', "X")) Concat is just string concatenation. Pv is like a "pointer": takes a string and opens the pv with that name. The main advantage is that it won't trigger any reloading of the page, so you get good performance. The main disadvantage is that some widgets treat formula and pvs differently, so your mileage may vary... Gabriele -----Original Message----- From: wil...@di... [mailto:wil...@di...] Sent: Friday, July 25, 2014 5:23 AM To: cs-...@li... Subject: [Cs-studio-users] Dynamically updating macros in BOY Hi, Is there a way to change the value of a macro while a BOY screen is running? I ask because many of our EDM screens at diamond use macros to determine (for example) which trace to plot on a graph. Unless I'm missing something, local PVs won't work for this either, because the macro may be substituted into a PV name: SR-DI-EBPM-01:FR:$(w)X We can then use a button to choose which of different PVs to plot. Any ideas? Thanks, Will -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Cs-studio-users mailing list Cs-...@li... https://lists.sourceforge.net/lists/listinfo/cs-studio-users |