Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

command string to run data DAQ from serial port and storage in Excel

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
   

0 Kudos
Message 1 of 3
(178 Views)

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.

 

 

greetings from the Netherlands
0 Kudos
Message 2 of 3
(129 Views)

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

 

Neno4487_0-1739958866702.png

 

I hope you can give me more advice.

 

best regard

 

Neno 

0 Kudos
Message 3 of 3
(116 Views)