LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange "Scan From String" to Timestamp Error

Solved!
Go to solution

hi,

i am trying to parse my time-string into a Time Stamp with "Scan From String" but i get some strange Error(1).

 

The Code:

scan-from-string--strange-error.png

 

The Error:

strange-error.jpg

 

can anyone confirm? do i have an error in my parser-string?

is it possibly related to this Bug

461196

Scan From String VI returns Error 1 with "%t" as the format string input

http://www.ni.com/product-documentation/52151/en/

that should be fixed?

 

my labview version is

LV 2014 Service Pack 1 -- Version 14.0.1 (32bit)

with the RealTime addon (but the code in question was not run on RT)

 

thanks for your time.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 1 of 3
(3,152 Views)
Solution
Accepted by topic author jwscs

Why do you have the square brackets around the scan from string format string? They are not there when you generate the timestamp string so it will fail when trying to convert it back as they are expected to be there.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 3
(3,145 Views)

because i'm overworked and stupid????

 

i copied from an earlier project of mine .. and thought that was the syntax

 

thank you!


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 3 of 3
(3,139 Views)