From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export some xy graph values to spreadsheet

Solved!
Go to solution

Hello,

 

I'm newish to labview and i'm trying to extract the values used to plot the XY Graph, but only for x=0,10...90,100 ... 360.

instead of extracting 361 values i need only 37. I tried using another for statement but with no succes.

Any help ?

0 Kudos
Message 1 of 6
(2,749 Views)

Hi Lies,

 

but only for x=0,10...90,100 ... 360. instead of extracting 361 values i need only 37.

Well: "0, 10-90, 100-360" are ~350 values and not 37.

Can you explain how you get that value "only 37"!?

 

i'm trying to extract the values used to plot the XY Graph

You should only put those values in the arrays you are interested in. Right now you create arrays for a x range of 0…360!

Best regards,
GerdW


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

my vi calculates for x = from 0 to 360.

i only need to extract values for x = 0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360

 

0 Kudos
Message 3 of 6
(2,711 Views)

Your loop count is 361. Why not just drop it to 37 and multiply the loop counter by 10 before using it in your calculations?

0 Kudos
Message 4 of 6
(2,693 Views)
Solution
Accepted by Lies
Or use the array decimate to get every 10th value from the input 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 5 of 6
(2,685 Views)

The solution is certainly vaid, but calulating 361 values and throwing away 324 of them is perhaps a tad inefficient?

 

EDIT - or maybe I misread this - can't see the source code at the moment, and tried to delete my post until I can check again but cant see how Smiley Surprised

0 Kudos
Message 6 of 6
(2,651 Views)