LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing USB CDRW drives

Hi,

I'm want to create an application accessing the CDRW drives. Is it possible? How? If i have to add a control botton on choosing what drive i will use and after choosing another control button will be activated(previously dimmed) and when i clicked it another panel will show up.

Sorry for the question but i'm starting to navigate Labwindows.Thanks in advance!
________________________________________________________________
Electronics Manufacturing Tester Forum
0 Kudos
Message 1 of 5
(3,561 Views)
Once the usb drive has been recognized by the system, you can access it as any other drive. The user can select the directory to write to by using DirSelectPopup, which returns the directory selected or 0 if cancelled.

I suggest you take a look to the sample projects shipped with cvi: in \samples\userint directory there are several examples that can help you in understanding how to develop the user interface and manage it.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,561 Views)
I saw that you have an eject button on your UIR, there is a good example that ships with CVI that allows you to make calls to the Windows SDK to open and close the CD drive.

You can find this example at C:\Program Files\National Instruments\CVI70\samples\sdk\audio\cdplayer.cws, if you can't find it probably you need to install the Windows SDK component of CVI, just run the CVI installer, select modify and add the Windows SDK components.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 5
(3,561 Views)
Thanks, I've seen it but there is no option what drive i have to use.
because i have 3 CDRW drives installed on my machine and i have to
choose what will i use. Thanks again in advance.
0 Kudos
Message 4 of 5
(3,561 Views)
The way the mci functions work allow you to call the default driver
(that's how the example is doing it); however you can open a specif
driver by adding this function before calling other mci functions:

mciErr = mciSendString("open D:\\ type cdaudio alias cd1", "", 0, 0);


By calling this function previous to other mci functions you can
specify the drive you wan to address. I don't have multiple CD-ROMs,
so I was not able to test it, however I believe it should work.

Good luck.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 5 of 5
(3,561 Views)