ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot name same as file name

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 

0 Kudos
Message 1 of 8
(4,130 Views)

Its easy

 

Plot name.JPG

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 2 of 8
(4,118 Views)

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).  

 

pic2.jpg 

 

 

 

 

 

thanks

 

shamaran 

0 Kudos
Message 3 of 8
(4,101 Views)

plot.PNG

 

Try this

Message 4 of 8
(4,098 Views)

Front panel

 

fp.PNG

Message 5 of 8
(4,097 Views)

You need to get the file name from the file path and give as a plot name.See the attached example.

 

 Plot name 1.JPGFP.JPG

 

Message Edited by Baji on 11-06-2009 12:33 PM
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 6 of 8
(4,095 Views)
Solved?
Message 7 of 8
(4,047 Views)

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.

 

waveform attribute.PNG

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 8 of 8
(4,040 Views)