LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

userdefined path control

hi,

  In my project i want to create a user defined path control whereas i have already given the path through build path and create folder and assigned a constant drive location. But now i want that to be on the front panel of my vi where the user has to give his own path

0 Kudos
Message 1 of 6
(2,462 Views)

A good way to set default values for controls during initialisation, is to write to a local variable. The control can then be dropped in the event structure as you usually would.

_____________________________
- Cheers, Ed
Message 2 of 6
(2,454 Views)

hi,

    Thank you for the reply. I mean to say that the path has to be editable by the user. Like each time he takes a snap,he has to get the path to where it has to get saved.

0 Kudos
Message 3 of 6
(2,451 Views)

I forget where, but there is a buried VI which is the dialog box for file operations;

file dialog.png

You can drag this snippet straight onto your VI. Feed it the start path to set the default location, and the user can browse for a location as they would be familiar with doing

 

EDIT: I stripped it out of the express file VI

_____________________________
- Cheers, Ed
0 Kudos
Message 4 of 6
(2,447 Views)

@Samineni wrote:

hi,

    Thank you for the reply. I mean to say that the path has to be editable by the user. Like each time he takes a snap,he has to get the path to where it has to get saved.



Ed's answer applies.  You'd have your Build Path result entered into a Path control with a Local Variable as if it were an indicator.  Then, when the user "takes a snap" the built path is already populated in the Path control as a placeholder.

 

Perhaps you could post your VI, or a part of it.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 5 of 6
(2,446 Views)

jcarmody wrote:


Ed's answer applies.  You'd have your Build Path result entered into a Path control with a Local Variable as if it were an indicator.  Then, when the user "takes a snap" the built path is already populated in the Path control as a placeholder.

 

Perhaps you could post your VI, or a part of it.


Indeed, the user could set their directory, then you automatically create incremented filenames for 'quick snap' fuctionality. At a later date they can edit the filenames.

_____________________________
- Cheers, Ed
0 Kudos
Message 6 of 6
(2,444 Views)