DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

filename in legend

Solved!
Go to solution
Hello.

Quite a basic question but several trials and none worked..

So in the legend I just want to display the filename without the channel as in "channel name (file name)". I tried free text with "@@ChnFileName(CurrChnNo)@@" but it did not worked out.

How cn I do this?

Best regards,
Brice
0 Kudos
Message 1 of 3
(3,772 Views)
Solution
Accepted by bricem13

Hi Brice,

 

You've got the right idea, but the channel property you need to use is "SourceDataFileName", and you need to use either the ChnPropGet() or ChnPropVaGet() function or the new Data.GetChannel(CCN).Properties approach available in DIAdem 11.0 and later:

 

@@ChnPropGet(CCN, "sourcedatafilename")@@

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 3
(3,765 Views)
Hello Brad


Thanks for the tip. I tried also with "@@Right(DatafileName,Len(DataReadPath)-1)@@" but it gives the same name for each "filename"... it comes from the fact that when loading data DIAdem 'stacks' the data (I'm not that sure to be clear but I believe you see what I mean -;).


Regards,
Brice
0 Kudos
Message 3 of 3
(3,763 Views)