From 08:00 PM CDT Friday, August 12 - 01:00 PM CDT Saturday, August 13, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time stamp indicator not appear the fraction of seconds precision

Solved!
Go to solution

I'm trying to make VI that takes the date and time as an input and create a time stamp. However, the final indicator for time stamp not appear the the fraction of seconds precision.

 

Kindly, download the attached file for more illustration.

 

Best Regards 🙂

Download All
0 Kudos
Message 1 of 8
(191 Views)
Solution
Accepted by topic author Omda2022

Hi Omda,

 

this is your current display format setting for the timestamp:

What result do you expect for that display format?

 

See this simplification:

Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
Download All
0 Kudos
Message 2 of 8
(187 Views)

OK Mr. Gerdw, I understand that the setting format will display the time as HH:MM:SS format.

Any suggestions to get the time stamp in hh:mm:ss.fff  format using another method.

0 Kudos
Message 3 of 8
(176 Views)

GerdW already gave you a solution.

In your code you are mistakenly setting "fractional second". This value must be less than 1, not a large integer like in your vi.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019
0 Kudos
Message 4 of 8
(155 Views)

@GerdW wrote:

See this simplification:


Either that GPS String Time is using a wrong regular expression or i'm missing something.

The regular expression that works for me is %02d%02d%f, the regular expression GerdW provided won't let me run the code due to too many arguments. 

0 Kudos
Message 5 of 8
(146 Views)

Hi AeroSoul,

 


@AeroSoul wrote:

The regular expression that works for me is %02d%02d%f, the regular expression GerdW provided won't let me run the code due to too many arguments. 


I just included "%.;" before the "%f" to avoid problems due to different regional settings (aka point vs. comma decimal separator). That "%.;" is a common format code…

Best regards,
GerdW


using LV2016/2019/2020 on Win8.1/10+cRIO
0 Kudos
Message 6 of 8
(137 Views)

Great Thanks Mr. Gerdw for your continuous support. You are helpful and generous person.

How you are strong and professional with NI community.

 

Thanks alot for all of you

0 Kudos
Message 7 of 8
(105 Views)

Certainly, Mr. Gerdw give the best solution for the problem. There is another solution here: 

GPS Date-time Parser.PNG

 Best Regards 🙂

 

0 Kudos
Message 8 of 8
(61 Views)