11-05-2009 08:02 PM
hai ,
good morning. i would like to know is it possible than when i open a text file to be plotted as a graph (from pop up directory) the plot name to be same as the file name which i opened. for example when i open file (test1) to be plotted. the plot name on the graph will be test1. the file name is not fixed. thanks
regards
shamaran
11-05-2009 09:58 PM
Its easy
11-06-2009 12:40 AM
hai ,
thanks for the reply but that is not the solution that im looking for . the real problem is when i click the file name from choose file to read this name should be the plot name. plz refer to the picture below . when i choose the file test1 the plot name should change same as the file name(test1).
thanks
shamaran
11-06-2009 12:48 AM
Try this
11-06-2009 12:50 AM
Front panel
11-06-2009 01:00 AM - edited 11-06-2009 01:03 AM
You need to get the file name from the file path and give as a plot name.See the attached example.
11-09-2009 04:33 AM
11-09-2009 08:05 AM
Another possible approach for naming plots could be using waveform datatype. The waveform datatype includes attributes which could be read/written by get/set attribute. The attribute for the plot name would be NI_ChannelName.
hope this helps,
Norbert