LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comment retreindre un chemin absolu?

Solved!
Go to solution

Bonjour,

J'ai créé une application sous LabView dans laquelle l'utilisateur

est amené, à un moment donné, à selectionner le chemin de sauvegarde de ses données.

 

J'aimerais ajouter le chemin de départ et le restreindre, c'est-à-dire, imposer le chemin absolu de sauvegarde.

Avec la commande "chemin", j'ai ajouter le chemin de départ dans propriétés.

Lorsque l'on clique sur le bouton parcourir, on a bien le chemin de départ qui est sélectionné dans la boite de dialogue.

Cependant on peut changer de répertoire.

Comment interdire cette option?

 

Merci de votre réponse.

 

 

0 Kudos
Message 1 of 10
(4,060 Views)

"Mala kahi kalat nahiye .Jara english madhe lihnar ka?" Smiley Sad

(Will you please write in English so that we can understand your problem)

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 2 of 10
(4,059 Views)

I am creating an application, in LabView,that allows users to choose the path to save their data.
Now, I would like to impose the path for the storage so that users can only create a directory or file from this.
I don't know how to do.

Thank's for your help.

0 Kudos
Message 3 of 10
(4,042 Views)

Hi FLEURYNS,

You have to connect path for that. can you post your code aor image so that I can help you.

As i do not know which labview function you are using, I am attachin one example

 

Hope this will help.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 10
(4,036 Views)

Whenever you are using file function, If you are not connecting any path to its input it will ask user for the path.

Otherwise it will not. I hope you understood what I want to say.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 10
(4,034 Views)

I think restricting the possible selection is difficult, once you use the Windows-Subvis to select a path.

I don't know of way way to do so.

 

You might try to to rebuild something similar in LV. But.....

 

 

GT

 

7.1 -- 2013
CLA
0 Kudos
Message 6 of 10
(4,023 Views)
Solution
Accepted by topic author FLEURYNS

 

"Mala kahi kalat nahiye .Jara english madhe lihnar ka?" :smileysad:

(Will you please write in English so that we can understand your problem)

 

Gaurav k
CLAD Certified !!!!!

lol
Well,
It seems like the question is about how to prevent the user from accessing another directory in the file open dialog of LabVIEW ?
You can't do it with the Open File VI of LabVIEW. You have to recreate your own Open File dialog that will check if you are changing directory.
Even in .NET you can't. I think that using Windows API (Win32 dll) you can but this is not the best (using a flag like NOCHANGDIR).
Regards,
Da Helmut
Voir le profil de Maxime M. sur LinkedIn - View Maxime M.'s profile on LinkedIn
0 Kudos
Message 7 of 10
(4,020 Views)

I think too.

So , I'm gonna try to use a case structure in order to display an error

message when user create its directory in another path.

 

Thank you for your help.

0 Kudos
Message 8 of 10
(4,012 Views)

Sorry...I misinterpreted the problem.Smiley Sad

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 9 of 10
(4,004 Views)

Never ind.

Thank you for your help.

0 Kudos
Message 10 of 10
(3,998 Views)