LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why does my chart invert the time scale?

Hello,

I've just written the attached vi, which works well, except for one issue.  Once it is running, if I manually change the value of the maximum on the X-axis of the chart (by double clicking it and typing in a new value) the x-axis of the chart becomes inverted.  Any ideas? (Written using LV 7.1 in WinXPpro).

Cheers and thanks,

Daniel


0 Kudos
Message 1 of 5
(2,964 Views)

Hi,

LabVIEW inverts the scale automatically if the maximum value is less than the minimum value!

you can invert the scale again: Right click the chart> properties> scale> select or deselect "inverted" item

it is also available programmatically by using property node of the chart.

 

0 Kudos
Message 2 of 5
(2,957 Views)
Thanks Soroush,

Indeed, you're right.  But this particular problem seems a little more unusual than that.  If you run the attached vi, and then manually rescale the max of the x axis, it automatically inverts even if the max is bigger than the min.  It seems that there is some programming of the chart properties in there, but I can't see where.

Cheers and thanks again,

Daniel
0 Kudos
Message 3 of 5
(2,952 Views)
Hi Daniel,
 
I looked at your code and there is something there that I can't understand! right-click your chart> Properties> Format and precision> and look at the scales. There is Voltage (Y Axis), Time (X Axis) and another THING there!
 
How had you created it man?!Smiley Happy
I'm not familiar with DAQmx, but I don't either think that it is something related to DAQ.
 
If I were you, I would simply replace the chart with another one!
 
In some cases that you see unususal scales behavior, it is useful to Right-Click>>Advanced>>reset scale layout.
 
Regards.
0 Kudos
Message 4 of 5
(2,942 Views)
If the x-axis is time of day, you are probably not updating the year properly when you use the mouse. The graph then thinks that the year is 1900 and it inverts. In this case you are better off with the graph zoom tools.
0 Kudos
Message 5 of 5
(2,937 Views)