LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the prompt message in a open file box

Hello
In my VI the user has to introduce several file path. They are sequenced so we know which one is requested. Is there an easy way to change the message on the "choose file to read" window in order to have "choose xxx file to read" etc... Is this through some VB programming or does labview have some tools for that ?
0 Kudos
Message 1 of 6
(3,042 Views)
Yes you can find this tools in the "file I/O" directory in the tool palette of the block diagram... You can change all texts în the window...

HAve a look on the joined...

enjoy
0 Kudos
Message 2 of 6
(3,033 Views)
If you use a file path control with a browse button make a right click on the control, choose properties from the context menu. In the properties dialog choose the Browse tab. Here you can enter the prompt (displayed in the title bar in Windows), pattern, start path and others.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 3 of 6
(3,029 Views)
Thanks,

It works but only when I enter the file path by clicking on the folder icon. If I start the execution the prompt hasn't change.
Is there another "properties" field to change?
0 Kudos
Message 4 of 6
(3,023 Views)
I don't understand, the file work properly on my computer...
0 Kudos
Message 5 of 6
(3,020 Views)
There are two solutions:

OBN's solution uses a function to get the file name.
My solution uses the file control. You have to click on the browse button to select the file.

Both solutions will open the system Open File dialog where the user can select the file. OBN's solution is more obvous to change the parameters. In my solution you have to use property nodes.

See the VI (LV7.0) how my solution works.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 6 of 6
(3,015 Views)