04-13-2011 07:00 AM
Problem - Intermittent Read Problem (~1/15 actual reads) where invalid weight data (0) is read from a weight balance when the user presses the transfer key. It happens on the very first run in either Column, Row or Single Entry Method. It can happen anytime the Program has been stopped, new entry method selected and program started again.
Debug - I highlighted execution and the weight data appears to be flowing normal even when the invalid weight data appears in the Weight Value Window or written to the Spreadsheet ! I did manage to find a race condition in the Read Case where I initialize Weight Value to zero then perform the read weight code and write the data to Weight Value so I moved the initialize Weight Value to zero into the Check Event Timeout Event Case. The intermittent Read Problem still exists !
Attached is a zip file containing all of my Project Files, if someone could please review and let me know where there might be possible sublte issues/problems that would be great !
Thanks !
Barry
04-13-2011 10:26 AM
Hey Barry,
I am currently taking a look at your project and am having a little trouble following the flow. And I think this is going to cause some big problems regarding the efficiency of being able to debug this. If you don't mind, I have a few suggestions:
Anyway, I think that if you address some of these issues, the problems that you are seeing may become more apparent.
Peace, Matt
04-15-2011 12:00 PM
Hi Matt,
Thanks for your feedback and constructive criticism, I will look into implementing some or all of your sugestions.........
Barry