LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I detect what drive the cd rom is on?

At the moment I am using the 'copy.vi' to copy a file from D:\ to C:\ with the intention of copying from a cd rom to the hard drive(windows platform)but the cd rom drive is not neccessarily on D:\. Is there a VI or other means of detecting which drive the cd rom is on at run time?

Thanks in advance
Mark Lea
0 Kudos
Message 1 of 4
(2,489 Views)
One possibility would be to use the Volume Info function in LV and look for a drive with 0 bytes free--that will be your CD. See attached demo...

Mike...

PS: Non-existent drives return an error.

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 4
(2,489 Views)
Thanks Mike
To use this vi you have to make sure that the SIZE output >1 AND FREE = 0 because a lot of the other possible letters could be SIZE = 0 and FREE = 0 but with the cd rom sitting in the drive you should get a number >1. I compared all the letters using this format and it worked.

Thanks again

Mark Lea
0 Kudos
Message 3 of 4
(2,489 Views)
The only drive letters that should return a size of zero are non-existent drives. In those cases, the output error cluster will also show an error. Always check for errors.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(2,489 Views)