Производитель об этом не слышал. Возможно, надо проверить установки выбора диапазона и запуск:
FptMAIVoltageIn.GainArray := nil; // полей структуры ptMAIVoltageIn
FptMAIVoltageIn.TrigMode := AiCtrMode; // { external trigger }
Вот что было получено.
The key point is the gain setting.
Due to the dll driver can not support gain setting of ADAM module.
It needs to make use of utility or ASCII command to configure, so
customer should read its input value only
Finally, the different version 2.0 and 1.0, I have not heard about this
kinds of problem before ?
Best regards
Dear All,
Would you be so kind to help us in solving the following urgent
problem? Customer has trouble with the work Advantech 32-bit DLL drivers
in his project. He says when the link with polling module is lost DLL's
functions do not return error code after time-out. Here is a little
example of the ADAM-5017 polling:
procedure TADAM5017Bn.FillChan;
var FptMAIVoltageIn : PT_MAIVoltageIn;
begin
FptMAIVoltageIn.NumChan := 7; //
FptMAIVoltageIn.StartChan := 0; // Fill struct ptMAIVoltageIn
FptMAIVoltageIn.GainArray := nil; //
FptMAIVoltageIn.TrigMode := AiCtrMode; // { external trigger
}
FptMAIVoltageIn.VoltageArray := @Voltage[0];
ErrCde:=DRV_MAIVoltageIn(FDeviceHandle, FptMAIVoltageIn);// input
function
If ErrCde <> SUCCESS Then SetConnect(false);
end;
If the link with the module loses ErrCde stays SUCCESS in any
case. It is true for DLL version 2.0, for DLL version 1.0 all were as
needed (ErrCde was -1). Did you hear about such problem?