Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

UNSOLICITED ASCII OBJECT RECEPTION

Lookout allows reception of unsolicited serial data using the ASCII object but doesn't seem to provide any method of telling us that New ASCII data has arrived on the serial port to allow us to start processing that data?
I have an application where Lookout needs to recieve randomly timed, un-solicited serial ASCII data about once every 3 to 6 seconds and log the data values for SPC processing and historical data viewing.
 
How can I know that the serial data has arrived at the ASCII serial  port to process the serial dat string and to extract and log the data - without using the ASCII SEND data member in the UNSOLICITORED MODE ? (Using lookout version 4.5)
 
thanks
 
 
0 Kudos
Message 1 of 4
(3,494 Views)
Is the data coming back in different formats? Are you loosing data is the data your receiving not look right? Im not sure if what your trying to do is possible even but Ill look in to it some more.

Best Regards,
Jaideep
0 Kudos
Message 2 of 4
(3,471 Views)

You can poll the Response datamember to see if it's not null.  One quick way would be to AND it with a pulse timer (of required poll-rate).

-Khalid

0 Kudos
Message 3 of 4
(3,469 Views)

Thanks All,

Comparing recieved data values for changes is not helpful because the data is latched by the lookout object and on many occasions the recieved data may be exactly the same - yet still needs to be sampled and logged for SPC control processing.

However after further investigation I have found that the "UPDATE" flag immediately pulses LOW and remains HIGH after unsolicited reception while under normal operation it goes LOW and remains LOW until a data response is recieved when using the SEND command.

Therefore monitoring this flag for a POSITIVE transition rather than a Negative transition (as per manual) when recieving unsolicated data seems to work OK.

Many thanks again for all the responses.

 

 

0 Kudos
Message 4 of 4
(3,453 Views)