LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract the data from the chart. Data were not saved

Hi everyone. Beginners question, but could not find an answer to it
How can I get the numerical data from the chart. Chart is already on the screen and data vere not saved into file during VI run. All I have - just chart, but I need numbers  😞     
Thanks

Message Edited by olka on 07-18-2007 09:41 AM

0 Kudos
Message 1 of 13
(4,087 Views)
Hi olka,

you may use a property node 'History data' of the chart to get the data...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(4,061 Views)
Take these steps:
  1. Select the entire chart and copy it to the front panel of a new VI. The chart and all the data should be visible on the new VI.
  2. Right click on the chart and turn it into a control.
  3. Go to the diagram and create a property node for the control for the History Data property. If the property isn't already in read mode, set it to read.
  4. Right click on the property node and create an indicator. As array indicator should appear on the front panel.
  5. Run the new VI - the data will be in the array.
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 13
(4,059 Views)
There is a chart property, History Data, that gives access to the internal array. In edit mode (vi stopped), copy and paste the chart control onto a new vi and extract the data.
If you are wondering what a property may be, let us know.

Well, beaten once more..Smiley Sad

Message Edited by pincpanter on 07-18-2007 05:14 PM

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 13
(4,057 Views)
Thanks

Message Edited by olka on 07-18-2007 10:16 AM

0 Kudos
Message 5 of 13
(4,053 Views)

Guys, you deal with REAL LV DUMMY, so,

"3. Go to the diagram and create a property node for the control for the History Data property. If the property isn't already in read mode, set it to read."

Could you, please, tell me this in more details (for dummies), like, r-click etc, how to create property node control for the history data ???

Thank you

0 Kudos
Message 6 of 13
(4,038 Views)
Hi Olka,

do as you wrote:
right-click the charts' terminal, select create->property node and select 'history data'. Right-click the property node to set 'read'. Now wire as needed...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(4,032 Views)
O-o-ps. I have on the screen not chart, but "Ex x-y graph". So , I can not make a history data for it. What should I do now?
0 Kudos
Message 8 of 13
(4,024 Views)
You can still do it, the process just changes a bit...
  1. Copy the control to a new VI as before, and change it into a control.
  2. Create the diagram shown in the attached screen shot.
  3. Run the new VI. You will get two arrays: one of x-axis values and one of y-axis values.
Mike...

Message Edited by mikeporter on 07-18-2007 12:21 PM


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 9 of 13
(4,015 Views)
If the graph is an x-y, you don't need properties: the Value itself is a cluster (for 1 plot) or an array of clusters (for N>1 plots).
Each cluster contains one array for the X values and another for the Y values.
You only need to take the terminal (if it's a control) or create a local variable (if it's an indicator) and extract the data from them.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 10 of 13
(4,011 Views)