07-05-2016 03:09 PM - edited 07-05-2016 03:09 PM
double d = 5.1; float f = 9.2; // (open an Excel worksheet) // This writes the correct value ExcelRpt_SetCellValue(worksheet, "A1", ExRConst_dataDouble, d); // This writes junk -- 1.9E+19 or something similar ExcelRpt_SetCellValue(worksheet, "A2", ExRConst_dataFloat, f);
Solved! Go to Solution.
07-06-2016 04:49 PM
Hi richferrara
What version of LabWindows™/CVI™ and Microsoft Excel® are you using?
07-07-2016 07:21 AM
I'm running LabWindows 2015. I've seen the same result using Excel 2010 and 2013.
07-08-2016 07:14 PM
Hi richferrara
I was able to replicate your behavior and will be looking for any existing Corrective Action Reports on our end to see if we already have this documented. I did find that whenever you set the data type enum for your float write to "ExRConst_dataDouble" that it writes the value correctly. I'll continue looking into this issue and post what I find.