LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Burn a CD-R with LabView

Hi,

I'm trying to make backup copies (on CD-R) of some files automatically using a LabVIEW application.
Has anybody ever done this?
There is a DLL called wnaspi32.dll wich I think can be used to do this, does anyone has information about the protothype of the functions included in this DLL?

Thanks.
Message 1 of 9
(4,868 Views)
I do not know about the .DLL but here is A link for direct cd.Try it, It just might work for you.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBBA8111EE034080020E74861&p_node=DZ53002&p_source=external

Joe



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 9
(4,867 Views)
Paulo07 wrote:

> Hi,
>
> I'm trying to make backup copies (on CD-R) of some files automatically
> using a LabVIEW application.
> Has anybody ever done this?
> There is a DLL called wnaspi32.dll wich I think can be used to do
> this, does anyone has information about the protothype of the
> functions included in this DLL?

WINASPI32.DLL is a low level API to control SCSI and SCSI like
resources. The API uses only a few fucntions but is quite complex in the
parameters those functions take. It is definitely not something to do in
a few hours and will require a CIN or wrapper DLL to interface in a
useful way with LabVIEW.

Most importantly although you could control CD burners through this
interface it would be a very tedious way of doing it as each CD burner
ha
s manufacturer specific protocols to use. It is much easier to use an
application like Nero or DirectCD which takes care of controlling the
different CD burners in a proper way and gives you a simple interface.
Both packages come with a command line interface which you can use
through SystemExec.vi to write CDs and Nero has an additional DLL API
which can be called.

Checkout http://labview.citeng.com/pagesEN/products/cdrec.aspx to see a
product which allows you to control the Nero software though ist DLL API
from LabVIEW.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 3 of 9
(4,868 Views)
maybe there is other way to solve that problem,
can we directly use nero dll or activeX in LabVIEW?
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 4 of 9
(4,757 Views)
Hello,
 
You can use dll's and make use of activeX in LabVIEW (explained further below).  More specifically, you will use a call library function node (found in the advanced palette (sub-palette of the all functions palette) to call a function in a dll.  There is an issue of correlating C or standard calling convention data types with LabVIEW data types, but their is a shipping example which outlines and programmatically launches use-case examples of each data type.  To access the shipping example (ie launch the Example Finder and locate the example)
1. click Help -> Find Examples... in LabVIEW,
2. click the Search tab
3. type "dll" (without quotes) into the search field. 
4. Double click on the keyword "dlls" or "DLLs"  (it will show up as one or the other... capitalized or not)
5. In the list of examples that now populates, double click to open CAll DLL.vi.
 
Read the instructions at the top of the example, and I think you'll find it very useful!
 
For activeX in LabVIEW, you have a couple choices.  First, you can use the ActiveX Automation API in LabVIEW to control one program from another via ActiveX.  The other option you have is to embed an ActiveX control in a LabVIEW "ActiveX Container," which is available for placement on a front panel in the Containers palette.  To choose the control to embed in this container, simply right click within the container after placing it on a front panel and choose "Insert ActiveX Object...".  To find shipping examples, just follow the general procedure specified above, only type "ActiveX" in the search field (again without quotes).  For more information on these topics, see the following resources:
 

ActiveX Automation in LabVIEW:

http://zone.ni.com/devzone/conceptd.nsf/webmain/5401BE584FBAEECE862567C2006D36C7

 

ActiveX Containers in LabVIEW:

 
 
I hope this helps!  Repost if you have any further questions!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 5 of 9
(4,727 Views)
Thanks for your relpy,JLS
 
But there is a shortcut to solve Burn CD-R problem?
Or maybe the detail of nero dll function?
 
thank you very much
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 6 of 9
(4,702 Views)

There is a toolkit for nero burning, but it is not free.

check this link: http://labview.citeng.com/pagesEN/products/cdrec.aspx

 

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 7 of 9
(4,691 Views)
Thanks alipio
I've already knew that toolkit
I really want to know how they make it?
what type of dll they use? and what function will be involved?
 
thanks again.
http://www.vitst.com
Virry Test & Control
LabVIEW Certified Developer
0 Kudos
Message 8 of 9
(4,653 Views)

Hi

I guess the toolkit is based on Nero SDK API. You can download it from here: http://ww2.nero.com/enu/SDK_API.html

 

Another choice coudl be activex. Google for "cd burner activex".

Hope it helps

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 9 of 9
(4,627 Views)