Hi all,
Having issues transmitting numeric data out from the 18F26K83 using hserout. No problems with the software serout2, but for some reason all my numerical data is corrupted for hserout ie. any numeric variable sent with a dec or dec2 or dec6 etc is corrupted. Anything sent between quotation marks "" sends fine. Any ideas?
This is what I should be seeing in my output (transmitted with serout2):
Start Report
Base_Pressure =102338
Elapsed time (s),Z_Gs,Baro_Temp,Baro_mBar,Ch1_Out,Ch1_Active,Ch 1_Firec,Ch2_Out,Ch2_Active,Ch2_Fired,Timer_ON,Time r_Active,Timer_Time,Inhibit_Time,Min Press
0.000000,2.558,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
0.024605,1.698,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
0.061340,0.447,20.21,1023.27, , , , , , ,, ,15000000,0,1023.27
0.098057,-1.4294966557,20.21,1023.28, , , , , , ,, ,15000000,0,1023.27
0.136882,0.610,20.21,1023.28, , , , , , ,, ,15000000,0,1023.27
0.183435,2.3,20.21,1023.29, , , , , , ,, ,15000000,0,1023.27
0.219704,2.952,20.21,1023.30, , , , , , ,, ,15000000,0,1023.27
0.256500,1.135,20.21,1023.30, , , , , , ,, ,15000000,0,1023.27
And this is what I'm getting with hserout:
Start Report
•}A••= LŠŠj
Elapsed time (s),Z_Gs,Baro_Temp,Baro_mBar,Ch1_Out,Ch1_Active,Ch 1_Firec,Ch2_Out,Ch2_Active,Ch2_Fired,Timer_ON,Time r_Active,Timer_Time,Inhibit_Time,Min Press
r‚‚‚‚‚b& b&r’bLŠrb, , , , , , , , S bLŠrj
rŠ‚ŠššbL MS &r’bLŠrLb, , , , , , , , S bLŠrj
r’’’bL ªb&r’bLŠrLb, , , , , , , , S bLŠrj
r‚brŠŠb&r’bLŠrLb, , , , , , , , S bLŠrj
rLºbršb&r’bLŠrLL , , , , , , , , S bLŠrj
rL’brb&r’bLŠrL& , , , , , , , , S bLŠrj
rLSbrŠb&r’bLŠrL& , , , , , , , , S bLŠrj
r&š’brb&r’bLŠrL& , , , , , , , , S bLŠrj
r&S‚brʲb&r’bLŠrL& , , , , , , , , S bLŠrj
r&š¢brN& &r’bLŠrL& , , , , , , , , S bLŠrj
r&‚‚brN“ &r’bLŠrL& , , , , , , , , S bLŠrj
r&bL ‚Šb&r’bLŠrL& , , , , , , , , S bLŠrj
Same code, same everything other than serial transmission method.
Thanks for any assistance,
Troy
Bookmarks