LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using an XY Graph in LabVIEW to plot magnitude vs angular position. When the angle rolls over from 360 to 0, the plot i

s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? Thanks
0 Kudos
Message 1 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksYou could try reordering the array wired to the graph, so that all data is plotted continuously, or else, you can set your vi to add a new plot when 360 is passed. This decision depends if you want only one plot for all data or different plots for values 0-360, 361-720...
Hope this helps
0 Kudos
Message 2 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksYou might try using the polar plot vi instead of the XY.
0 Kudos
Message 3 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksIf you are not terribly concerned with precision, you can force the data to never go to 0, but set a limit at .0001, for example. You can add one LSB to all your incoming data.

chutla
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 4 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksYou could also wrap the second half of the data around such that visually it's going back towards the 360/0 point.

The attached VI shows how this might work with a sinewave. First run it with the boolean switch off to demonstrate the problem, now then turn the switch on and run the VI again.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksYou could also turn off the interpolation in the display itself. (right click on the xy graph)
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 6 of 7
(4,111 Views)
s continuous and a line is drawn all the way across the plot from 360 back to 0. I was wondering if I could turn off this roll-over somehow so I could still have a continuous plotover the 0 to 360 span? Or is there something else I can do or use? ThanksThere is also an "unwrap phase" node in the signal processing/time domain toolbox.
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 7 of 7
(4,111 Views)