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

datescale (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: plots

Requires: MathScript RT Module

Syntax

datescale(s)

datescale(s, format)

Legacy Name: datetick

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 = [date_to_num('9-Apr-2007') date_to_num('10-Apr-2007') date_to_num('11-Apr-2007') date_to_num('12-Apr-2007') date_to_num('13-Apr-2007')];
y = rand(5, 1);
plot(x, y);
datescale('x', 'dd-mmm-yyyy');

Related Topics

date_to_str


 

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