LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to produce an X-Y plot of bearing (0-360 degrees) against time, however I want the plot to be continuous between 0 degrees and 360 degrees, rather than a max of 360 and min of 0. How do I format my scale to do this using LabView 6 please?

I want to produce an X-Y plot of bearing (0-360 degrees) against time, however I want the plot to be continuous between 0 degrees and 360 degrees, rather than a max of 360 and min of 0. How do I format my scale to do this using LabView 6 please?
0 Kudos
Message 1 of 9
(4,314 Views)
Whether you have 0 to 360 with increasing time or some discontinous values in-between, how you capture input data will determine the form of your XY plot and the type of formating you'll need to do. If you have a sample vi already, it will help if you post it.
0 Kudos
Message 2 of 9
(4,314 Views)
Right click on the scale which runs in the wrong direction, here the degrees. In the context menu uncheck AutoScale. Then enter on the axis the value at the places you want the axis to span.

This should avoid flipping the direction of the axis when your degree data would start near 360 and not near 0.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 3 of 9
(4,314 Views)
ok,maybe I should clarify!
At the moment my y-axis (bearing) goes from 0 to 360, and when my data passes through 0 (ie 357, 358, 359, 0, 1, 2..) there is a jump from the top of the graph to the bottom of the graph. I want to let the graph know somehow that 0 is next to 359 so that the graph is continuous. Is there any way to make my y-axis have the values (180, 181, 182....358, 359, 0, 1, 2....180) for example?
0 Kudos
Message 4 of 9
(4,314 Views)
I don't think you can do that. Could 359 = -1? If you can do that then you could start out with the graph going from 0 to 360, but if the data goes over 360 then subtract 360 and change the axis to -180 to +180.
0 Kudos
Message 5 of 9
(4,314 Views)
> Unfortunately the plot has to be an XY plot, with time on the X axis,
> and bearing on the Y axis.

The graph scales in LV support linear and log mappings, and they always
represent a number line, no loops or cycles are supported. You can
easily do this mod arithmetic on the diagram before the data is sent to
the graph, though cursors will display the modified data and not the
original data, so if you are using cursors, you will want you own cursor
readout -- not actually very hard to do.

A second option, look at using the picture control graphing VIs. There
are VIs for doing XY plots with scales and grids. You then have
complete control over the scale code, and placing a mod function inside
the scale mapping code will do what yo
u want. Additionally, if you want
to be able to label the scale differently, to be able to slide the 0/360
point around on the scale, you apply the mod to the value being
formatted and displayed as well.

Some of the VIs I'm talking about are in the graph palette, like the
polar plot, others are in examples/picture/demos.llb and have XY graph
in the name. You will find that they all use a common set of subVIs
with the graphing/mapping/plotting done on the diagram.

Greg McKaskle
0 Kudos
Message 8 of 9
(4,314 Views)