12/12/2023 11:40 AM | |
Joined: 7/24/2023 Last visit: 5/10/2024 Posts: 29 Rating: (2) |
Hello alanTI, thank you for your suggestions. I'm trying to using javascript code to read the logged tag and export it in a text file, basically following what I found here: https://www.youtube.com/watch?v=jTmL5F4D42E&t=419s And attached is my code. In the TraceViewer I see all my trace are "good", but in the text file I see just this line with invalid time stamp and invalid value: Name,Timestamp,Value, Current_A:d_visualAssorbimento,Mon Jan 01 1601 00:00:00 GMT+0000 (Coordinated Universal Time),null, Have you got some idea on what I can try? Thanks AttachmentCode.txt (252 Downloads) |
Last edited by: The Helping Hand at: 12/12/2023 11:44:37Code attached as txt-File Last edited by: The Helping Hand at: 12/12/2023 11:44:55Last edited by: Maikol89 at: 12/12/2023 11:49:14Last edited by: Maikol89 at: 12/12/2023 11:50:45Last edited by: Maikol89 at: 12/12/2023 11:51:48 |
|
12/18/2023 10:28 AM | |
Joined: 7/24/2023 Last visit: 5/10/2024 Posts: 29 Rating: (2) |
Hello Murof, thank you for your answer. I tried as you suggested with defined start end time and I made some trace.. but the result is the same: it seems that there is something wrong with time stamps or "LoggedTags" functions. I attach the code. This is the TraceViewer log: #|Host |System |Application |Subsystem |Module |Severity |Flags |Timestamp |Process/Thread|Text|Filename |Line # 6634|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.098409 |45100 (0x5449f700)|session: 0001, trace: Trace(): script start ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp 6635|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.131111 |45100 (0x5449f700)|session: 0001, trace: Trace(): timeStamp: 18_12_2023__10_14_58 ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp 6636|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.133677 |45100 (0x5449f700)|session: 0001, trace: Trace(): start time: Mon Dec 18 2023 00:00:00 GMT+0000 (Coordinated Universal Time) end time: Mon Dec 18 2023 23:00:00 GMT+0000 (Coordinated Universal Time) ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp 6637|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.134239 |45100 (0x5449f700)|session: 0001, trace: Trace(): Tag Name : Current_A:d_visualAssorbimento ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp 6638|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.139180 |45100 (0x5449f700)|session: 0001, trace: Trace(): csvData for: Name,Timestamp,Value, Current_A:d_visualAssorbimento,Mon Jan 01 1601 00:00:00 GMT+0000 (Coordinated Universal Time),null, ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp (callback) 6639|ucp-AC6417CE3232 |RTIL QtGui |HmiGuiM(22) |ScriptFW |ScriptHMIRuntime |Info | |2023.12.18 11:14:58.140925 |45100 (0x5449f700)|session: 0001, trace: Trace(): Write file finished successfully ScriptContext: HMI_RT_2::Screen_1 Module: /screen_modules/HMI_RT_2::Screen_1/Events.js Function: Button_3_OnUp (callback) (callback) And the txt file generated from the code is this: Name,Timestamp,Value, Current_A:d_visualAssorbimento,Mon Jan 01 1601 00:00:00 GMT+0000 (Coordinated Universal Time),null, What can I try? Thanks Attachmentcode.txt (214 Downloads) |
Follow us on