From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting DIAdem Report Legend Label

I want the Legend Lable to be "Curve related text" and include Channel Name and Maximum value of the Channel.
 
I tried:   @ChnName(#)@, Max: @CMax(#)@
But where do I put the Formatting of the CMax value to specify 'dd.dd' to get rid of all obsolete decimals?
 
An alternativ which also could do would be a 2D-table with the same contents, i.e. ChannelName and MaxValue in a two-column table.
Would that be easier ?
 
thanks
 
Henrik
 
 
0 Kudos
Message 1 of 2
(3,248 Views)
Hello Henrik,

The best and easiest way is to put the formatting into the legend like this:

@ChnName(#)@, Max: @str(CMax(#), "d.ddd")@

With STR you can convert a value to a string and format that value directly.

Greetings

Walter

0 Kudos
Message 2 of 2
(3,242 Views)