# LabVIEW

cancel
Showing results for
Did you mean:

## how to center loop

I'd like to move 1st loop (the biger one) to cener -correction on x and y axis
if anyone can take a look - pic and data in attachment

lw7.1 user
Message 1 of 8
(2,606 Views)

## Re: how to center loop

Well, I assume you know where your data come from so you should be able to figure out how to find the "centre point" of that loop, max-min or mean or else...
Then just substract the Xc to the X array and Yc to the Y array.

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 8
(2,599 Views)

## Re: how to center loop

I did somethng, but I still have problem with the poins.Any idea to correct?
Message 3 of 8
(2,561 Views)

## Re: how to center loop

ok I did it  thanks for..
Message 4 of 8
(2,541 Views)

## Re: how to center loop

I think this is more what TiTou had in mind.

Message Edited by jasonhill on 07-11-2006 08:26 AM

Message 5 of 8
(2,536 Views)

## Re: how to center loop

should this return anything?, couse it returns nothing to me.please let me know.

well, I found poins(0,maxy) and (0,miny) wih my prog.  but when I substract diference from original loop, the lopp's still not in a center at all
do you know why?should I do something diferent than substract?
Message 6 of 8
(2,510 Views)

## Re: how to center loop

Hi fco,

Are you rewriting the data to a Waveform Graph?  I'm wondering if this might be a dataflow issue.  If you haven't yet, please check out these tutorials on LabVIEW.

Does the graph change at all after you perform the subtraction?  Are you subtracting the difference from an array of values?  If you need to post some code to make your application clear, please post a very small example that demonstrates the problem.

Best Regards,
Megan B.
National Instruments

Message 7 of 8
(2,480 Views)

## Re: how to center loop

I don't think waveform graphs support loops... at least I cannot imagine a waveform with two values at the same time index.
Message 8 of 8
(2,473 Views)