If your Falcon scanner is connected by serial interface, simply use the FlagShip serial interface functions (available in source in the FS2 Toolbox library), here very simplified example:
local iPort := 1 // = serial port COM1
local cTmp, cData := ""
if !com_open(iPort) ; myError() ; endif
[ com_hard(...) ; com_soft(...) ]
if !com_init(iport,...) ; myError() ; endif
[ com_timeout(iPort,...) ]
while .T.
cTmp := com_read(iPort) // read data
if empty(cTmp)
exit
endif
cData += cTmp
enddo
com_close(iPort) // close port
This works in 32/64bit Windows or Linux. Paul