LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to detect if pen drive is connected or not in labview

Solved!
Go to solution

i want to detect if pen drive is connected or not using labview

Stara
0 Kudos
Message 1 of 10
(3,361 Views)

reply please

Stara
0 Kudos
Message 2 of 10
(3,346 Views)

 

I want to be rich.

 

Reply please.

 

 

 

 

Ask a more meaningful question... get a more meaningful answer.

Or just try searching. It isn't hard.

http://forums.ni.com/t5/LabVIEW/command-that-should-be-sent-to-pen-drive-to-detect-using-labview/m-p...

http://forums.ni.com/t5/LabVIEW/Detect-USB-Stick-insertion/m-p/527018#M249567

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

i guess dats a meaningful question, if u didnt get it ll b asking again .

 i jus want to access a pendrive , i mean to check status of pendrive whether it is connected or not through lab view 🙂

Stara
0 Kudos
Message 4 of 10
(3,337 Views)

Do you can try to open or create a file into pen drive directory? (ie: F:\NewFile.txt)

Anderson M. Takemoto
Instituto de Pesquisas Eldorado

0 Kudos
Message 5 of 10
(3,318 Views)
Solution
Accepted by topic author stara

Hi

 

One simple method you can use to list out the folders of your computer.

If any USB Pendrive is connected with your computer you will get the Pen Drive Name.

First get all number of drives. Make constant this value if next time with your pendrive you get the number of element is more then the fixed one then you can say external device is connected with PC.

 

list.JPG

 

May be this is not the standard method to detect the device, but it can solve your issue.


Thanks and Regards

Himanshu Goyal

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 6 of 10
(3,304 Views)

Yes, Himanshu Goyal, your ideia is better!

But, I think is better to work into specified folder. Just for not work with any pen drive.

 

Anderson M. Takemoto
Instituto de Pesquisas Eldorado

0 Kudos
Message 7 of 10
(3,298 Views)

As shown in figure you just pass a blank path to the function. This will give you the computer disk names.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 8 of 10
(3,288 Views)

i agree with ur suggestion himanshu, when i connect a pendrive it ll be giving me another drive name in folders name, but i jus want to get an automatic update that i have connected an extra drive without checking in folders name, like whenever i connect an extra drive, led should be on and when i remove it, led should turn off. plz help me out. thanks 🙂

Stara
0 Kudos
Message 9 of 10
(3,262 Views)

Hey Himanshu Goyal, Thanx a lotttt, i got the solution !!!!!!!!!!   Once Again Thanx For the information 🙂 🙂

Stara
0 Kudos
Message 10 of 10
(3,246 Views)