Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Lookout: How do you clear Ascii RSV1-512 Data Members

We have a proximity reader connected to the serial port and when a card is read the Lookout Ascii Object grabs the data. 
I connected a "pot"  to Ascii.RSV1 and setup the "pot" reset/resetvalue to equal 0 when necessary. Everything 
works OK providing a different card is used, if the the same card number is used the "pot" will not update due to data
remaining the same value. 
  
Is there a way to set Ascii RSV1 to zero in between reads or tell when new data has been sent?  

 

0 Kudos
Message 1 of 5
(6,420 Views)
You can monitor the Ascii.update. Whenever there is a new data coming in, "update" is pulsed.
Ryan Shi
National Instruments
0 Kudos
Message 2 of 5
(6,401 Views)
That works, however the Ascii.update remains high long after the reader has sent the data. What's the best way to clear the Ascii.update signal?
0 Kudos
Message 3 of 5
(6,393 Views)
The update datamember cannot be cleared. But you can use the OneShot object. Connect update to OneShot.On/Off, and give a duration such as 1 second. It will be ON for only one second.
Ryan Shi
National Instruments
0 Kudos
Message 4 of 5
(6,381 Views)
Thank you , that worked perfectly... I did not realize the Ascii.update was in fact changing state each time the serial port was sending data. 
0 Kudos
Message 5 of 5
(6,374 Views)