USING SC PASCAL TO SEE THE VALUES OF AN IOCP VARIABLE
We are going to see how tha values of an IOCP variable changes in real time. For the example the variable will be 327 corresponding to flaps position. This variable can change from 0 to 16000, as we can see in the following picture:
The script is the following one:
PROGRAM IOCP_values;
CONST
iocp_offset=327;
//IOCP EVENTs
procedure OnIOCPConnect(socket:byte);
begin
RegIOCPOffset(1,iocp_offset); //we define here the variable we want to check
end;
procedure OnIOCPChange(socket:byte;offset,value:integer); //each time that variable changes...
begin
debug(inttostr(value)); //we write its value on screen
end;