LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus Data Storage

Hi there. So it's my first time working on LabVIEW and I have created a program that reads the output of a PV panel though a Modbus based device. The Read function returns a 1D array of unsigned word (16bit integer), that looks like this: [Voltage, Current, Power (low), Power (high), Energy (low), Energy (high), High voltage alarm, Low voltage alarm]. 

 

I would like to manipulate this data so that every measured time is stored in a new line in a table and then to create a graph with just the energy values. Then probably send this information or even treat it from the beginning in Excel, but i don't know if the second option is possible. 

 

I'm mainly having problems with the format of the output, as most of the options I've tried to, for example, create tables, are using single "string" and I haven't found how to convert it. I also don't know how to select just 1 value from the array to create my graph. 

 

This is what I have right now:

Capture.PNG

 

I appreciate any help.

 

0 Kudos
Message 1 of 2
(2,163 Views)

Hi vresa,

 

I would like to manipulate this data so that every measured time is stored in a new line in a table and then to create a graph with just the energy values. Then probably send this information or even treat it from the beginning in Excel, but i don't know if the second option is possible.

  • A table is a 2D array of strings (in LabVIEW), so you would need to convert your readings into strings. Or use a MultiColumnListBox (MCLB, also 2D string data), or just a 2D array of DBL values…
  • To save those data I recommend to use WriteDelimitedFile, the resulting text file is easily readable by Excel.
  • If you really want to create Excel files you should either use the WriteMeasurementFile ExpressVI or functions from RGT (ReportGenerationToolkit).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,159 Views)