09-21-2009 11:37 PM
My question is very simple.
This code was posted to show you what i did and i actually want it to be modified. Not for posting on some Rube Goldberg thread which your dear friend suggested!!!
My question is that is there any way of browsing the files from within the labVIEW? Now here you will suggest me to use PATH CONTROL.
But i dont want that. i want a small window in which i can view the files as in windows explorer.
As in ActiveX, windows media player can be called, but there is an alternate way to play files in labVIEW. Likewise, i want here too
09-22-2009 07:03 AM
Have you ever programmed before? in any language?
People are giving you the answer. Stop bickering and being an idiot and listen to people's advice.
Yes you can do something similar to Windows Explorer using LabVIEW. You can do it 2 ways..
Method 1:
The easy and suggested way is to use the path control. You use it to select the path.
Afterwards, you use a function to provide a list of folders and files within the the path provided. You can build an array of files and an array of folders.
You can then format the way you want to display it to a text box, table or whichever format of your selection (available from within LabVIEW).
This method will provide you with a list if folders and files that you can manipulate with your code.
Method 2:
You can call up Windows Explorer using ActiveX controls. I have never used this method, but you will need somemethod of browsing, probably using Windoze Explorer directly. Then, using ActiveX, you can probably obtain a list of files and folders that you can use within LabVIEW. You can do a search within this forum on how to use ActiveX and where to find the methods needed to "talk to" Explorer.
What was missing from the information that you provided is why do you want it done in such a way. The more information that you provide, the more help you will get. Flaming others will only result in criquet sounds coming from you PC's speakers.
09-22-2009 08:58 AM
After looking at your code, here are a few comments at where to first clean it.
1. Remove Flat Sequence Structures.
2. Why do you have a while loop? Is it to run the program until you press the stop button? If so, you should change the architecture. As a matter of fact, what you want to do is create a function (sub-VI)that populates the drive letter, filenames & folders.
3. What do you want to do with the case structure by asking if you want to explore further? What is the purpose of this?
4. There is no need for the Express VI to prompt user for input. What was your purpose for this?
That's a start...
09-22-2009 09:13 AM
09-22-2009 10:18 AM
Dennis Knutson wrote:Could you explain what the file dialog in LabVIEW (image below) does not show/do that is different from using windows explorer?
The question of the OP is legitimate. It would be great to be able to embed parts of a a file dialog (such as the nice list with all the fancy device icons) directly into the FP. Most likely, it is possible with active X, but I tend to stay away from it, so I don't have much experience.
For example, a useful application would be a file dialog replacement that has a data preview window on the right that let's me see the spectrum of the highlighted data file without the need of opening it. (some graphics programs have something similar). While it is possible to get close with tree controls and listboxes, it is not quite the same as a native file view control in look and feel. 🙂
09-22-2009 10:22 AM
09-22-2009 10:40 AM
Dennis Knutson wrote:
I sure did not get that from his post ....
No, I did not get that either. The post just jogged my memory about something I wanted to do many years ago. 😉
09-22-2009 10:40 AM
Alternate wrote:
The question of the OP is legitimate. It would be great to be able to embed parts of a a file dialog (such as the nice list with all the fancy device icons) directly into the FP. Most likely, it is possible with active X, but I tend to stay away from it, so I don't have much experience.
For example, a useful application would be a file dialog replacement that has a data preview window on the right that let's me see the spectrum of the highlighted data file without the need of opening it. (some graphics programs have something similar). While it is possible to get close with tree controls and listboxes, it is not quite the same as a native file view control in look and feel. 🙂
I browsed through the standard windows XP activeX functions, but I could not find active version of the explorer. Does the explorer exist in an activeX version?
09-22-2009 10:44 AM
Coq Rouge wrote:I browsed through the standard windows XP activeX functions, but I could not find active version of the explorer. Does the explorer exist in an activeX version?
I really don't know. However it might be possible to use the web browser with e.g. "c:\" as URL. I have not tried.
09-22-2009 10:58 AM
altenbach wrote:
Coq Rouge wrote:I browsed through the standard windows XP activeX functions, but I could not find active version of the explorer. Does the explorer exist in an activeX version?
I really don't know. However it might be possible to use the web browser with e.g. "c:\" as URL. I have not tried.
Yes it did work
Here is a link for the OP to a simple IE explorer in Labview
http://decibel.ni.com/content/docs/DOC-2042