User manual

Syntax
PROCEDURE ReadDACarray(Buffer:Pointer);
Parameter
Buffer: A pointer to the data array of long integers where the DAC data will be read.
Description
The DAC data array is read from the K8D.DLL to the application program.
Example
var // global variables
DAC: ARRAY[1..MaxDACchannel] OF Integer;
procedure TForm1.Button1Click(Sender: TObject);
var p:pointer;
i:integer;
s:string;
begin
p:=@DAC; // Address of the data buffer for the DAC array
ReadDACarray(p); // Read the data from K8D.DLL
memo1.clear;
s:='';
for i:=1 to MaxDACchannel do s:=s +inttostr(DAC[i] and $ff)+chr(9);
memo1.lines.add(s); // Display the DAC dataend;
ReadIOconfigArray DA
Syntax
PROCEDURE ReadDAarray(Buffer:Pointer);
Parameter
Buffer: A pointer to the data array of long integers where the data will be read.
Description
The DA data array is read from the K8D.DLL to the application program.
Example
var // global variables
DA: ARRAY[1..MaxDAchannel] OF Integer;
procedure TForm1.Button1Click(Sender: TObject);
var p:pointer;
i:integer;
s:string;
begin
p:=@DA; // Address of the data buffer for the DA array
ReadDAarray(p); // Read the data from K8D.DLL
memo1.clear;
s:='';
for i:=1 to MaxDAchannel do s:=s +inttostr(DA[i] and $ff)+chr(9);
memo1.lines.add(s); // Display the DA data
end;