LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY or Waveform Graph Scale Settings

I have an interesting little problem. I am trying to use either the XY graph or the Waveform graph to display an amplitude vs. frequency plot that I get from an analyzer. I am trying to replicate as close as I can the display I get on the analyzer, but I am unable to get the x-axis major divisons into the same 10 divisions. My start and stop frequency are 950MHz and 2150MHz respectively. I am setting the start and stop frequencies on the X axis to 950 and 2150, labeling the axis in MHz. I would like to have the major graduation steps in increments of 100 at 950, 1050, 1150, etc. to 2150. The graphs only allow 950, 1000, 1100, 1200,...2100, 2150. Anyone have any suggestions as to how to force the graph to my preferred graduations?
Troy
0 Kudos
Message 1 of 7
(3,465 Views)
The attached vi shows how to set the scale of a graph, either by adjusting the scale parameters : minimum, maximum, increment... or by creating your own custom scale.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 7
(3,460 Views)
Charly,
Thanks for the VI, but could you recomplie in 7.0 format. We elected not to take the 7.1, as we didn't see any advantage to what we use it for.
Troy
0 Kudos
Message 3 of 7
(3,448 Views)
Salutations,
I also use labview 7.1 😞

So now you see the use!! THE POWER!!!

Alright, anyways, I think i can help a bit. I left on the auto-spacing approach that labview uses and used a property node to control the plot. I hope this is what you desire.

Best of wishes,
ElSmitho
0 Kudos
Message 4 of 7
(3,441 Views)
I am now enlightened. Thanks to both of you.
Troy
0 Kudos
Message 5 of 7
(3,438 Views)
here is a 7.0 version

CC
Chilly Charly    (aka CC)
0 Kudos
Message 6 of 7
(3,418 Views)
A couple of tips on setting graph scales that might be helpful.
  • LabVIEW checks how much space the labels on your axis will take and “adjusts” the tick spacing so that you will have enough space. If your labels are long (e.g. 5 digit numbers) and the increments are not what you expect, this may be the cause. Reducing the axis label font size or changing to another format (SI usually works nicely) will usually cure this problem.

  • If you happen to change the graph size due to a panel resize or using a property node, LabVIEW will recalculate the number of increments. You need to refresh it in this case to put it back where you want it.
0 Kudos
Message 7 of 7
(3,405 Views)