Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Creating Multiple X-Axes on Charts in LabVIEW 7.0 and Later

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Full Development System, LabVIEW Development Systems>>LabVIEW Professional Development System

Problem:

I built an application in LabVIEW 6.1 that uses intensity and waveform charts with multiple x-axes. I recently upgraded to a later version of LabVIEW and am developing new subVIs for this application. However, now I cannot create multiple x-axes on charts. When I right-click the x-axis of a chart, Duplicate Scale appears dimmed. How can I create multiple x-axes on charts?



Solution:

As of LabVIEW 7.0, charts cannot have multiple x-axes. However, you can create a custom chart control with multiple x-axes in LabVIEW 6.1 or earlier and use the control in later versions of LabVIEW.

Complete the following steps to create a custom chart control with multiple axes for use in LabVIEW 7.0 or later.

  1. In LabVIEW 6.1 or earlier, add a chart to the front panel.
  2. Right-click the x-axis of the chart and select Duplicate Scale from the shortcut menu to create a duplicate x-axis.
  3. Right-click the chart and select Advanced»Customize from the shortcut menu to display the Control Editor window.
  4. Select File»Save As and save the control in the labview\user.lib directory of the later version of LabVIEW to add the control to the User Controls palette in that version.

The attached files include two custom chart controls, a waveform chart with two x-axes and an intensity chart with two x-axes.

For more information about creating multiple axes, or scales, on charts and graphs, refer to the Adding Multiple X- and Y-Scales on Graphs or Charts topic in the LabVIEW Help (linked below). For more information about adding controls to the User Controls palette, refer to the Adding VIs and Controls to the User and Instrument Drivers Subpalettes topic in the LabVIEW Help (linked below).



Related Links:

LabVIEW Help: Adding Multiple X- and Y-Scales on Graphs or Charts
LabVIEW Help: Adding VIs and Controls to the User and Instrument Drivers Subpalettes



Attachments:


Waveform Chart - 2 Axes.ctlIntensity Chart - 2 Axes.ctl


Report Date: 08/26/2003
Last Updated: 07/25/2008
Document ID: 30PDQJ59

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit