LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

method of serial activity logging?

Hi!

Sorry for my post if there is a solution here, but i made several search on this topic and couldn't find an exact answer.
So my task is to make a Labview application which logs every activity (like DTR on-off, DSR on-off, RTS on-off, RI,DCD,CTS on-off, Data sent between DTE and DCE) with the help of a spy cabel on COM1 and COM2 (com1 monitors the DTE to DCE comm and com2 monitors the DCE to DTE communication).  I also made the cable, there is no problem with it. My question is that which is the best method to do the logging. My plan is to make some led just for the vision which will changing on for example DTR activity (it's okay) and a string indicator or something (listbox?) which shows every action happens under the comm like a logging window.  So can you advise me the best solution you think to make this indication? I'm still trying to use an event structure but haven't got any results so far.
Thank you for your reply in advance.

Regards
nagyo
0 Kudos
Message 1 of 4
(2,905 Views)
okay, i made a beta version, attached down. Now my problem is that this program writes a line in every 2 second to the log window. It should have to write into the log window just in case if some change happened with the lines, so if in the previous sequence the value of DTR was off and now is on. can anybody help me in this? I tried shift registers, feedback, other sequences but nothing :(. Please give me some ideas!
thanks
0 Kudos
Message 2 of 4
(2,892 Views)
The reason it is being written to everytime is that on every iteration of the upper loop, the current value is being to the value signalling property node, which is causing the event to fire every time in the lower loop.
 
As a first suggestion, compare the new value to the old value, and if it is the same, don't write anything into the value signalling property node.  You could do that with shift registers in the upper loop.
0 Kudos
Message 3 of 4
(2,875 Views)
0 Kudos
Message 4 of 4
(2,844 Views)