I am trying to use this CsvHelper from https://github.com/JoshClose/CsvHelper/blob/master/src/CsvHelper.Example/Program.cs
to extract relevant information and save it to a text file.
if the Measured Value (F) is already in the exponential form
9.79E-11
in the Excel file, how are we able to extract out the value such that it is 97.92pF in the text file, without manipulating the Excel file contents?
how to manipulate to show the Frequency in Hz, kHz and MHz?
appreciate any useful comment and help.
see attached files.
VulpesPosted Jul 15, 2013, 6:09 AM
TAN WhoAMIPosted Jul 17, 2013, 6:32 AM
VulpesPosted Jul 17, 2013, 6:12 AM
If all you have is the .csv file, then I suggest you edit that to include the extra decimal places before reproducing the figures in the image.
TAN WhoAMIPosted Jul 17, 2013, 5:59 AM
VulpesPosted Jul 17, 2013, 5:17 AM
Perhaps the raw data (i.e. the .csv file) is itself a snapshot of an original .xls file which contained more accurate data?
TAN WhoAMIPosted Jul 17, 2013, 5:06 AM
For the Measured Value, I am still wondering why the generated .csv file produce 5 decimal places which are not the same as the picture file attached. I understand the original file already does not contain enough decimal places... so it puts a zero on the 5th decimal places.
But why the picture file able to get those precise decimal places? it is also produce from that original file...
puzzled.....
TAN WhoAMIPosted Jul 15, 2013, 9:01 AM
TAN WhoAMIPosted Jul 15, 2013, 3:25 AM
I try with the attached code, but could not produce what is desired from the picture file. Could you help? thanks.
TAN WhoAMIPosted Jul 12, 2013, 7:49 PM
VulpesPosted Jul 12, 2013, 11:54 AM
TAN WhoAMIPosted Jul 12, 2013, 10:26 AM
thanks for your effort and hard work...it is more or less close, but I need to produce the text file to be identical with the JPEG file, is it possible? I need the correct alignments as well.
Also, postive value of Measured Dev (%) needs to have a '+' appended. Voltage needs to be 5.0V, 1.0V or 4.0V.
I re-attached the JPEG file again, with its test1.csv. Take note that there is an additional first row "Capacitor Value (F):","9.741e-011".
also, take note that Allowed Deviation (%) on the .csv file is on the 3rd column, while the text file, it is on the 5th column.
arjunPosted Jul 12, 2013, 6:52 AM
Poppa WallacePosted Jul 12, 2013, 6:45 AM
http://filehelpers.sourceforge.net/
Jay
VulpesPosted Jul 12, 2013, 6:36 AM
However, it's not difficult to do what you've described using 'ordinary' code and then save it to a separate text file so that it doesn't overwrite the original:
The resulting text file, test1a.csv, looks like this: