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.
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.
03-29-2015 11:01 AM
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 ?
Solved! Go to Solution.
03-29-2015 12:00 PM
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!
03-29-2015 12:50 PM
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
03-29-2015 01:38 PM
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?
03-29-2015 02:34 PM
03-30-2015 05:29 AM - edited 03-30-2015 05:32 AM
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