02-16-2025 11:11 AM
Hi,
I'm working on a project to make a research room with an energy management system. I have PZEMS with ESP32 installed on the consumer unit and connected a serial com port on the PC. I will make real-time monitoring and storage of usage electrical parameters (Watt, Voltage, Energy, Frequency, Power factor).
the LabVIEW platform sent a command string (R) to get data from the serial com port and show indicators on the front panel as storage data to excel.
Please help me out and guide me through the process. I'm studying electrical and very new to LabVIEW. Your help will be kindly and greatly appreciated.
sorry for my poor Englis.
thank you.
Best regards,
Neno
02-17-2025 12:54 PM
Hi
This looks as a school problem but anyhow here you have something that might work and is a littlebit cleaned up although it was already not that bad.
Special: only use bytes available if you are sure there is no endcharacter to your string.
You can use excel to open the comma separated file easily.
02-19-2025 03:57 AM
Thank you for your advice, but it is not similar to my project. I mean, the letter "R" works like a switch or Boolean to create an Excel file to record data, and the data also shows on the indicator in the front panel.
Here is my sketch for ESP32
I hope you can give me more advice.
best regard
Neno