breturnstatus:=pci8696_initdeviceproad(hdevice,@para);
if breturnstatus=false then
ShowMessage('设备初始化失败!');
readsizewords:=1000 ;
BRETURNSTATUS:=pci8696_startDevicePROAD(HDEVICE);
if breturnstatus=false then
showmessage('设备启动失败!');
form1.Chart1.Locked :=true;
while form1.CheckBox1.Checked do
begin
pci8696_readdeviceproad_npt(hdevice,@inuserregion,readsizewords,@retsizewords);
for i:=0 to retsizewords-1 do
begin
voltageval:=(5000.0/16384)*(inuserregion[i] XOR $2000 AND $3fff);
strvalue:=format('0.00',[voltageval]);