Hi all,
I am using Delphi to build an application to run my DAQ device through the DAQmxBase driver. I am loading the
routines exported from NICAIU.DLL. The routine DAQmxBaseCreateAIVoltageChan is failing to execute, returning
error code -50251, extended error "Specified software component is not available. The component was not loaded"
I am declaring the routine in my code as:
function DAQmxCreateAIVoltageChan(TaskHandle:TTaskHandle;
PhysicalChannel: Pointer;
NameToAssignToChannel: Pointer;
TerminalConfig: int32;
MinVal: float64;
MaxVal: float64;
Units: int32;
CustomScaleName: Pointer): int32;
stdcall; external 'NICAIU.DLL';
and I am calling as:
DAQmxCreateAIVoltageChan(AITask, Buffer, nil,DAQmx_Val_Diff,MinInput,MaxInput,DAQmx_Val_Volts, nil);
All the variables I have already used in other routine calls with no error. The only thing I am not sure in the call as above is the use of the nil constant as the equivalent in ANSI C of the null array of Char, but the error message does not seem to be related to this sort of error.
I would appreciate if someone could give me hint as how to overcome this problem.
Thanks in advance