Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

datetick (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

Syntax

datetick(s)

datetick(s, format)

Description

Displays a time stamp for the x-scale or y-scale of a plot.

Details

Examples

Inputs

Name Description
s Specifies whether to display the time stamp for the x-scale or y-scale of the plot. s is a string that accepts the following values.

x Displays the time stamp for the x-scale.
y Displays the time stamp for the y-scale.
format Specifies the time format of the scale. format is a string.

Details

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

x = [datenum('9-Apr-2007') datenum('10-Apr-2007') datenum('11-Apr-2007') datenum('12-Apr-2007') datenum('13-Apr-2007')];
y = rand(5, 1);
plot(x, y);
datetick('x', 'dd-mmm-yyyy');

Related Topics

datestr


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit