From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

using SetTime function

hai,

i am using SetTime function in COLETime class, whereas it has 3 parameters, hours,minutes,seconds. i want to plot milliseconds in the XY graph. so is there any function i can use to plot the milliseconds on the x axis,

please let me know if there is

my mail id is anil_naidu@hotmail.com

thanks
anil
0 Kudos
Message 1 of 2
(2,705 Views)
Look up FormatString in the index of the Measurement Studio 6.0 Reference. When it pops up a dialog that says "Topics Found," choose the last option that says "FormatString Property." There is information here that will help. Specifically:

"With ActiveX controls, the date is implemented as a floating-point value, measuring days from midnight, 30 December 1899. So, midnight, 31 December 1899, is represented by 1.0. Similarly, 6 AM, 1 January 1900, is represented by 2.25, and midnight, 29 December 1899, is -1.0. However, 6 AM, 29 December 1899, is -1.25. To interpret the time portion, take the absolute value of the fractional part of the number. Thus, 1 second equals 1 / 24 hours / 60 minutes / 60 seconds, which is 1/86400 or approximately 1.157407e-5."


Try creating a float value in this format and plotting it.

- Elton
0 Kudos
Message 2 of 2
(2,705 Views)