I have set up a Google Code project at http://code.google.c...e/browse/trunk/ in order to show my problem.
What I'm trying to achieve here is read some data from a serial port and update a label element on each new input.
What I think should give the desired result instead appears to be hanging in a loop.
The specific code I am having trouble with is...
/* define the connection to the CurrentCost meter */ SerialPortAccess meter = new SerialPortAccess(); meter.ComPort = "COM7"; CurrentCostUpdate ccUpdate = meter.GetSingleUpdate(); /* get a single update from the CurrentCost meter */ CurrentPowerLabel.Text = ccUpdate.Channel1Watts.ToString();
Please view the SerialPortAccess.cs file for the business end.
Thanks in advance for your help