We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
write to .dll (Read 354 times)
write to .dll
Oct 2nd, 2007, 3:51pm
 
Hello list,

I would like to write a list of x,y points to an external laser beam controller card (http://www.jmlaser.com/products_english/easylase_usb_kurzinfo.html) via an open API / .dll file. Is this possible in Processing? Below an example of how it is usually done in i.e. Delphi or C.

Thanks,

PM



function EasyLaseGetCardNum:integer;stdcall; external 'easylase.dll';
function EasyLaseGetDebugInfo( var CardNumber:integer; PtrData:Pointer; count:
boolean;stdcall; external 'easylase.dll';
function EasyLaseStop( var CardNumber:integer ):boolean ;stdcall; external 'easylase.
function EasyLaseGetStatus( var CardNumber:integer ):integer;stdcall;external
easylase.dll';
function EasyLaseWriteFrame( var CardNumber:integer; DataBuffer:pointer;
DataCounter:integer; Speed:word ):boolean ;stdcall; external 'easylase.dll';
function EasyLaseWriteFrameNR( var CardNumber:integer; DataBuffer:pointer;
DataCounter:integer; Speed:word; RepNum:word ):boolean ;stdcall; external 'easylase.
function EasyLaseWriteTTL( var CardNumber:integer; TTL:word ):boolean ;
stdcall;external 'easylase.dll';
function EasyLaseWriteDMX( var CardNumber:integer; DMXBuffer:pointer ):
boolean;stdcall; external 'easylase.dll';
function EasyLaseClose():boolean;stdcall; external 'easylase.dll';
function EasyLaseGetDMX(var CardNumber:integer; DMXBuffer:pointer ):boolean;
external 'easylase.dll';
function EasyLaseGetLastError(var CardNumber:integer):integer;stdcall; external
easylase.dll';
function EasyLaseDMXIn(var CardNumber:integer; DMXBuffer:pointer; Baseaddress:
ChannelCount:word ):boolean;stdcall; external 'easylase.dll'
function EasyLaseDMXOut( var CardNumber:integer; DMXBuffer:pointer;
Baseaddress:word; ChannelCount:word ):boolean;stdcall; external 'easylase.dll'
Page Index Toggle Pages: 1