Yes it is updating. I am seeing the my tags changing its value continuosly from 330.2 to 123.4 and viceversa and so on , but the count is not incrementing.I just run the program what Str8jckt gave. Can I know what is the importance of this RS232_Continuous.What is happening if we take the data continuously in RS232_Continuous till it takes 200+ charecters. How the Program worked without incrementing count
Also Yes I really don't know the exact usage of PortInput , as I need to send a string to a tag, I make use of this ! and @ as my starting and ending characters.
Since it appears that you are forming the message in the sending device, is it possible for you to include a Carriage Return (ASCII 13) at the end of your message before you send the next string?
I am not sure if this will fire the On Update Event, but you can try that.
I think a better solution would be to reprogram your sending device to do the following:
1. Open the Port
2. Send all the values you want to update in one string
3. Close the Port
4. Wait a short time (this may not be needed)
5. Repeat the process
I think the issue is that the On Update Event of the port is not firing because whatever causes the event to occur is not happening. In other words, I think your sending device is opening the port (which causes the On Update Event of the port to fire) and then it begins data storming the port without "taking a breath". Since it doesn't see the Event again, it never reads again.
There is probably a way to write a program to operate this way, but I don't see any reason to go to that much trouble. No one or nothing can consume or use the data the C306 would receive in the fashion you are trying to send it anyway. Even though the screen could update rapidly, the fastest usable data changes would be 1 second and that is pushing it.
That is why I recommend reformatting the way you are sending data so that it can be handled in a very simple fashion through the On Update Event.