Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect battery voltage written to FluxLog files #154

Open
christophkern opened this issue Sep 20, 2021 · 4 comments
Open

Incorrect battery voltage written to FluxLog files #154

christophkern opened this issue Sep 20, 2021 · 4 comments
Assignees

Comments

@christophkern
Copy link
Contributor

When using the 4th Generation NOVAC scanners (Axiomtek, TaskIt etc.), the battery voltage written to the FluxLog files appears to be incorrect. I'm attaching an example file in which all battery voltage values are > 190. Interestingly, the voltages are displayed correctly in the 'Instrument' tab.

FluxLog_2009175M1_2021.09.20.txt

@christophkern
Copy link
Contributor Author

Sorry, it appears that the battery voltages may not be displayed correctly in the 'Instrument' tab.

@mattias42
Copy link
Contributor

Not sure what to do with this information, I'm not sure where the value goes wrong and don't know what the correct value should be for the measurements in the FluxLog.
Do we have the pak-files that generated this log? If the battery voltage written into the spectrum file differs from what is written to the FluxLog then it could be possible to step through the code and see where the value goes 'bad'.
Also, is there a difference between the battery voltage which is printed by kongo in the log files and the battery voltage which the Novac Program reads out from the pak-files?

@christophkern
Copy link
Contributor Author

I'm not completely sure if the problem is in kongo or in the NOVAC Program. We have an instrument running at CVO, and I connected to it this morning via SSH. I'm attaching a screenshot of the kongo logfile (obtained using 'showlog'). You can see the Battery voltage is listed as 13.17 V for the scan beginning at 15:58 UTC. I'm attaching the pak and txt files for that same scan. In the txt file, you can see the battery voltage is listed as 216.75. So somewhere between the kongo log file and the Evaluation log, the battery voltage is getting jumbled. This only appears to happen for the 4th generation instruments (Axiomtek + TaskIt+ Avantes), so perhaps it's a kongo problem?

kongo_showlog

2009175M1_210924_1559_0.txt

2009175M1_210924_1559_0.pak.zip

@mattias42
Copy link
Contributor

It seems as if the battery voltage is written incorrectly into the .pak file itself.
Opening this attached .pak file. shows that the value ADC[0] written is 21675, which NovacProgram then will convert to a voltage by dividing this integer value by 100 (in order to get a voltage with decimals), hence the battery voltage written to the file is 216.75V.

BatteryVoltage
s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants