LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Explorer window in tree control

Hi all,

I am trying to get the feel of windows file explorer in a tree control. I was successful somewhat in listing the files, but I was unable to make the parent-child relation correctly. I have attached one jpg file of file explorer. I would like to replicate the same in a tree control.

I used recursive file list function during my trial.

 

Please suggest a good option. (I have seen the NI example, but its too slow and I would like to make it simple string based application(not realtime folderlisting)).

Message Edited by Parag D on 12-15-2009 03:54 PM
-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 1 of 10
(6,788 Views)

it is possible to have a explorer. but it gets a little complicated depending on the level of child items in a parent.. For example a parent having 15 (a random number) of childs and each of these childs are having 15 other subchilds and so on, which ultimatly results in a complete slow down of the application

 

Also if you would like to populate the "symbols" for the corresponding items things goes from bad to worst

Regards
Guru (CLA)
0 Kudos
Message 2 of 10
(6,738 Views)

I was implementing a recursive kind of logic.

Say c:\abc\xyz\1\2\file.vi is the path we need to list

 

then, we would start off with file.vi making the child(and so on the other files which are listed after the last "\" from the recursive folder list function), and then making all the previous parent of parents.

 

so here,2 is a child of 1, which is a child of xyz and so on.....

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 3 of 10
(6,734 Views)

Asi told you.. if you dont have a very good algorithm to do it , it gets complicated depending up on the depth of the path.

 

here are some example that may help you out

 

Guru

Regards
Guru (CLA)
Download All
Message 4 of 10
(6,710 Views)

^ ^

Thanks!

Will try that out!

-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
0 Kudos
Message 5 of 10
(6,704 Views)

I'm attempting to do the same thing, and Guruthilak's, or FraggerFox's code look like great starting point(s).  Unfortunately, I only have LabVIEW 7.1  (can't use newer sadly).  Any chance someone could save the files in LV 7.1 compatibilty mode?  

 

Regards,

RustEE

0 Kudos
Message 6 of 10
(5,224 Views)

Hi rustEE

 

You can get help to convert code here:

Version Conversion

 

Regards

Frank R.

0 Kudos
Message 7 of 10
(5,198 Views)

Oops, sorry I'm new to the forums, thank you.

0 Kudos
Message 8 of 10
(5,185 Views)

Actually, I don't think asking for an older version of LabVIEW files from within the message thread where they were first posted is a bad thing.

 

I consider the Version Conversion forum primarily a location for requesting random conversions for people's own VI's when they get stuck moving being different systems and don't have access to the newer version to do a backsave.  Or trying to open up a very old version of a VI that can't be opened up in newer LabVIEW.

 

Unfortunately, I can't help you because I don't have LabVIEW 8.0 installed on any PC's anymore which is needed to do the final save to get it back to 7.1

0 Kudos
Message 9 of 10
(5,161 Views)

For anyone who may stumble accross this thread looking for the Tree Control API in LabVIEW 7.1, here is a link to the Version Conversion thread where they ended up.  Thanks to K C for converting the files.

http://forums.ni.com/t5/Version-Conversion/Tree-Control-vis-From-8-2-to-7-1/td-p/3094098

Message 10 of 10
(5,140 Views)