LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate Absolute Angle with Crossover Point

Solved!
Go to solution

Hello I have a Inclinomemter with an analog output the measures 0 - 360°

 

When the inclinometer reaches 360° the analog output goes to minimum from maximum which essentially means my DAQ reads the value as zero again.

 

What I would like to do is to continously add or subtract 360° to the data when the crossover point is encountered.

 

I would also be beneficial to have the ability to determine which way the iclinometer is rotating as well.

 

I would imagine I would have to use a register but I am really unsure on how I would grab the data value DAQmx generates and place it into the register,

 

I have LabVIEW 2009. 

 

Aby help would be appriciated.

Tim
0 Kudos
Message 1 of 6
(2,724 Views)

Unless you are stuck with the base version of LV, check out the Unwrap Phase PtByPt.vi in the Signal Processing palette.  You have to convert to radians (unlike the non PtByPt version) but that should not be a big deal.

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

I am not seeing "Unwrap Phase PtByPt.vi" on my Signal Processing Palette.

Tim
0 Kudos
Message 3 of 6
(2,713 Views)

Search -> Unwrap

 

Or QD: Ctrl-Space unwr

 

UnwrapPhasePtByPt.png

 

(Look under the Signal Processing -> Point By Point -> Signal Operation PtByPt

 

If these fail, then I guess it is time for Plan B.

0 Kudos
Message 4 of 6
(2,705 Views)

Ok I got it.

 

 

Now how shoudl I use it?

Tim
0 Kudos
Message 5 of 6
(2,687 Views)
Solution
Accepted by topic author smoothdurban

I figured it out

 

Inclinometer.png

Tim
0 Kudos
Message 6 of 6
(2,683 Views)