I have problem with programming my Application using Ni-DAQ 6036E Series. For your information, I use delphi 2 for developing my application. Please don't ask me why I use version 2 of Delphi.
I have tried so far, my application is work fine, but when I need to digitilized Analog Input with voltage range greater then -5v to +5V, my application did not read correct voltage data.
For example : The voltage on Analog input channel 1 is 3.5 volt, my application readings is 3.5,if the voltage on analog input channel 1 is 5.0 volt the readings is 5.0 volt but if the voltage of analog input is greater then 5v, ie. 6volt, my application readings result is 5.0 volt.
I have tried to change my AI configuration using function call : AI_Configure with command like this :
Function ConfigureAi(ChannelNumber:Integer):String;
var
status : NidaqStatus;
InMode : Integer;
Range_D : Integer;
Pol_D : Integer;
AISense : Integer;
begin
//=== Func. referrence 2-7
// Status := Ai_Configure(DeviceNumber,ChannelNumber,InputMode,InputRange,Pol_D,AISense);
InMode := 1; //0 = Differential Mode; 1 = RSE;
Range_D := 10; //Ignored
Pol_D := 0; // 0 = Bipolar; 1 = Unipolar
AISense := 0; // Just Ignored for E Series;
{}
Status := Ai_Configure(DeviceNumber,ChannelNumber,InMode,Range_D,Pol_D,AISense);
Result := IntToStr(Status);
end;
my question is :
Did I wrong to configure the AI Config, so that analog voltage input that i could measured only in range -5 to +5V ?
Thank you for your attention.
Susanto W
Electrical Engineering
PT. Showa Indonesia Manufaturing