DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying last value of channel in DIAdem Report

I need to call out on a report to display the last value of a given channel in the data portal.  I know its something like @chn....@ but i dont know how i can tell it to use the last value given in the data set. Help would be much appreciated.
 
Thanks
Brian W.
0 Kudos
Message 1 of 4
(4,829 Views)
Hello!

You can write:

@ChD(CL("Channel_Name"), "Channel_Name")@

ChD gives you the value at a determinated line of a channel. CL is the channel length.

Best regards

Ken
0 Kudos
Message 2 of 4
(4,826 Views)
When I am using the ChD command to display a specific line/value of a channel, how do I format the the channel value (e.g. d.dd) to avoid excessive decimal places?  Thanks.
0 Kudos
Message 3 of 4
(4,447 Views)

Hi Brian,

 

I think this is what you are looking for:

 

@@str(ChD(CL("Channel_Name"), "Channel_Name"),"d.dd")@@

 

The "str" function converts the real value into a string, and the "d.dd" formats the string to two siginificant digits behind the decimal comma.

Otmar D. Foehner
0 Kudos
Message 4 of 4
(4,441 Views)