Changes between Version 10 and Version 11 of Docs/Prog/Manual/DeviceSupport/Weighing
- Timestamp:
- 10/20/10 14:47:53 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/DeviceSupport/Weighing
v10 v11 96 96 int main () 97 97 { 98 int i, x, stat, n = 0;98 int i, x, stat, nSamplesPerSecond = 0; 99 99 struct timespec delaytm; 100 100 char szMsg[41]; … … 163 163 { 164 164 printf("%d %.3f %.3f\r\n", i, *(float*)&pwim[i], *(float*)&pwim[i+1]); 165 n ++;165 nSamplesPerSecond++; 166 166 } 167 167 sprintf(szMsg, "%10.3f %10.3f", *(float*)&pwim[x - 2], *(float*)&pwim[x - 1]); … … 176 176 { 177 177 LocateLCD(FONT_WIDTH * 30,0); 178 sprintf(szMsg, "%02d %4d", tmnow->tm_sec, n );178 sprintf(szMsg, "%02d %4d", tmnow->tm_sec, nSamplesPerSecond); 179 179 PrintLCD(szMsg); 180 180 181 181 prev_sec = tmnow->tm_sec; 182 n = 0;182 nSamplesPerSecond = 0; 183 183 } 184 184 }