Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Time X-Axis Display

Hello,

 

I am using MS 8.0 to do one wavegraphform application. I hope to use current datetime as X-Axis, so I prefer to display X-Axis as DateTime, like 2009/05/08 12:12:34. Could I do that?

 

thanks a lot

0 Kudos
Message 1 of 2
(3,487 Views)

YHong,

 

The datetime value is part of the .NET framework, and if you want more information on creating a custom datetime format string please check the MSDN help for custom datetime strings http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx . To get your desired format of 2009/05/08 12:12:34. You could use a format string of yyyy/MM/dd h:m:ss I have attached a screenshot for your reference. You can modify the way the xAxis is displayed by going into the graph properties » xAxis » MajorDivisions » LabelFormat. Then select DateTime as your category, and enter in the format string you desire. Hope this helps. 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 2
(3,467 Views)