11-26-2015 03:15 AM
Greetings,
I'm working with some authomatic reports and the graph legends can be quite helpful. So far, I've found how to access line information with variables like CurrChnNo (wich may be refered as #), CurrYChnNo, CurrXChnNo, allowing me to show maximum values with chnvalmax and so... but I would also like to read values like x or y axis begin and end (for instance, to write maximum as a % of the scale)
Is there any way to access this object variables from its own legend?
I know I could write the legend as a free text calculated when a script is executed, but then the text wouldn't change if the user changes the scale.
Thanks,
Tomás Lahoz
11-26-2015 08:27 AM
Hi Tomas,
I think if you want to do things with that level of complexity, I'd recommend you employ a UserCommand that gets called every time that graph is refreshed. What version of DIAdem are you using? The commands to do this were updated with the REPORT object a few years ago.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-26-2015 09:35 AM
Hi Brad, thanks for your reply.
Right now we're using DIAdem 2012, in a future I expect we'll migrate to DIAdem 2014, though.
11-26-2015 09:21 PM
Hi tlahoz,
Check out the example "Using User Commands to Format a Date". It shows how to set up a UserCommand to run each time the graph refreshes.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-27-2015 01:50 AM
Will do.
Thanks, Brad_Turpin!