I have the following repeat loop running but for some reason it doesn't send to the serial port until the end of the loop???
Code: Select all
on mouseUp
put the label of btn "Port" into thePort
repeat with x = 1 to 255
if fld "myFld" <= 255 then
add 1 to fld "myFld"
write fld "myFld" to driver thePort
wait 1
end if
end repeat
end mouseUp
Jim H