SERIAL DISPATCH SCRIPT

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SERIAL DISPATCH SCRIPT

John Franklin-2
Hello,

If I modify the Troi sample barcode file to trigger a script only when data
is received on a specific port, the script will then trigger on any input.
It no longer waits for the end of line characters.

Serial_SetDispatchScript( "-unused" ;

    "COM4"   ;            

    Get(FileName) ;

   "Process Data Received" ;

   Serial_AsciiValueToText("-unused" ;

        Case (

                Barcode::gEndOfBarcodeChars = "CRLF" ;  "13|10" ;   /*
CRLF*/

                Barcode::gEndOfBarcodeChars = "CR"     ;  "13" ;        /*
CR*/

 
"13|10"    /* default is CRLF*/

                 )

   )

)

Am I doing something wrong?

 

TIA

John

 

_______________________________________________
The Troi plug-list mailing list
[hidden email]
http://mail.troi.com/mailman/listinfo/plug-list_troi.com
Loading...