01-06-2012 04:25 AM
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
01-06-2012 04:58 AM
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.
01-06-2012 05:07 AM
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.
01-06-2012 05:12 AM - edited 01-06-2012 05:18 AM
I forget where, but there is a buried VI which is the dialog box for file operations;
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
01-06-2012 05:13 AM
@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.
01-06-2012 05:16 AM
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.