LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving just the data shown on waveform strip chart

Hello,

 

I'm not sure if this is possible or not within LabVIEW, so I'm hoping someone in the forum knows if it is and if so, knows how to do it:

 

I've had a few applications come up recently where it would be good to know how to do the following:

 

1. Stop updating to a waveform strip chart.

2. Zoom in on a region of interest on the strip chart.

3. Through a button press (or other means), pull out just the data shown the strip chart into another waveform (or even a 1-D array that could be used to build a new waveform using the original waveforms characteristics, dT, t0, etc.).

4. This newly "extracted" data would then be used for calculations, further analysis, etc.

 

Is this even possible?

 

I'm attaching a very basic VI I've put together that builds a waveform using some random data and updates a strip chart in one shot (just for testing purposes, I haven't set this up for constant updating in this particular VI). What I want to do is that when you press the "Export" button, it goes onto the next step in the flat structure (again, I typically use a QMH architecture, but for testing I'm using a flat sequence structure) that would handle then operation I'm looking to accomplish.

 

I really appreciate any help that can be provided.
Thanks.

 

Mike

Certified LabVIEW Architect
Miami University
Instrumentation Laboratory

CLA Logo
0 Kudos
Message 1 of 3
(2,749 Views)

Hi weeksmr,

 

1. To stop updating the chart you need to stop writing new data into the chart. A case structure around the chart terminal might help…

2. Manually, I guess…

3. Read the x axis properties at your button press to know the x range of your data. Read the chart history and use the x range data to extract the zoomed in region of the Y data…

4. Just do it…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,732 Views)

Hi GerdW,

 

Thank you for your help and suggestions. I'm going to keep working with this and re-post some updated code (hopefully) that will accomplish this based on your suggestions.

 

Mike

Certified LabVIEW Architect
Miami University
Instrumentation Laboratory

CLA Logo
0 Kudos
Message 3 of 3
(2,717 Views)