Hi To all those who are in textual programming or at least in Delphi,
I have problem understanding the function DAQmxIsTaskDone.
As you see that I have been doing NI Labview for so long until I recently switched to Delphi at the request of my manager, however we are still using NI Devices
I noticed that there are 1 input and 2 outputs in the Labview's function DAQmxIsTaskDone icon.
They are TaskHandler (in) and TaskHandler (out) and boolean indicating the whether the task is done. And that is very easy to do.
However in this function for Delphi : DAQmxIsTaskDone(taskHandle : Longint; isTaskDone : Pbool):Longint; stdcall;
I noticed that they are 2 inputs and one output. I have no problem with taskHandle:Longint (input parameter) and Longint (return type). But I am not sure of isTaskDone : Pbool
How do I use TaskDone : Pbool?
In my codes like this below:
procedure THardwareCtrl.IsTaskDone(Channel:LongInt);
var TaskHandle:LongInt;
begin
TaskHandle:=strtoint(FTaskHandle.Values['AOut'+IntToStr(Channel)]);
repeat
until DAQmxIsTaskDone(TaskHandle, IsTaskDone);
end;
Please advise. Thanks
Clement