Jump to content

Absolute time display on xy graph - not enough info displayed


edk

Recommended Posts

I have a small pair of arrays and want to display the absolute time at each point, but try as I might, I cannot get the xy graph to display more than 3 entries on the x (time) axis - one at each end and one in the middle. I have used the xy graph many times and thought I knew it well, but I am stumped.

This is almost certainly a question of how to set up the formatting on the graph, but -

Background - two arrays of 12 DBL each (time, amplitude). When I create the arrays the x-axis is in relative hours (DBL, not timestamps). This bundle displays on the graph with the x-axis formatted for DBL. The numbers are the amount of time, in hours, for each step in the sequence.

To display it in absolute time, I convert hours to seconds (hours*3600 seconds/hour) , then add the current date/time timestamp - viola, an array of absolute timestamps. Rebundle and display on an xy graph, and the time display is incomplete.

Here are jpegs and the test vi. Thanks in advance.

Ed K.

post-2644-0-02726500-1318970364_thumb.jp

xyTimeDisplay.vi

post-2644-0-76382200-1318970632_thumb.jp

Link to comment

Have you looked at the Display Format for the X-axis (Right-Click->Properties)? You can set the format of the time and date, I usually choose System Time and System Date formats. Your picture looks like it is set to 'Date Unused'. Is this what you mean by 'incomplete'?

Link to comment

Sorry - what I mean by "incomplete" is that I want to show a time for each (or a few) points in the sequence, e.g. I want the user to know that the temperature will ramp to 0C starting at 18:05, and will soak there until 19:05. I can't get more than 3 times displayed on the axis no matter how I massage the formatting or scale style.

Ton - what is an "old" xy graph? I pulled this out of the classic controls palette on LV 2009 and saved it for 8.6. And I see the "offset" in the properties, but don't understand why it's there - this is a xy graph, not a chart. It plots x vs. y, no? The x-scale is built in to the data?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.