I think it was mentioned in another forum that a USB to parallel port "printer cable" will not work if that is what you are trying to use. Also, the code you posted will run extremely fast such that you may not be able to detect the pin changes. Below is example code from the help file. This loops 40,000 times and only takes 344 milliseconds (similar to your code). in your code the there is no delay between setting the pin high and setting it low. You may need to add a delay between the hi/lo pin changes if you are trying to interface with anything mechanical (bottom code).
Code:
'get start time
startTime = time$("ms")
'do some computations
for i = 1 to 40000
x = x + i
next
'get end time
endTime=time$("ms")
print "Computations took ";
print endTime-startTime; " milliseconds"
end
Code:
'get start time
startTime = time$("ms")
FOR counter = 1 TO 400
x=x+1 'OUT 888,2
timer 10, [timertest]
wait
[timertest]
timer 0
y=y+1 'OUT 888,0
FOR zz = 1 TO 100: NEXT
NEXT counter
'get end time
endTime=time$("ms")
print "Computations took ";
print endTime-startTime; " milliseconds"
end