cancel
Showing results for 
Search instead for 
Did you mean: 

Time conversion issue

SOLVED
sets
Member
Solved!

Time conversion issue

Message contains an attachment

Kindly see my VI as i am having issue in time conversion.....my desired 

To is
00:00:00.0000
12/29/2019

but obtaining
1:00:00.0000
12/29/2019

4 REPLIES 4
altenbach
Knight of NI
Solution

Re: Time conversion issue

Message contains a hyperlink Message contains an image

Your VI is a bit of a mess (e.g. why is the diagram and front panel maximized to the screen? Why is there a greedy while loop without wait burning all CPU doing nothing useful? The result never changes because the input is a constant! No loop needed.)

 

In any case, you are combining the time and date string without space between the parts, so you probably want to specify exactly how the parts are arranged. The following will give your desired result:

 

altenbach_0-1577650207063.png

sets
Member

Re: Time conversion issue

Thanks, u directed me what I was looking.Thumbs up!

sets
Member

Re: Time conversion issue

I need while loop because I am gonna use a time stamp, the current one and then followed by generating a geometric sequence using shift register.At this point, I c no use of while loop which makes things crazy from u r perspective.

Highlighted
RavensFan
Knight of NI

Re: Time conversion issue

Message contains a hyperlink

Please read this thread before your next Discussion Forum post.

 

https://forums.ni.com/t5/BreakPoint/A-plea-for-full-words/td-p/751004?profile.language=en