History

GSF.EMAX: 1) Fixed scaling by applying scaling factors to unshifted 12-bit data values. 2) Fixed scaling algorithm so that data points are centered around zero rather than wrapped between 0 and 65535. 3) Fixed data file parsing algorithm to use fixed-size frames of either 40 or 80 words based on the number of configured channels.

StephenCWills committed 11 years ago

Commit c729e361 parent 5ad5c263 files · +18 −9Browse files

Showing the changes to Source/Libraries/GSF.EMAX/ControlFileStructures.cs (1 of 3 files). Show all

Unified · Split

Source/Libraries/GSF.EMAX/ControlFileStructures.cs+1−1
@@ -574,7 +574,7 @@ namespace GSF.EMAX · 573 unmodified lines
574 if (!double.TryParse(primary, out d_primary))574 if (!double.TryParse(primary, out d_primary))
575 d_primary = 1.0D;575 d_primary = 1.0D;
576 576
577 return 5.0D * d_cal_in / d_cal_ref * d_secondary * d_primary;577 return 5.0D * d_cal_in / d_cal_ref * d_primary / d_secondary;
578 }578 }
579 }579 }
580 580

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t