LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make fixed intervals on the X-Axis using the Waveform Chart Properties?

Here is my application...

I have data acquisition system that acquires a data point once every 4 seconds.

My Waveform Chart accurately displays my data points on the Y- axis.


What Im trying to do is format the X-axis to show the user an accurate time stamp. I have 3 charts....by minute, by hour, by week.

I would like to show the 1min chart X-axis in 1minute intervals

I would like to show the 1hr chart X-axis in 1 hour intervals

I would like to show the 1 chart graph X-axis in 1 week intervals.


I want to use the chart properties i.e. XScale-Multiplier, XScale-Offset, XScale- Minimum, XScale-Maximum

How do I use the properties to build a fixed X-Axis for each chart?

~J
0 Kudos
Message 1 of 4
(3,839 Views)

Hi hova2010,

 

The best resource for information on these property nodes would be in the LabVIEW Help. The easiest way to access this is to Show Context Help (CTRL+H) and hover your mouse over the desired property and then selecting Detailed Help in the Context Help window. In your case, you will most likely be modifying the Multiplier property. If you select the x-axis to display relative time and then change the multiplier to the number of seconds you wish to use (i.e. 60 for 1 minute interval, 3600 for 1 hour intervals, etc.).

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 2 of 4
(3,802 Views)

Hello Aaron

 

I have actually wrote code for a Waveform Chart that plots 1 minute intervals.

 

The problem Im having now is that the chart loses the intervals (marker values) once it starts to scroll.

 

 

Can you look at my code and tell me why it loses the markers? I need to maintain markers throughout the entire test

 

 

J

0 Kudos
Message 3 of 4
(3,790 Views)

Hi hova2010,

 

After doing some probing on your VI, it seems that the For Loop in your While Loop (as well as the other For Loop outside of the While Loop) continues to generate the same three values over and over again (3338806560, 3338806620, 3338806680). I would look into this as your initial problem.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 4 of 4
(3,768 Views)