Index: Teensy_Python_scripts/conductivity.py =================================================================== diff -u -rd2f07b0563ab2aaeca34241d3f6ebb2da5dd3c0c -rc8fe9095198504232955adfecb5b2b65aaec5fff --- Teensy_Python_scripts/conductivity.py (.../conductivity.py) (revision d2f07b0563ab2aaeca34241d3f6ebb2da5dd3c0c) +++ Teensy_Python_scripts/conductivity.py (.../conductivity.py) (revision c8fe9095198504232955adfecb5b2b65aaec5fff) @@ -1,11 +1,8 @@ -import re -import math +import sys import serial -# import pyserial import serial.tools.list_ports as sertools import time -import struct import sensorCommands ########################################################################################## @@ -38,15 +35,15 @@ print("\nRead Sensor 6") sensorCommands.readSingleSensorMeasurement(ser, 6) # # -# # # Read all sensor value +# # # # Read all sensor value # print("\nRead All Sensors") # sensorCommands.getAllSensorMeasurements(ser) -# -# # Loop for 10 secs and read alternatively values of sensor 4 and 6 +# # +# # # Loop for 10 secs and read alternatively values of sensor 4 and 6 # print("\nRead Sensor 4 and 6 in loop for 10 seconds") # sensorCommands.loopSingleSensorReadings(ser) -# -# # Loop for 10 secs and read alternatively values of sensor 4 and 6 +# # +# # # Loop for 10 secs and read alternatively values of sensor 4 and 6 # print("\nRead All Sensors in loop for 10 seconds") # sensorCommands.loopAllSensorReadings(ser) # @@ -61,19 +58,24 @@ # sensorCommands.getEEPROMdata(ser) # # Get measurement settings -print("\nGet Measurement Settings") -sensorCommands.getMeasurementSettings(ser) - -# Get measurement settings -print("\nUpdate Measurement Settings") -sensorCommands.updateMeasurementSettingsStruct(ser) - -# Get measurement settings -print("\nGet Measurement Settings") -sensorCommands.getMeasurementSettings(ser) - +# print("\nGet Measurement Settings") +# sensorCommands.getMeasurementSettings(ser) +# +# # Get measurement settings +# print("\nUpdate Measurement Settings") +# sensorCommands.updateMeasurementSettingsStruct(ser) +# +# # Get measurement settings +# print("\nGet Measurement Settings") +# sensorCommands.getMeasurementSettings(ser) +# # Get all sensor data -# print("\nGet all sensor data") -# sensorCommands.getAllSensorData(ser) +print("\nGet all sensor data") +sensorCommands.getAllSensorData(ser) +# +# # Store the console output in a file +# with open("log_data.txt", "w") as f: +# sys.stdout = f + ########################################################################################## \ No newline at end of file