SPUPTestScriptSimple: Start()
ResetVariablesForDisconnectOrStopMode()
ResetVariablesForDisconnectOrStopMode(), DeviceConnected:0, DeviceRead:0
#######################################################################

LogFileManager: Start()  DateTime: 4/16/2024 5:33:44 PM
LogFile_PathName: F:/!Unity/EarstimWindows_Unity2019/!BuildWindows/Earstim_Data/Log.txt

starting: Sequence_DEVICE_LIST_SEARCH()
OpenDevice()
Sequence_IncrementToNextFunction() Sequence = 2
Sequence_DEVICE_REQUEST_NAME()
Sequence_IncrementToNextFunction() Sequence = 3
Sequence_DEVICE_WAIT_FOR_NAME()
DeviceNotFound()
starting: Sequence_DEVICE_LIST_SEARCH()
OpenDevice()
Sequence_IncrementToNextFunction() Sequence = 2
Sequence_DEVICE_REQUEST_NAME()
Sequence_IncrementToNextFunction() Sequence = 3
ReadUpdate() size = 56
ReadCompleteString() {
	"PayloadType":	20,
	"sEarstimIdentifier":	"EarStim"
}
Sequence_DEVICE_WAIT_FOR_NAME()
Sequence_IncrementToNextFunction() Sequence = 4
LateUpdate()  case DEVICE_EARSTIM_FOUND
Sequence_DEVICE_EARSTIM_FOUND()
Sequence_IncrementToNextFunction() Sequence = 5
Sequence_DEVICE_CONNECTED()
Sequence_IncrementToNextFunction() Sequence = 6
Sequence_DEVICE_GET_FIRMWARE()
Sequence_IncrementToNextFunction() Sequence = 7
Sequence_IncrementToNextFunction() Sequence = 8
Sequence_DEVICE_GET_DATE()
Sequence_IncrementToNextFunction() Sequence = 9
ReadUpdate() size = 58
ReadCompleteString() {
	"PayloadType":	3,
	"DateTime":	"2024-04-16T17:33:49Z"
}
Sequence_DEVICE_REQUEST_SETTING_VALUES()
Sequence_IncrementToNextFunction() Sequence = 12
Sequence_IncrementToNextFunction() Sequence = 13
Sequence_DEVICE_REQUEST_INITIALIZE()
Sequence_IncrementToNextFunction() Sequence = 14
ReadUpdate() size = 353
ReadCompleteString() {
	"PayloadType":	0,
	"iFirmwareVersion":	102030,
	"iPatientID":	0,
	"iDeviceSerialNum":	0,
	"iTimestampDelay":	10,
	"fVoltage":	445,
	"fFrequency":	130,
	"fPulseWidth":	100,
	"fDuration":	40,
	"fTargetCurrent":	3,
	"iNumTreatmentRecords":	0,
	"fVoltageSensed":	447,
	"fCurrentSensed":	1126,
	"fReadBatteryStatus":	30,
	"sEarstimIdentifier":	"EarStim"
}
Sequence_IncrementToNextFunction() Sequence = 15
Sequence_DEVICE_DATE_SYNCHRONIZE()
Sequence_IncrementToNextFunction() Sequence = 16
ReadUpdate() size = 58
ReadCompleteString() {
	"PayloadType":	4,
	"DateTime":	"2024-04-16T17:33:51Z"
}
Sequence_IncrementToNextFunction() Sequence = 17
Sequence_DEVICE_READY()
Sequence_IncrementToNextFunction() Sequence = 18
Sequence_DEVICE_START_TREATMENT()
UpdatePatientNameFolder(sPatientID)
PatientFolderPathName: F:/!Unity/EarstimWindows_Unity2019/!BuildWindows/Earstim_Data\Patient_1012\
PatientFolderPathName_filename: F:/!Unity/EarstimWindows_Unity2019/!BuildWindows/Earstim_Data\Patient_1012\Patient_1012_2024yr4mo16day_17h34m8s.txt
Sequence_IncrementToNextFunction() Sequence = 20
ReadUpdate() size = 44
ReadCompleteString() {
	"PayloadType":	21,
	"Status":	"SUCCESS"
}
Sequence_DEVICE_STOP_TREATMENT()
ReadUpdate() size = 44
ReadCompleteString() {
	"PayloadType":	23,
	"Status":	"SUCCESS"
}
received response: DEVICE_WAIT_FOR_TREATMENT_STOPPED)
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
ResetVariablesForDisconnectOrStopMode()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
Sequence_DEVICE_WAIT_FOR_TREATMENT_STOPPED()
SPUPTestScriptSimple: Start()
ResetVariablesForDisconnectOrStopMode()
ResetVariablesForDisconnectOrStopMode(), DeviceConnected:0, DeviceRead:0
#######################################################################

LogFileManager: Start()  DateTime: 4/18/2024 1:59:11 PM
LogFile_PathName: F:/!Unity/EarstimWindows_Unity2019/!BuildWindows/Earstim_Data/Log.txt

starting: Sequence_DEVICE_LIST_SEARCH()
OpenDevice()
Sequence_IncrementToNextFunction() Sequence = 2
Sequence_DEVICE_REQUEST_NAME()
Sequence_IncrementToNextFunction() Sequence = 3
Sequence_DEVICE_WAIT_FOR_NAME()
DeviceNotFound()
starting: Sequence_DEVICE_LIST_SEARCH()
OpenDevice()
Sequence_IncrementToNextFunction() Sequence = 2
Sequence_DEVICE_REQUEST_NAME()
Sequence_IncrementToNextFunction() Sequence = 3
ReadUpdate() size = 56
ShowPhysicianProgram(), DeviceConnected:0, DeviceRead:0
ReadCompleteString() {
	"PayloadType":	20,
	"sEarstimIdentifier":	"EarStim"
}
Sequence_DEVICE_WAIT_FOR_NAME()
Sequence_IncrementToNextFunction() Sequence = 4
LateUpdate()  case DEVICE_EARSTIM_FOUND
Sequence_DEVICE_EARSTIM_FOUND()
Sequence_IncrementToNextFunction() Sequence = 5
Sequence_DEVICE_CONNECTED()
Sequence_IncrementToNextFunction() Sequence = 6
Sequence_DEVICE_GET_FIRMWARE()
Sequence_IncrementToNextFunction() Sequence = 7
Sequence_IncrementToNextFunction() Sequence = 8
Sequence_DEVICE_GET_DATE()
Sequence_IncrementToNextFunction() Sequence = 9
ReadUpdate() size = 58
ReadCompleteString() {
	"PayloadType":	3,
	"DateTime":	"2024-04-18T13:59:16Z"
}
Sequence_DEVICE_REQUEST_SETTING_VALUES()
Sequence_IncrementToNextFunction() Sequence = 12
Sequence_IncrementToNextFunction() Sequence = 13
Sequence_DEVICE_REQUEST_INITIALIZE()
Sequence_IncrementToNextFunction() Sequence = 14
ReadUpdate() size = 348
ReadCompleteString() {
	"PayloadType":	0,
	"iFirmwareVersion":	102030,
	"iPatientID":	0,
	"iDeviceSerialNum":	0,
	"iTimestampDelay":	10,
	"fVoltage":	426,
	"fFrequency":	130,
	"fPulseWidth":	100,
	"fDuration":	40,
	"fTargetCurrent":	3,
	"iNumTreatmentRecords":	0,
	"fVoltageSensed":	0,
	"fCurrentSensed":	0,
	"fReadBatteryStatus":	30,
	"sEarstimIdentifier":	"EarStim"
}
Sequence_IncrementToNextFunction() Sequence = 15
Sequence_DEVICE_DATE_SYNCHRONIZE()
Sequence_IncrementToNextFunction() Sequence = 16
ReadUpdate() size = 58
ReadCompleteString() {
	"PayloadType":	4,
	"DateTime":	"2024-04-18T13:59:18Z"
}
Sequence_IncrementToNextFunction() Sequence = 17
Sequence_DEVICE_READY()
Sequence_IncrementToNextFunction() Sequence = 18
