<commit_before>
----------------------How to run Imprint Energy's Battery Tester------------------

1. Make sure that the arduino board is hooked up via usb to the laptop.
2. Make sure that the aligator clips are hooked up to some battery with the positive and negative clips hooked up correctly.
3. Run the connect.bat file (double-click). You should see a command window pop up saying "waiting for connection on 7777"
If you do not see this, remove the USB cable and try again.
4. Keep this window open, do not close it. Minimize it.
4. Run the batterytester.bat file. This will bring up the program.


-----------------------Galvanostat/Potentiostat tests------------------------------
Make sure that you calibrate the device before running these tests. The GUI
will expect a unit_16.pickle calibration file in the same directory so it can
load the calibration file.
1. Select the appropriate tab for whichever test you want to run. Fill in the necessary fields with the parameters you wish
to use.
2. Click "Run!". After a few seconds, you should see plots starting to form in real time on the graph. If nothing happens,
try to close the program and re-try running it.
3. You can adjust the x min and x max to focus on certain parts of the voltage and current graphs. 
4. If you want to save your test run, pause the graph, and select "save graph" from the file menu.
5. Select the location you want to save to, and name your test, e.g. "GalvoTest". Make sure to add no extensions!
6. You will see several files generated in the directory you selected. The ".txt" file is a log of all the voltages and currents.
The ".png" is a screenshot of the graph at the time you saved.


-------------------------Loading saved plots---------------------------------------
1. Sometimes you will need to load saved plots using the batterytest software. You can do this by selecting the "load result"
tab from the program.
2. Select the "load" button.
3. Locate the file you saved previously without any extensions, e.g. "GalvoTest".
4. You should see the graph loaded again. You can pan and zoom the graph as you wish. <commit_msg>Updating README.txt with more explicit instructions<commit_after>Before running anything, the correct firmware must be downloaded to the Arduino. Currently,
we are using firmware 7_s.

---------------------How to calibrate your device--------------------------------
1. Make sure that the arduino board is hooked up via usb to the laptop.
2. Make sure that the aligator clips are hooked up to some battery with the positive and negative clips hooked up correctly.
3. Run the connect.bat file (double-click) if it has not been run already. You should see a command window pop up saying 
"waiting for connection on 7777". If you do not see this, remove the USB cable and try again.
4. Keep this window open, do not close it. Minimize it.

The GUI will expect a unit_16.pickle calibration file in the same directory so it can
load the calibration file. 

5. Be sure to measure the resistance of the resistor using an accurate 
multimeter, and modify calibrateroutine.py to reflect your measured resistance (see comments in 
calibrateroutine.py for more info). 

6.To run calibration, run calibrateroutine.bat. This file will
save a unit_16.pickle calibration file to the current directory.


----------------------How to run Imprint Energy's Battery Tester------------------

1. Make sure that the arduino board is hooked up via usb to the laptop.
2. Make sure that the aligator clips are hooked up to some battery with the positive and negative clips hooked up correctly.
3. Run the connect.bat file (double-click) if it has not been run already. You should see a command window pop 
up saying "waiting for connection on 7777". If you do not see this, remove the USB cable and try again.
4. Keep this window open, do not close it. Minimize it.
5. Run batterytester.bat.


-----------------------Galvanostat/Potentiostat tests------------------------------

1. Select the appropriate tab for whichever test you want to run. Fill in the necessary fields with the parameters you wish
to use.
2. Click "Run!". After a few seconds, you should see plots starting to form in real time on the graph. If nothing happens,
try to close the program and re-try running it.
3. You can adjust the x min and x max to focus on certain parts of the voltage and current graphs. 
4. If you want to save your test run, pause the graph, and select "save graph" from the file menu.
5. Select the location you want to save to, and name your test, e.g. "GalvoTest". Make sure to add no extensions!
6. You will see several files generated in the directory you selected. The ".txt" file is a log of all the voltages and currents.
The ".png" is a screenshot of the graph at the time you saved.


-------------------------Loading saved plots---------------------------------------
1. Sometimes you will need to load saved plots using the batterytest software. You can do this by selecting the "load result"
tab from the program.
2. Select the "load" button.
3. Locate the file you saved previously without any extensions, e.g. "GalvoTest".
4. You should see the graph loaded again. You can pan and zoom the graph as you wish. 
{'fraction_non_alphanumeric': 0.11136668583477094, 'fraction_numerical': 0.010542457350967989, 'mean_word_length': 2.792151162790698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5595807', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1252, 'n_words': 851}