LabVIEW

cancel
Showing results for 
Search instead 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
Download All
0 Kudos
Message 1 of 8
(3,032 Views)
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 can help you with the code if your are stuck but we can do your job for you. Have a try and post your code if your can't make it ;).


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

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 8
(3,025 Views)
I did somethng, but I still have problem with the poins.Any idea to correct?
0 Kudos
Message 3 of 8
(2,987 Views)
ok I did itSmiley Very Happy  thanks for..
0 Kudos
Message 4 of 8
(2,967 Views)
I could not make heads or tails of your vi. 

I think this is more what TiTou had in mind.

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

0 Kudos
Message 5 of 8
(2,962 Views)
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?
0 Kudos
Message 6 of 8
(2,936 Views)

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.

Three Hour Introduction to LabVIEW
Six Hour Introduction to 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

 

0 Kudos
Message 7 of 8
(2,906 Views)
I don't think waveform graphs support loops... at least I cannot imagine a waveform with two values at the same time index. Robot surprised
0 Kudos
Message 8 of 8
(2,899 Views)