LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Manually adjust absolute time on graph

I am displaying real time temperature readings as well as data read from file in absolute time format.  I want to be able to adjust maximum and minimum time displayed so I can choose the time period of interest.  Any ideas on how to do this?
0 Kudos
Message 1 of 8
(3,915 Views)
There are many ways of doing this depending upon what it is exactly that you need. How do you want the user interface to work?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,907 Views)

I would like to vary the minimum and maximum time/date with scroll bars so I could look at large trends or zero in on shorter time frames.

Thank you

0 Kudos
Message 3 of 8
(3,891 Views)
Hi jlooker,

One possible solution would be to use a property node for your waveform graph, with the property: Xscale»Range»All Elements. Then, you could create a control and change your X minimum, maximum and increment with front panel controls.

I've attached a LabVIEW 8.2.1 example, let me know if this is what you were looking to accomplish!

Best regards,

-Sam F, DAQ Marketing Manager
0 Kudos
Message 4 of 8
(3,877 Views)
I was sort of thinking it might look nice to have a horizontal slide control with two sliders on it. The left end of the slider would be the minimum timestamp in the data, while the right end of the slider would be the maximum timestamp in the data. You could then create a value change event on the slide control that would use the position of the two sliders to segment out the data to display.

OR

you could just plot all the data and let the zoom controls on the graph handle the selection...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 8
(3,870 Views)

Zoom control or scroll bar.

Ben

Message Edited by Ben on 05-23-2007 08:38 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 8
(3,855 Views)

I'm liking Mike Porter's suggestion

 


mikeporter wrote:
I was sort of thinking it might look nice to have a horizontal slide control with two sliders on it. The left end of the slider would be the minimum timestamp in the data, while the right end of the slider would be the maximum timestamp in the data. You could then create a value change event on the slide control that would use the position of the two sliders to segment out the data to display.

has anyone looked any further into this. I've tried this method, but my biggest concern is that the digital displays for the sliders can't be formatted to display time like the scale. Is there a way to change this, or am I going to have to go the XControl way.

"All truths are easy to understand once they are discovered; the point is to discover them." -- Galileo Galilei

0 Kudos
Message 7 of 8
(3,501 Views)

Hi Settlesj,

 

I have been playing around with the slider control and I couldn't get the digital displays to show the timestamp, but I did come up with a workaround by using the To Timestamp Function. Please see the picture attached.

 

I will also file a product suggestion saying that the digital display should be able to show the timestamp.

 

Regards,
Claire Reid
National Instruments
0 Kudos
Message 8 of 8
(3,451 Views)